Difference between revisions of "Template:Infobox notable"

From HodHood
Jump to: navigation, search
 
(20 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="infobox">
+
<div class="infobox mw-collapsible mw-collapsed">
<big>Notable</big>
+
<big>Notable Biography Information</big>
 +
<div class="mw-collapsible-content">
 
[[File:{{{image|Notable.png}}}|200px]]
 
[[File:{{{image|Notable.png}}}|200px]]
 
<table>
 
<table>
 
<tr>
 
<tr>
 
<th>Name</th>
 
<th>Name</th>
<td>[[Name::{{{name}}}]]</td>
+
<td>[[Name::{{{name|{{PAGENAME}}}}}]]</td>
</tr><tr>
+
</tr>{{#if:{{{nicknames|}}}|<tr>
 
<th>Nicknames</th>
 
<th>Nicknames</th>
 
<td>{{{nicknames}}}</td>
 
<td>{{{nicknames}}}</td>
</tr><tr>
+
</tr>}}
 +
 
 +
{{#if:{{{fullname|}}}|<tr>
 
<th>Full name</th>
 
<th>Full name</th>
 
<td>[[Full name::{{{fullname}}}]]</td>
 
<td>[[Full name::{{{fullname}}}]]</td>
</tr><tr>
+
</tr>}}
 +
 
 +
 
 +
 
 +
{{#if:{{{father|}}}|<tr>
 
<th>Father</th>
 
<th>Father</th>
 
<td>[[Is son of::{{{father}}}]]</td>
 
<td>[[Is son of::{{{father}}}]]</td>
</tr><tr>
+
</tr>}}
 +
 
 +
{{#if:{{{mother|}}}|<tr>
 
<th>Mother</th>
 
<th>Mother</th>
 
<td>[[Is son of::{{{mother}}}]]</td>
 
<td>[[Is son of::{{{mother}}}]]</td>
</tr><tr>
+
</tr>}}
 +
 
 +
 
 +
{{#if:{{{siblings|}}}|<tr>
 
<th>Siblings</th>
 
<th>Siblings</th>
<td>{{#regex:{{{siblings}}}|%([^,\n]+)%|[[Was sibling of::$1]]}}</td>
+
<td>{{#regex:{{{siblings}}}|%\s*\K([^,]+)%|[[Was sibling of::$1]]}}</td>
</tr><tr>
+
</tr>}}
 +
 
 +
{{#if:{{{birth-hijiri|}}}|<tr>
 
<th>Birth Hijiri</th>
 
<th>Birth Hijiri</th>
 
<td>[[Birth Hijiri::{{{birth-hijiri}}}]]</td>
 
<td>[[Birth Hijiri::{{{birth-hijiri}}}]]</td>
</tr><tr>
+
</tr>}}
 +
 
 +
{{#if:{{{miladi|}}}|<tr>
 
<th>Birth Miladi</th>
 
<th>Birth Miladi</th>
 
<td>[[Birth Miladi::{{{birth-miladi}}}]]</td>
 
<td>[[Birth Miladi::{{{birth-miladi}}}]]</td>
</tr><tr>
+
</tr>}}
 +
 
 +
{{#if:{{{birth-place|}}}|<tr>
 
<th>Birth place</th>
 
<th>Birth place</th>
 
<td>[[Birth place::{{{birth-place}}}]]</td>
 
<td>[[Birth place::{{{birth-place}}}]]</td>
</tr><tr>
+
</tr>}}
 +
 
 +
{{#if:{{{death-hijiri|}}}|<tr>
 
<th>Death Hijiri</th>
 
<th>Death Hijiri</th>
 
<td>[[Death Hijiri::{{{death-hijiri}}}]]</td>
 
<td>[[Death Hijiri::{{{death-hijiri}}}]]</td>
</tr><tr>
+
</tr>}}
 +
 
 +
{{#if:{{{death-miladi|}}}|<tr>
 
<th>Death Miladi</th>
 
<th>Death Miladi</th>
 
<td>[[Death Miladi::{{{death-miladi}}}]]</td>
 
<td>[[Death Miladi::{{{death-miladi}}}]]</td>
</tr><tr>
+
</tr>}}
 +
 
 +
{{#if:{{{death-place|}}}|<tr>
 
<th>Death place</th>
 
<th>Death place</th>
 
<td>[[Death place::{{{death-place}}}]]</td>
 
<td>[[Death place::{{{death-place}}}]]</td>
        </tr><tr>
+
</tr>}}
 +
 
 +
{{#if:{{{death-cause|}}}|<tr>
 
               <th>Death cause</th>
 
               <th>Death cause</th>
               <td>{{#regex:{{{Death cause}}}|%([^,\n]+)%|[[Has Death cause::$1]]}}</td>
+
               <td>{{#regex:{{{death-cause}}}|%\s*\K([^,]+)%|[[Has Death cause::$1]]}}</td>
</tr><tr>
+
</tr>}}
 +
 
 +
{{#if:{{{places|}}}|<tr>
 
<th>Places</th>
 
<th>Places</th>
<td>{{#regex:{{{places}}}|%([^,\n]+)%|[[Was in::$1]]}}</td>
+
<td>{{#regex:{{{places}}}|%\s*\K([^,]+)%|[[Was in::$1]]}}</td>
</tr><tr>
+
</tr>}}
 +
 
 +
{{#if:{{{areas|}}}|<tr>
 
<th>Areas</th>
 
<th>Areas</th>
<td>{{#regex:{{{areas}}}|%([^,\n]+)%|[[Worked in::$1]]}}</td>
+
<td>{{#regex:{{{areas}}}|%\s*\K([^,]+)%|[[Worked in::$1]]}}</td>
</tr><tr>
+
</tr>}}
 +
 
 +
{{#if:{{{spouses|}}}|<tr>
 
<th>Spouses</th>
 
<th>Spouses</th>
<td>{{#regex:{{{spouses}}}|%([^,\n]+)%|[[Was married to::$1]]}}</td>
+
<td>{{#regex:{{{spouses}}}|%\s*\K([^,]+)%|[[Was married to::$1]]}}</td>
</tr><tr>
+
</tr>}}
 +
 
 +
{{#if:{{{children|}}}|<tr>
 
<th>Children</th>
 
<th>Children</th>
<td>{{#regex:{{{children}}}|%([^,\n]+)%|[[Was father of::$1]]}}</td>
+
<td>{{#regex:{{{children}}}|%\s*\K([^,]+)%|[[Was father of::$1]]}}</td>
</tr><tr>
+
</tr>}}
 +
 
 +
{{#if:{{{students|}}}|<tr>
 
<th>Students</th>
 
<th>Students</th>
<td>{{#regex:{{{students}}}|%([^,\n]+)%|[[Was teacher of::$1]]}}</td>
+
<td>{{#regex:{{{students}}}|%\s*\K([^,]+)%|[[Was teacher of::$1]]}}</td>
</tr><tr>
+
</tr>}}
 +
 
 +
{{#if:{{{teachers|}}}|<tr>
 
<th>Teachers</th>
 
<th>Teachers</th>
<td>{{#regex:{{{teachers}}}|%([^,\n]+)%|[[Was student of::$1]]}}</td>
+
<td>{{#regex:{{{teachers}}}|%\s*\K([^,]+)%|[[Was student of::$1]]}}</td>
</tr>
+
</tr>}}
 +
 
 +
 
 
</table>
 
</table>
</div>[[Scholar ID::{{{id}}}| ]][[Is notable::true| ]][[Category:Notables]]
+
 
 +
</div></div>{{#if:{{{id|}}}|[[Scholar ID::{{{id}}}| ]]}}[[Is notable::true| ]][[Category:Notables]]

Latest revision as of 06:14, 15 December 2016

Notable Biography Information