Difference between revisions of "Template:Hadith Page Text"

From HodHood
Jump to: navigation, search
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Hadith Text ==
 
 
{{#get_db_data:
 
{{#get_db_data:
 
db=data
 
db=data
 
|from=eHadith
 
|from=eHadith
| where=WikiPageName="SahihAlBukhari-017-001-1052"
+
| where=WikiPageName="{{PAGENAME}}"
|data=hadith_Text=hadith_Text
+
|data=hadith_Text=myText
 
}}
 
}}
 
{{Hadith Page InfoBox Transclude|{{#external_value:hadith_Text}} }}
 
{{Hadith Page InfoBox Transclude|{{#external_value:hadith_Text}} }}
Line 10: Line 9:
 
global $transclude;
 
global $transclude;
 
if ( $transclude ) {
 
if ( $transclude ) {
   echo $transclude;
+
   #echo $transclude;
   "[[Has Hadith Text::$transclude]]";
+
   echo "[[Has Hadith Text::$transclude]]";
 
}
 
}
 
</phptag>
 
</phptag>

Latest revision as of 08:12, 18 January 2019