Difference between revisions of "Template:Quran Ayah InfoBox"
From HodHood
| Line 8: | Line 8: | ||
<td>{{#regex:{{{surahname}}}|%\s*\K([^,]+)%|[[Has Surah Name::$1]]}}</td> | <td>{{#regex:{{{surahname}}}|%\s*\K([^,]+)%|[[Has Surah Name::$1]]}}</td> | ||
</tr>}} | </tr>}} | ||
| − | {{#if:{{{ | + | {{#if:{{{ayahname|}}}|<tr> |
<th>Ayah Name</th> | <th>Ayah Name</th> | ||
| − | <td>{{#regex:{{{ayahname}}}|%\s*\K([^,]+)%|[[Has | + | <td>{{#regex:{{{ayahname}}}|%\s*\K([^,]+)%|[[Has Ayah Name::$1]]}}</td> |
| + | </tr>}} | ||
| + | {{#if:{{{previousayah|}}}|<tr> | ||
| + | <th>Previous Ayah</th> | ||
| + | <td>{{#regex:{{{previousayah}}}|%\s*\K([^,]+)%|[[Has Previous Ayah::$1]]}}</td> | ||
| + | </tr>}} | ||
| + | {{#if:{{{nextayah|}}}|<tr> | ||
| + | <th>Next Ayah</th> | ||
| + | <td>{{#regex:{{{nextayah}}}|%\s*\K([^,]+)%|[[Has Next Ayah::$1]]}}</td> | ||
</tr>}} | </tr>}} | ||
{{#if:{{{ayah-main-topic|}}}|<tr> | {{#if:{{{ayah-main-topic|}}}|<tr> | ||
