Difference between revisions of "Template:Quran Ayah InfoBox Template"

From HodHood
Jump to: navigation, search
(remove debug info)
 
(25 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#switch: {{{1}}}
+
{{#get_db_data:
| Surat AlFatiha Ayah 1 = {{Quran Ayah InfoBox |classification = Makkan |surahname = AlAala |surahnumber = 87 |ayah-main-topic = 22 |ayah-sub-topic = 15 |sentiment = Positive |freqterms = glorifi, guardianlord, name, thi }}
+
db=data
| Surat Abasa Ayah 16 = {{Quran Sura InfoBox |prostration = TRUE }}
+
|from=eQuran
|
+
|where=WikiPageName="{{{1}}}"
 +
|data=wikiAyahInfoBox=wikiAyahInfoBox
 
}}
 
}}
 +
{{Quran Ayah InfoBox Transclude|{{#external_value:wikiAyahInfoBox}} }}
 +
{{#clear_external_data:}}
 +
<phptag>
 +
global $transclude;
 +
if ( $transclude ) {
 +
  //echo "<nowiki>$transclude</nowiki>";
 +
  echo $transclude;
 +
}
 +
</phptag>

Latest revision as of 16:19, 17 February 2018