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