Difference between revisions of "Template:Hadith Text"
From HodHood
(Added several attributes to match extracted concepts) |
|||
Line 6: | Line 6: | ||
<th>Hadith Grade</th> | <th>Hadith Grade</th> | ||
<td>{{#regex:{{{hadith-grade|}}}|%\s*\K([^,]+)%|[[Has Hadith Grade::$1]]}}</td> | <td>{{#regex:{{{hadith-grade|}}}|%\s*\K([^,]+)%|[[Has Hadith Grade::$1]]}}</td> | ||
− | </tr>{{#if:{{{hadith-main-topic|}}}|<tr> | + | </tr> |
+ | {{#if:{{{hadith-main-topic|}}}|<tr> | ||
<th>Hadith Main Topic</th> | <th>Hadith Main Topic</th> | ||
<td>{{#regex:{{{hadith-main-topic}}}|%\s*\K([^,]+)%|[[Has Main Topic::$1]]}}</td> | <td>{{#regex:{{{hadith-main-topic}}}|%\s*\K([^,]+)%|[[Has Main Topic::$1]]}}</td> | ||
− | </tr>}}{{#if:{{{hadith-sub-topic|}}}|<tr> | + | </tr>}} |
+ | {{#if:{{{hadith-sub-topic|}}}|<tr> | ||
<th>Hadith SubTopic</th> | <th>Hadith SubTopic</th> | ||
<td>{{#regex:{{{hadith-sub-topic}}}|%\s*\K([^,]+)%|[[Has Sub Topic::$1]]}}</td> | <td>{{#regex:{{{hadith-sub-topic}}}|%\s*\K([^,]+)%|[[Has Sub Topic::$1]]}}</td> |