Difference between revisions of "Template:Quran Ayah InfoBox"
From HodHood
(Created page with "<div class="infobox mw-collapsible mw-collapsed"> <big>Ayah Attributes</big> <div class="mw-collapsible-content"> [[File:{{{image|AyahLogo.jpeg}}}|200px]] <table><tr> <th>Aya...") |
|||
(53 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <div class="infobox mw-collapsible | + | <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| | + | [[File:{{{image|HodHoodQuranLogo.PNG}}}|200px]] |
− | <table><tr> | + | <table> |
− | <th>Ayah | + | |
− | + | {{#if:{{{part-of-sura-name|}}}|<tr> | |
− | </tr> | + | <th>Part of Sura Name</th> |
+ | <td>{{#regex:{{{part-of-sura-name}}}|%\s*\K([^,]+)%|[[Part Of Sura Name::$1]]}}</td> | ||
+ | </tr>}} | ||
+ | |||
+ | {{#if:{{{part-of-sura-number|}}}|<tr> | ||
+ | <th>Part of Sura Number</th> | ||
+ | <td>{{#regex:{{{part-of-sura-number}}}|%\s*\K([^,]+)%|[[Part Of Sura Number::$1]]}}</td> | ||
+ | </tr>}} | ||
+ | |||
+ | {{#if:{{{ayahname|}}}|<tr> | ||
+ | <th>Ayah Name</th> | ||
+ | <td>{{#regex:{{{ayahname}}}|%\s*\K([^,]+)%|[[Has Ayah Name::$1]]}}</td> | ||
+ | </tr>}} | ||
+ | |||
+ | {{#if:{{{previous-ayah|}}}|<tr> | ||
+ | <th>Previous Ayah</th> | ||
+ | <td>{{#regex:{{{previous-ayah}}}|%\s*\K([^,]+)%|[[Has Previous Ayah::$1]]}}</td> | ||
+ | </tr>}} | ||
+ | {{#if:{{{next-ayah|}}}|<tr> | ||
+ | <th>Next Ayah</th> | ||
+ | <td>{{#regex:{{{next-ayah}}}|%\s*\K([^,]+)%|[[Has Next Ayah::$1]]}}</td> | ||
+ | </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 97: | 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>}} | </tr>}} | ||
{{#if:{{{after-life-locations|}}}|<tr> | {{#if:{{{after-life-locations|}}}|<tr> | ||
Line 121: | Line 189: | ||
<th>Idols Name</th> | <th>Idols Name</th> | ||
<td>{{#regex:{{{idols}}}|%\s*\K([^,]+)%|[[Has Idols Name::$1]]}}</td> | <td>{{#regex:{{{idols}}}|%\s*\K([^,]+)%|[[Has Idols Name::$1]]}}</td> | ||
− | |||
− | |||
− | |||
− | |||
</tr>}} | </tr>}} | ||
{{#if:{{{holyscriptures|}}}|<tr> | {{#if:{{{holyscriptures|}}}|<tr> | ||
Line 142: | Line 206: | ||
<td>{{#regex:{{{prophets}}}|%\s*\K([^,]+)%|[[Has Prophets::$1]]}}</td> | <td>{{#regex:{{{prophets}}}|%\s*\K([^,]+)%|[[Has Prophets::$1]]}}</td> | ||
</tr>}} | </tr>}} | ||
+ | |||
+ | {{#if:{{{surah-chronology-seq|}}}|<tr> | ||
+ | <th>Surah Chronology Sequence</th> | ||
+ | <td>{{#regex:{{{surah-chronology-seq}}}|%\s*\K([^,]+)%|[[Has Surah Chronology Sequence::$1]]}}</td> | ||
+ | </tr>}} | ||
+ | |||
+ | {{#if:{{{ayah-chronology-seq|}}}|<tr> | ||
+ | <th>Ayah Chronology Sequence</th> | ||
+ | <td>{{#regex:{{{ayah-chronology-seq}}}|%\s*\K([^,]+)%|[[Has Ayah Chronology Sequence::$1]]}}</td> | ||
+ | </tr>}} | ||
+ | |||
+ | {{#if:{{{prostration|}}}|<tr> | ||
+ | <th>Prostration</th> | ||
+ | <td>{{#regex:{{{prostration}}}|%\s*\K([^,]+)%|[[Has Prostration::$1]]}}</td> | ||
+ | </tr>}} | ||
+ | |||
{{#if:{{{freqterms|}}}|<tr> | {{#if:{{{freqterms|}}}|<tr> | ||
<th>Frequent Terms</th> | <th>Frequent Terms</th> | ||
Line 150: | 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| | + | |
+ | {{#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| ]] |