Difference between revisions of "Template:Quran Sura InfoBox"

From HodHood
Jump to: navigation, search
Line 4: Line 4:
 
[[File:{{{image|HodHoodQuranLogo.PNG}}}|200px]]
 
[[File:{{{image|HodHoodQuranLogo.PNG}}}|200px]]
 
<table>
 
<table>
 +
{{#if:{{{sura-name|}}}|<tr>
 +
<th>Sura Name</th>
 +
<td>{{#regex:{{{sura-name}}}|%\s*\K([^,]+)%|[[Has Sura Name::$1]]}}</td>
 +
</tr>}}
 +
 +
{{#if:{{{sura-number|}}}|<tr>
 +
<th>Sura Number</th>
 +
<td>{{#regex:{{{sura-number}}}|%\s*\K([^,]+)%|[[Has Surah Number::$1]]}}</td>
 +
</tr>}}
 +
 
{{#if:{{{classification|}}}|<tr>
 
{{#if:{{{classification|}}}|<tr>
 
<th>Sura Classification</th>
 
<th>Sura Classification</th>
Line 19: Line 29:
 
<th>Number of Prostration</th>
 
<th>Number of Prostration</th>
 
<td>{{#regex:{{{number-of-prostration}}}|%\s*\K([^,]+)%|[[Has Number of Prostration::$1]]}}</td>
 
<td>{{#regex:{{{number-of-prostration}}}|%\s*\K([^,]+)%|[[Has Number of Prostration::$1]]}}</td>
</tr>}}
 
{{#if:{{{sura-name|}}}|<tr>
 
<th>Sura Name</th>
 
<td>{{#regex:{{{sura-name}}}|%\s*\K([^,]+)%|[[Has Sura Name::$1]]}}</td>
 
</tr>}}
 
{{#if:{{{sura-number|}}}|<tr>
 
<th>Sura Number</th>
 
<td>{{#regex:{{{sura-number}}}|%\s*\K([^,]+)%|[[Has Surah Number::$1]]}}</td>
 
 
</tr>}}
 
</tr>}}
  

Revision as of 17:34, 7 February 2017

Sura Attributes

HodHoodQuranLogo.PNG