Difference between revisions of "Template:Quran Ayah InfoBox"

From HodHood
Jump to: navigation, search
 
(24 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div class="infobox mw-collapsible mw-collapsed">
+
<div class="infobox mw-collapsible">
 
<big>Ayah Attributes</big>
 
<big>Ayah Attributes</big>
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
[[File:{{{image|HodHoodQuranLogo.PNG}}}|200px]]
 
[[File:{{{image|HodHoodQuranLogo.PNG}}}|200px]]
 
<table>
 
<table>
{{#if:{{{classification|}}}|<tr>
 
<th>Classification</th>
 
<td>{{#regex:{{{classification}}}|%\s*\K([^,]+)%|[[Has Classification::$1]]}}</td>
 
</tr>}}
 
{{#if:{{{juza|}}}|<tr>
 
<th>Juza</th>
 
<td>{{#regex:{{{juza}}}|%\s*\K([^,]+)%|[[Has Juza::$1]]}}</td>
 
</tr>}}
 
  
{{#if:{{{number-of-verses|}}}|<tr>  
+
{{#if:{{{part-of-sura-name|}}}|<tr>
<th>Number of Verses</th>
+
<th>Part of Sura Name</th>
<td>{{#regex:{{{number-of-verses}}}|%\s*\K([^,]+)%|[[Has Number of verses::$1]]}}</td>
+
<td>{{#regex:{{{part-of-sura-name}}}|%\s*\K([^,]+)%|[[Part Of Sura Name::$1]]}}</td>
 
</tr>}}
 
</tr>}}
  
{{#if:{{{Number of Prostration|}}}|<tr>
+
{{#if:{{{part-of-sura-number|}}}|<tr>
<th>numberofprostration</th>
+
<th>Part of Sura Number</th>
<td>{{#regex:{{{numberofverses}}}|%\s*\K([^,]+)%|[[Has Number of Prostration::$1]]}}</td>
+
<td>{{#regex:{{{part-of-sura-number}}}|%\s*\K([^,]+)%|[[Part Of Sura Number::$1]]}}</td>
 
</tr>}}
 
</tr>}}
  
{{#if:{{{surahname|}}}|<tr>
 
<th>Surah Name</th>
 
<td>{{#regex:{{{surahname}}}|%\s*\K([^,]+)%|[[Has Surah Name::$1]]}}</td>
 
</tr>}}
 
{{#if:{{{surahnumber|}}}|<tr>
 
<th>Surah Number</th>
 
<td>{{#regex:{{{surahnumber}}}|%\s*\K([^,]+)%|[[Has Surah Number::$1]]}}</td>
 
</tr>}}
 
 
{{#if:{{{ayahname|}}}|<tr>
 
{{#if:{{{ayahname|}}}|<tr>
 
<th>Ayah Name</th>
 
<th>Ayah Name</th>
 
<td>{{#regex:{{{ayahname}}}|%\s*\K([^,]+)%|[[Has Ayah Name::$1]]}}</td>
 
<td>{{#regex:{{{ayahname}}}|%\s*\K([^,]+)%|[[Has Ayah Name::$1]]}}</td>
 
</tr>}}
 
</tr>}}
{{#if:{{{previousayah|}}}|<tr>
+
 
 +
{{#if:{{{previous-ayah|}}}|<tr>
 
<th>Previous Ayah</th>
 
<th>Previous Ayah</th>
<td>{{#regex:{{{previousayah}}}|%\s*\K([^,]+)%|[[Has Previous Ayah::$1]]}}</td>
+
<td>{{#regex:{{{previous-ayah}}}|%\s*\K([^,]+)%|[[Has Previous Ayah::$1]]}}</td>
 
</tr>}}
 
</tr>}}
{{#if:{{{nextayah|}}}|<tr>
+
{{#if:{{{next-ayah|}}}|<tr>
 
<th>Next Ayah</th>
 
<th>Next Ayah</th>
<td>{{#regex:{{{nextayah}}}|%\s*\K([^,]+)%|[[Has Next Ayah::$1]]}}</td>
+
<td>{{#regex:{{{next-ayah}}}|%\s*\K([^,]+)%|[[Has Next Ayah::$1]]}}</td>
 
</tr>}}
 
</tr>}}
 
{{#if:{{{ayah-main-topic|}}}|<tr>
 
{{#if:{{{ayah-main-topic|}}}|<tr>
 
<th>Ayah Main Topic</th>
 
<th>Ayah Main Topic</th>
<td>{{#regex:{{{ayah-main-topic}}}|%\s*\K([^,]+)%|[[Has Main Topic::$1]]}}</td>
+
<td>{{#regex:{{{ayah-main-topic}}}|%\s*\K([^,]+)%|[[Has Ayah Main Topic::$1]]}}</td>
 
</tr>}}
 
</tr>}}
 
{{#if:{{{ayah-sub-topic|}}}|<tr>
 
{{#if:{{{ayah-sub-topic|}}}|<tr>
 
<th>Ayah SubTopic</th>
 
<th>Ayah SubTopic</th>
<td>{{#regex:{{{ayah-sub-topic}}}|%\s*\K([^,]+)%|[[Has Sub Topic::$1]]}}</td>
+
<td>{{#regex:{{{ayah-sub-topic}}}|%\s*\K([^,]+)%|[[Has Ayah Sub Topic::$1]]}}</td>
 +
 
 
</tr>}}{{#if:{{{notables|}}}|<tr>
 
</tr>}}{{#if:{{{notables|}}}|<tr>
 
<th>Notables</th>
 
<th>Notables</th>
 
<td>{{#regex:{{{notables}}}|%\s*\K([^,]+)%|[[Has Notables::$1]]}}</td>
 
<td>{{#regex:{{{notables}}}|%\s*\K([^,]+)%|[[Has Notables::$1]]}}</td>
</tr>}}{{#if:{{{animals|}}}|<tr>
+
 
 +
</tr>}}
 +
 
 +
{{#if:{{{animals|}}}|<tr>
 
<th>Animals</th>
 
<th>Animals</th>
 
<td>{{#regex:{{{animals}}}|%\s*\K([^,]+)%|[[Has Animals::$1]]}}</td>
 
<td>{{#regex:{{{animals}}}|%\s*\K([^,]+)%|[[Has Animals::$1]]}}</td>
</tr>}}{{#if:{{{body-parts|}}}|<tr>
+
</tr>}}
 +
 
 +
{{#if:{{{body-parts|}}}|<tr>
 
<th>Body Parts</th>
 
<th>Body Parts</th>
 
<td>{{#regex:{{{body-parts}}}|%\s*\K([^,]+)%|[[Has Body-Parts::$1]]}}</td>
 
<td>{{#regex:{{{body-parts}}}|%\s*\K([^,]+)%|[[Has Body-Parts::$1]]}}</td>
</tr>}}{{#if:{{{quran-surat|}}}|<tr>
+
</tr>}}
 +
 
 +
{{#if:{{{quran-surat|}}}|<tr>
 
<th>Quran Surat</th>
 
<th>Quran Surat</th>
 
<td>{{#regex:{{{quran-surat}}}|%\s*\K([^,]+)%|[[Has Quran Surat::$1]]}}</td>
 
<td>{{#regex:{{{quran-surat}}}|%\s*\K([^,]+)%|[[Has Quran Surat::$1]]}}</td>
</tr>}}{{#if:{{{quran-ayat|}}}|<tr>
+
</tr>}}
 +
 
 +
{{#if:{{{quran-ayat|}}}|<tr>
 
<th>Quran Ayat</th>
 
<th>Quran Ayat</th>
 
<td>{{#regex:{{{quran-ayat}}}|%\s*\K([^,]+)%|[[Has Quran Ayat::$1]]}}</td>
 
<td>{{#regex:{{{quran-ayat}}}|%\s*\K([^,]+)%|[[Has Quran Ayat::$1]]}}</td>
</tr>}}{{#if:{{{islamic-terms|}}}|<tr>
+
</tr>}}
 +
 
 +
{{#if:{{{islamic-terms|}}}|<tr>
 
<th>Islamic Terms</th>
 
<th>Islamic Terms</th>
 
<td>{{#regex:{{{islamic-terms}}}|%\s*\K([^,]+)%|[[Has Islamic Terms::$1]]}}</td>
 
<td>{{#regex:{{{islamic-terms}}}|%\s*\K([^,]+)%|[[Has Islamic Terms::$1]]}}</td>
</tr>}}{{#if:{{{phrases|}}}|<tr>
+
</tr>}}
 +
 
 +
{{#if:{{{phrases|}}}|<tr>
 
<th>Phrases</th>
 
<th>Phrases</th>
 
<td>{{#regex:{{{phrases}}}|%\s*\K([^,]+)%|[[Has Phrases::$1]]}}</td>
 
<td>{{#regex:{{{phrases}}}|%\s*\K([^,]+)%|[[Has Phrases::$1]]}}</td>
</tr>}}{{#if:{{{food|}}}|<tr>
+
</tr>}}
 +
 
 +
{{#if:{{{food|}}}|<tr>
 
<th>Food</th>
 
<th>Food</th>
 
<td>{{#regex:{{{food}}}|%\s*\K([^,]+)%|[[Has Food::$1]]}}</td>
 
<td>{{#regex:{{{food}}}|%\s*\K([^,]+)%|[[Has Food::$1]]}}</td>
</tr>}}{{#if:{{{plants|}}}|<tr>
+
</tr>}}
 +
 
 +
 
 +
{{#if:{{{plants|}}}|<tr>
 
<th>Plants</th>
 
<th>Plants</th>
 
<td>{{#regex:{{{plants}}}|%\s*\K([^,]+)%|[[Has Plants::$1]]}}</td>
 
<td>{{#regex:{{{plants}}}|%\s*\K([^,]+)%|[[Has Plants::$1]]}}</td>
</tr>}}{{#if:{{{fruits|}}}|<tr>
+
</tr>}}
 +
 
 +
{{#if:{{{fruits|}}}|<tr>
 
<th>Fruits</th>
 
<th>Fruits</th>
 
<td>{{#regex:{{{fruits}}}|%\s*\K([^,]+)%|[[Has Fruits::$1]]}}</td>
 
<td>{{#regex:{{{fruits}}}|%\s*\K([^,]+)%|[[Has Fruits::$1]]}}</td>
</tr>}}{{#if:{{{vegetables|}}}|<tr>
+
</tr>}}
 +
 
 +
{{#if:{{{vegetables|}}}|<tr>
 
<th>Vegetables</th>
 
<th>Vegetables</th>
 
<td>{{#regex:{{{vegetables}}}|%\s*\K([^,]+)%|[[Has Vegetables::$1]]}}</td>
 
<td>{{#regex:{{{vegetables}}}|%\s*\K([^,]+)%|[[Has Vegetables::$1]]}}</td>
</tr>}}{{#if:{{{spices|}}}|<tr>
+
</tr>}}
 +
 
 +
{{#if:{{{spices|}}}|<tr>
 
<th>Spices</th>
 
<th>Spices</th>
 
<td>{{#regex:{{{spices}}}|%\s*\K([^,]+)%|[[Has Spices::$1]]}}</td>
 
<td>{{#regex:{{{spices}}}|%\s*\K([^,]+)%|[[Has Spices::$1]]}}</td>
</tr>}}{{#if:{{{family|}}}|<tr>
+
</tr>}}
 +
 
 +
{{#if:{{{family|}}}|<tr>
 
<th>Family</th>
 
<th>Family</th>
 
<td>{{#regex:{{{family}}}|%\s*\K([^,]+)%|[[Has Family::$1]]}}</td>
 
<td>{{#regex:{{{family}}}|%\s*\K([^,]+)%|[[Has Family::$1]]}}</td>
</tr>}}{{#if:{{{tribes-name|}}}|<tr>
+
</tr>}}
 +
 
 +
{{#if:{{{tribes-name|}}}|<tr>
 
<th>Tribes Name</th>
 
<th>Tribes Name</th>
 
<td>{{#regex:{{{tribes-name}}}|%\s*\K([^,]+)%|[[Has Tribes Name::$1]]}}</td>
 
<td>{{#regex:{{{tribes-name}}}|%\s*\K([^,]+)%|[[Has Tribes Name::$1]]}}</td>
</tr>}}{{#if:{{{astronomical-body|}}}|<tr>
+
</tr>}}
 +
 
 +
{{#if:{{{astronomical-body|}}}|<tr>
 
<th>Astronomical Body</th>
 
<th>Astronomical Body</th>
 
<td>{{#regex:{{{astronomical-body}}}|%\s*\K([^,]+)%|[[Has Astronomical Body::$1]]}}</td>
 
<td>{{#regex:{{{astronomical-body}}}|%\s*\K([^,]+)%|[[Has Astronomical Body::$1]]}}</td>
</tr>}}{{#if:{{{after-life-locations|}}}|<tr>
+
</tr>}}
 +
 
 +
{{#if:{{{after-life-locations|}}}|<tr>
 
<th>After Life Locations</th>
 
<th>After Life Locations</th>
 
<td>{{#regex:{{{after-life-locations}}}|%\s*\K([^,]+)%|[[Has After Life Locations::$1]]}}</td>
 
<td>{{#regex:{{{after-life-locations}}}|%\s*\K([^,]+)%|[[Has After Life Locations::$1]]}}</td>
</tr>}}{{#if:{{{places-of-worship|}}}|<tr>
+
</tr>}}
 +
 
 +
{{#if:{{{places-of-worship|}}}|<tr>
 
<th>Places of Worship</th>
 
<th>Places of Worship</th>
 
<td>{{#regex:{{{places-of-worship}}}|%\s*\K([^,]+)%|[[Has Places of Worship::$1]]}}</td>
 
<td>{{#regex:{{{places-of-worship}}}|%\s*\K([^,]+)%|[[Has Places of Worship::$1]]}}</td>
</tr>}}{{#if:{{{mountains|}}}|<tr>
+
</tr>}}
 +
 
 +
{{#if:{{{mountains|}}}|<tr>
 
<th>Mountains</th>
 
<th>Mountains</th>
 
<td>{{#regex:{{{mountains}}}|%\s*\K([^,]+)%|[[Has Mountains::$1]]}}</td>
 
<td>{{#regex:{{{mountains}}}|%\s*\K([^,]+)%|[[Has Mountains::$1]]}}</td>
</tr>}}{{#if:{{{geo-locations|}}}|<tr>
+
</tr>}}
 +
 
 +
{{#if:{{{geo-locations|}}}|<tr>
 
<th>Geo-locations</th>
 
<th>Geo-locations</th>
 
<td>{{#regex:{{{geo-locations}}}|%\s*\K([^,]+)%|[[Has Geo-locations::$1]]}}</td>
 
<td>{{#regex:{{{geo-locations}}}|%\s*\K([^,]+)%|[[Has Geo-locations::$1]]}}</td>
</tr>}}{{#if:{{{historical-land|}}}|<tr>
+
</tr>}}
 +
 
 +
{{#if:{{{historical-land|}}}|<tr>
 
<th>Historical Land</th>
 
<th>Historical Land</th>
 
<td>{{#regex:{{{historical-land}}}|%\s*\K([^,]+)%|[[Has Historical Land::$1]]}}</td>
 
<td>{{#regex:{{{historical-land}}}|%\s*\K([^,]+)%|[[Has Historical Land::$1]]}}</td>
</tr>}}{{#if:{{{cities|}}}|<tr>
+
</tr>}}
 +
 
 +
{{#if:{{{cities|}}}|<tr>
 
<th>Cities</th>
 
<th>Cities</th>
 
<td>{{#regex:{{{cities}}}|%\s*\K([^,]+)%|[[Has Cities::$1]]}}</td>
 
<td>{{#regex:{{{cities}}}|%\s*\K([^,]+)%|[[Has Cities::$1]]}}</td>
</tr>}}{{#if:{{{holly-places|}}}|<tr>
+
</tr>}}
 +
 
 +
{{#if:{{{holly-places|}}}|<tr>
 
<th>Holly Places</th>
 
<th>Holly Places</th>
 
<td>{{#regex:{{{holly-places}}}|%\s*\K([^,]+)%|[[Has Holly Places::$1]]}}</td>
 
<td>{{#regex:{{{holly-places}}}|%\s*\K([^,]+)%|[[Has Holly Places::$1]]}}</td>
</tr>}}{{#if:{{{insects|}}}|<tr>
+
</tr>}}
 +
 
 +
{{#if:{{{insects|}}}|<tr>
 
<th>Insects</th>
 
<th>Insects</th>
 
<td>{{#regex:{{{insects}}}|%\s*\K([^,]+)%|[[Has Insects::$1]]}}</td>
 
<td>{{#regex:{{{insects}}}|%\s*\K([^,]+)%|[[Has Insects::$1]]}}</td>
</tr>}}{{#if:{{{disease|}}}|<tr>
+
</tr>}}
 +
 
 +
{{#if:{{{disease|}}}|<tr>
 
<th>Disease</th>
 
<th>Disease</th>
 
<td>{{#regex:{{{disease}}}|%\s*\K([^,]+)%|[[Has Disease::$1]]}}</td>
 
<td>{{#regex:{{{disease}}}|%\s*\K([^,]+)%|[[Has Disease::$1]]}}</td>
</tr>}}{{#if:{{{prayers|}}}|<tr>
+
</tr>}}
 +
 
 +
{{#if:{{{prayers|}}}|<tr>
 
<th>Prayers</th>
 
<th>Prayers</th>
 
<td>{{#regex:{{{prayers}}}|%\s*\K([^,]+)%|[[Has Prayers::$1]]}}</td>
 
<td>{{#regex:{{{prayers}}}|%\s*\K([^,]+)%|[[Has Prayers::$1]]}}</td>
Line 133: Line 169:
 
<th>Tribes Name</th>
 
<th>Tribes Name</th>
 
<td>{{#regex:{{{tribes-name}}}|%\s*\K([^,]+)%|[[Has Tribes Name::$1]]}}</td>
 
<td>{{#regex:{{{tribes-name}}}|%\s*\K([^,]+)%|[[Has Tribes Name::$1]]}}</td>
</tr>}}
 
{{#if:{{{astronomical-body|}}}|<tr>
 
<th>Astronomical Body</th>
 
<td>{{#regex:{{{astronomical-body}}}|%\s*\K([^,]+)%|[[Has Astronomical Body::$1]]}}</td>
 
 
</tr>}}
 
</tr>}}
 
{{#if:{{{after-life-locations|}}}|<tr>
 
{{#if:{{{after-life-locations|}}}|<tr>
Line 184: Line 216:
 
<td>{{#regex:{{{ayah-chronology-seq}}}|%\s*\K([^,]+)%|[[Has Ayah Chronology Sequence::$1]]}}</td>
 
<td>{{#regex:{{{ayah-chronology-seq}}}|%\s*\K([^,]+)%|[[Has Ayah Chronology Sequence::$1]]}}</td>
 
</tr>}}
 
</tr>}}
Prostration
 
  
 
{{#if:{{{prostration|}}}|<tr>
 
{{#if:{{{prostration|}}}|<tr>
<th>prostration</th>
+
<th>Prostration</th>
 
<td>{{#regex:{{{prostration}}}|%\s*\K([^,]+)%|[[Has Prostration::$1]]}}</td>
 
<td>{{#regex:{{{prostration}}}|%\s*\K([^,]+)%|[[Has Prostration::$1]]}}</td>
 
</tr>}}
 
</tr>}}
Line 199: Line 230:
 
<td>{{#regex:{{{sentiment}}}|%\s*\K([^,]+)%|[[Has Sentiment::$1]]}}</td>
 
<td>{{#regex:{{{sentiment}}}|%\s*\K([^,]+)%|[[Has Sentiment::$1]]}}</td>
 
</tr>}}
 
</tr>}}
</table></div></div>[[Ayah Serial Number::{{{qa_sernumber|}}}| ]][[Is Ayah Text::true| ]][[Category: -to be decided -]]
+
 
 +
{{#if:{{{polarity|}}}|<tr>
 +
<th>Polarity</th>
 +
<td>{{#regex:{{{polarity}}}|%\s*\K([^,]+)%|[[Has Polarity::$1]]}}</td>
 +
</tr>}}
 +
 
 +
{{#if:{{{ayah-index-of-subjects|}}}|<tr>
 +
<th>Ayah Index of Subjects</th>
 +
<td>{{#regex:{{{ayah-index-of-subjects}}}|%\s*\K\[*([^\],]+)\]*%|[[Has Ayah Index of Subjects::$1]]}}</td>
 +
</tr>}}
 +
 
 +
</table></div></div>[[Ayah Serial Number::{{{qa_sernumber|}}}| ]][[Is Ayah Text::true| ]]

Latest revision as of 22:33, 18 January 2019

Ayah Attributes

HodHoodQuranLogo.PNG