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

From HodHood
Jump to: navigation, search
(remove debug info)
 
(22 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#switch: {{{1}}}
+
{{#get_db_data:
| Surat AlFatiha Ayah 1 = {{Quran Ayah InfoBox |prostration = FALSE|part-of-sura-number = 1|part-of-sura-name = AlFatiha|ayahname = |previous-ayah = |next-ayah = 2|ayah-main-topic = 18|ayah-sub-topic = 2|sentiment = Positive|freqterms = allah, gracious, merci, name}}
+
db=data
| Surat AlFatiha Ayah 2 = {{Quran Ayah InfoBox |prostration = FALSE|part-of-sura-number = 1|part-of-sura-name = AlFatiha|ayahname = |previous-ayah = 1|next-ayah = 3|ayah-main-topic = 50|ayah-sub-topic = 3|sentiment = Positive|freqterms = allah, cherish, prais, sustain, world}}
+
|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