Difference between revisions of "Template:Hadith Text"
From HodHood
Line 31: | Line 31: | ||
<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> | ||
+ | <th>Body Parts</th> | ||
+ | <td>{{#regex:{{{body-parts}}}|%\s*\K([^,]+)%|[[Has Body-Parts::$1]]}}</td> | ||
+ | </tr>}} | ||
+ | |||
+ | |||
+ | {{#if:{{{food|}}}|<tr> | ||
+ | <th>Food</th> | ||
+ | <td>{{#regex:{{{food}}}|%\s*\K([^,]+)%|[[Has Food::$1]]}}</td> | ||
+ | </tr>}} | ||
+ | |||
+ | |||
+ | {{#if:{{{plants|}}}|<tr> | ||
+ | <th>Plants</th> | ||
+ | <td>{{#regex:{{{plants}}}|%\s*\K([^,]+)%|[[Has Plants::$1]]}}</td> | ||
</tr>}} | </tr>}} | ||
Line 36: | Line 54: | ||
<tr> | <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> |