Difference between revisions of "Template:Quran Ayah InfoBox"

From HodHood
Jump to: navigation, search
 
(10 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">
Line 35: Line 35:
 
<th>Ayah SubTopic</th>
 
<th>Ayah SubTopic</th>
 
<td>{{#regex:{{{ayah-sub-topic}}}|%\s*\K([^,]+)%|[[Has Ayah 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 118: 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 191: Line 238:
 
{{#if:{{{ayah-index-of-subjects|}}}|<tr>
 
{{#if:{{{ayah-index-of-subjects|}}}|<tr>
 
<th>Ayah Index of Subjects</th>
 
<th>Ayah Index of Subjects</th>
<td>{{#regex:{{{ayah-index-of-subjects}}}|%\s*\K([^,]+)%|[[Has Ayah Index of Subjects::$1]]}}</td>
+
<td>{{#regex:{{{ayah-index-of-subjects}}}|%\s*\K\[*([^\],]+)\]*%|[[Has Ayah Index of Subjects::$1]]}}</td>
 
</tr>}}
 
</tr>}}
 
  
 
</table></div></div>[[Ayah Serial Number::{{{qa_sernumber|}}}| ]][[Is Ayah Text::true| ]]
 
</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