Difference between revisions of "Template:Quran Ayah InfoBox"
From HodHood
Line 4: | Line 4: | ||
[[File:{{{image|HodHoodQuranLogo.PNG}}}|200px]] | [[File:{{{image|HodHoodQuranLogo.PNG}}}|200px]] | ||
<table> | <table> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {{#if:{{{ | + | {{#if:{{{prostration|}}}|<tr> |
− | <th> | + | <th>prostration</th> |
− | <td>{{#regex:{{{ | + | <td>{{#regex:{{{prostration}}}|%\s*\K([^,]+)%|[[Has Prostration::$1]]}}</td> |
</tr>}} | </tr>}} | ||
− | {{#if:{{{ | + | {{#if:{{{part-to-sura-name|}}}|<tr> |
− | <th> | + | <th>Part of Surah Name</th> |
− | <td>{{#regex:{{{ | + | <td>{{#regex:{{{part-of-sura-name}}}|%\s*\K([^,]+)%|[[Part Of Sura Name::$1]]}}</td> |
</tr>}} | </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:{{{previousayah|}}}|<tr> | ||
<th>Previous Ayah</th> | <th>Previous Ayah</th> |