Template:Person Infobox: Difference between revisions

From Yaoi House Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 6: Line 6:
}}
}}


{{#if:{{{title|}}}|
{{#if:{{{image|}}}|
<tr>
<tr>
<td colspan="2" class="infobox-subheader">{{{title}}}</td>
<td colspan="2" class="infobox-image">[[File:{{{image}}}|frameless|upright=1.2]]</td>
</tr>
</tr>
}}
}}


{{#if:{{{office|}}}|
{{#if:{{{caption|}}}|
<tr>
<tr>
<td colspan="2" class="infobox-subheader">{{{office}}}</td>
<td colspan="2" class="infobox-image" style="font-size: 90%;">{{{caption}}}</td>
</tr>
</tr>
}}
}}


{{#if:{{{image|}}}|
{{#if:{{{birthdate|{{{birthplace|{{{age|}}}}}}}}}|
<tr>
<tr>
<td colspan="2" class="infobox-image">[[File:{{{image}}}|frameless|upright=1.2]]</td>
<th colspan="2" class="infobox-header">Personal information</th>
</tr>
</tr>
}}
}}


{{#if:{{{caption|}}}|
{{#if:{{{birthname|}}}|
<tr>
<th>Born</th>
<td>{{{birthname}}}<br/>{{{birthdate}}}{{#if:{{{birthplace|}}}|<br/>{{{birthplace}}}}}</td>
</tr>
|{{#if:{{{birthdate|}}}|
<tr>
<tr>
<td colspan="2" class="infobox-image" style="font-size: 90%;">{{{caption}}}</td>
<th>Born</th>
<td>{{{birthdate}}}{{#if:{{{birthplace|}}}|<br/>{{{birthplace}}}}}</td>
</tr>
</tr>
}}
}}}}


{{#if:{{{incumbent|}}}|
{{#if:{{{age|}}}|
<tr>
<tr>
<th colspan="2" class="infobox-header">Incumbent</th>
<th>Age</th>
<td>{{{age}}}</td>
</tr>
</tr>
}}
}}


{{#if:{{{assumed_office|}}}|
{{#if:{{{deathdate|}}}|
<tr>
<tr>
<th>Assumed office</th>
<th>Died</th>
<td>{{{assumed_office}}}</td>
<td>{{{deathdate}}}{{#if:{{{deathplace|}}}|<br/>{{{deathplace}}}}}</td>
</tr>
</tr>
}}
}}


{{#if:{{{president|}}}|
{{#if:{{{nationality|}}}|
<tr>
<tr>
<th>President</th>
<th>Nationality</th>
<td>{{{president}}}</td>
<td>{{{nationality}}}</td>
</tr>
</tr>
}}
}}


{{#if:{{{vice_president|}}}|
{{#if:{{{other_names|}}}|
<tr>
<tr>
<th>Vice President</th>
<th>Other names</th>
<td>{{{vice_president}}}</td>
<td>{{{other_names}}}</td>
</tr>
</tr>
}}
}}


{{#if:{{{preceded|}}}|
{{#if:{{{height|}}}|
<tr>
<tr>
<th>Preceded by</th>
<th>Height</th>
<td>{{{preceded}}}</td>
<td>{{{height}}}</td>
</tr>
</tr>
}}
}}


{{#if:{{{succeeded|}}}|
{{#if:{{{weight|}}}|
<tr>
<tr>
<th>Succeeded by</th>
<th>Weight</th>
<td>{{{succeeded}}}</td>
<td>{{{weight}}}</td>
</tr>
</tr>
}}
}}


{{#if:{{{in_office|}}}|
{{#if:{{{occupation|{{{known_for|{{{years_active|}}}}}}}}}|
<tr>
<tr>
<th>In office</th>
<th colspan="2" class="infobox-header">Career</th>
<td>{{{in_office}}}</td>
</tr>
</tr>
}}
}}


{{#if:{{{birthdate|{{{birthplace|{{{age|}}}}}}}}}|
{{#if:{{{occupation|}}}|
<tr>
<tr>
<th colspan="2" class="infobox-header">Personal details</th>
<th>Occupation</th>
<td>{{{occupation}}}</td>
</tr>
</tr>
}}
}}


{{#if:{{{birthname|}}}|
{{#if:{{{years_active|}}}|
<tr>
<tr>
<th>Born</th>
<th>Years active</th>
<td>{{{birthname}}}<br/>{{{birthdate}}}{{#if:{{{birthplace|}}}|<br/>{{{birthplace}}}}}</td>
<td>{{{years_active}}}</td>
</tr>
</tr>
|{{#if:{{{birthdate|}}}|
}}
 
{{#if:{{{known_for|}}}|
<tr>
<tr>
<th>Born</th>
<th>Known for</th>
<td>{{{birthdate}}}{{#if:{{{birthplace|}}}|<br/>{{{birthplace}}}}}</td>
<td>{{{known_for}}}</td>
</tr>
</tr>
}}}}
}}


{{#if:{{{age|}}}|
{{#if:{{{notable_works|}}}|
<tr>
<tr>
<th>Age</th>
<th>Notable work</th>
<td>{{{age}}}</td>
<td>{{{notable_works}}}</td>
</tr>
</tr>
}}
}}


{{#if:{{{deathdate|}}}|
{{#if:{{{awards|}}}|
<tr>
<tr>
<th>Died</th>
<th>Awards</th>
<td>{{{deathdate}}}{{#if:{{{deathplace|}}}|<br/>{{{deathplace}}}}}</td>
<td>{{{awards}}}</td>
</tr>
</tr>
}}
}}


{{#if:{{{party|}}}|
{{#if:{{{website|}}}|
<tr>
<tr>
<th>Political party</th>
<th>Website</th>
<td>{{{party}}}</td>
<td>{{{website}}}</td>
</tr>
</tr>
}}
}}


{{#if:{{{nationality|}}}|
{{#if:{{{spouse|{{{partner|{{{children|}}}}}}}}}|
<tr>
<tr>
<th>Nationality</th>
<th colspan="2" class="infobox-header">Personal life</th>
<td>{{{nationality}}}</td>
</tr>
</tr>
}}
}}
Line 170: Line 178:
<th>Alma mater</th>
<th>Alma mater</th>
<td>{{{alma_mater}}}</td>
<td>{{{alma_mater}}}</td>
</tr>
}}
{{#if:{{{occupation|}}}|
<tr>
<th>Occupation</th>
<td>{{{occupation}}}</td>
</tr>
}}
{{#if:{{{height|}}}|
<tr>
<th>Height</th>
<td>{{{height}}}</td>
</tr>
}}
{{#if:{{{weight|}}}|
<tr>
<th>Weight</th>
<td>{{{weight}}}</td>
</tr>
}}
{{#if:{{{known_for|}}}|
<tr>
<th>Known for</th>
<td>{{{known_for}}}</td>
</tr>
}}
{{#if:{{{years_active|}}}|
<tr>
<th>Years active</th>
<td>{{{years_active}}}</td>
</tr>
}}
{{#if:{{{notable_works|}}}|
<tr>
<th>Notable work</th>
<td>{{{notable_works}}}</td>
</tr>
}}
{{#if:{{{website|}}}|
<tr>
<th>Website</th>
<td>{{{website}}}</td>
</tr>
}}
{{#if:{{{signature|}}}|
<tr>
<th>Signature</th>
<td class="infobox-image">[[File:{{{signature}}}|150px]]</td>
</tr>
</tr>
}}
}}

Revision as of 15:24, 11 January 2026