Template:Person Infobox: Difference between revisions

From Yaoi House Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
<div class="infobox-person">
<table class="infobox">
 
{{#if:{{{image|}}}|
<div class="infobox-person-image">[[File:{{{image}}}|250px]]</div>
}}
 
{{#if:{{{caption|}}}|
<div class="infobox-person-image" style="font-size: 90%; padding-top: 0;">'''{{{caption}}}'''</div>
}}
<table class="infobox-person">
{{#if:{{{name|}}}|
{{#if:{{{name|}}}|
<tr>
<tr>
<th colspan="2" class="infobox-person-title">{{{name}}}</th>
<th colspan="2" class="infobox-above">{{{name}}}</th>
</tr>
</tr>
}}
}}
Line 17: Line 8:
{{#if:{{{title|}}}|
{{#if:{{{title|}}}|
<tr>
<tr>
<td colspan="2" class="infobox-person-subtitle">{{{title}}}</td>
<td colspan="2" class="infobox-subheader">{{{title}}}</td>
</tr>
</tr>
}}
}}
Line 23: Line 14:
{{#if:{{{office|}}}|
{{#if:{{{office|}}}|
<tr>
<tr>
<td colspan="2" class="infobox-person-subtitle">{{{office}}}</td>
<td colspan="2" class="infobox-subheader">{{{office}}}</td>
</tr>
</tr>
}}
}}
Line 29: Line 20:
{{#if:{{{image|}}}|
{{#if:{{{image|}}}|
<tr>
<tr>
<td colspan="2" class="infobox-person-image">[[File:{{{image}}}|frameless|upright=1.2]]</td>
<td colspan="2" class="infobox-image">[[File:{{{image}}}|frameless|upright=1.2]]</td>
</tr>
</tr>
}}
}}
Line 35: Line 26:
{{#if:{{{caption|}}}|
{{#if:{{{caption|}}}|
<tr>
<tr>
<td colspan="2" class="infobox-person-caption">{{{caption}}}</td>
<td colspan="2" class="infobox-image" style="font-size: 90%;">{{{caption}}}</td>
</tr>
</tr>
}}
}}
Line 41: Line 32:
{{#if:{{{incumbent|}}}|
{{#if:{{{incumbent|}}}|
<tr>
<tr>
<th colspan="2" class="infobox-person-subheader">Incumbent</th>
<th colspan="2" class="infobox-header">Incumbent</th>
</tr>
</tr>
}}
}}
Line 47: Line 38:
{{#if:{{{assumed_office|}}}|
{{#if:{{{assumed_office|}}}|
<tr>
<tr>
<th class="infobox-person-label">Assumed office</th>
<th>Assumed office</th>
<td class="infobox-person-data">{{{assumed_office}}}</td>
<td>{{{assumed_office}}}</td>
</tr>
</tr>
}}
}}
Line 54: Line 45:
{{#if:{{{president|}}}|
{{#if:{{{president|}}}|
<tr>
<tr>
<th class="infobox-person-label">President</th>
<th>President</th>
<td class="infobox-person-data">{{{president}}}</td>
<td>{{{president}}}</td>
</tr>
</tr>
}}
}}
Line 61: Line 52:
{{#if:{{{vice_president|}}}|
{{#if:{{{vice_president|}}}|
<tr>
<tr>
<th class="infobox-person-label">Vice President</th>
<th>Vice President</th>
<td class="infobox-person-data">{{{vice_president}}}</td>
<td>{{{vice_president}}}</td>
</tr>
</tr>
}}
}}
Line 68: Line 59:
{{#if:{{{preceded|}}}|
{{#if:{{{preceded|}}}|
<tr>
<tr>
<th class="infobox-person-label">Preceded by</th>
<th>Preceded by</th>
<td class="infobox-person-data">{{{preceded}}}</td>
<td>{{{preceded}}}</td>
</tr>
</tr>
}}
}}
Line 75: Line 66:
{{#if:{{{succeeded|}}}|
{{#if:{{{succeeded|}}}|
<tr>
<tr>
<th class="infobox-person-label">Succeeded by</th>
<th>Succeeded by</th>
<td class="infobox-person-data">{{{succeeded}}}</td>
<td>{{{succeeded}}}</td>
</tr>
</tr>
}}
}}
Line 82: Line 73:
{{#if:{{{in_office|}}}|
{{#if:{{{in_office|}}}|
<tr>
<tr>
<th class="infobox-person-label">In office</th>
<th>In office</th>
<td class="infobox-person-data">{{{in_office}}}</td>
<td>{{{in_office}}}</td>
</tr>
</tr>
}}
}}
Line 89: Line 80:
{{#if:{{{birthdate|{{{birthplace|{{{age|}}}}}}}}}|
{{#if:{{{birthdate|{{{birthplace|{{{age|}}}}}}}}}|
<tr>
<tr>
<th colspan="2" class="infobox-person-header">Personal details</th>
<th colspan="2" class="infobox-header">Personal details</th>
</tr>
</tr>
}}
}}
Line 95: Line 86:
{{#if:{{{birthname|}}}|
{{#if:{{{birthname|}}}|
<tr>
<tr>
<th class="infobox-person-label">Born</th>
<th>Born</th>
<td class="infobox-person-data">{{{birthname}}}<br/>{{{birthdate}}}<br/>{{{birthplace}}}</td>
<td>{{{birthname}}}<br/>{{{birthdate}}}{{#if:{{{birthplace|}}}|<br/>{{{birthplace}}}}}</td>
</tr>
</tr>
|{{#if:{{{birthdate|}}}|
|{{#if:{{{birthdate|}}}|
<tr>
<tr>
<th class="infobox-person-label">Born</th>
<th>Born</th>
<td class="infobox-person-data">{{{birthdate}}}{{#if:{{{birthplace|}}}|<br/>{{{birthplace}}}}}</td>
<td>{{{birthdate}}}{{#if:{{{birthplace|}}}|<br/>{{{birthplace}}}}}</td>
</tr>
</tr>
}}}}
}}}}
Line 107: Line 98:
{{#if:{{{age|}}}|
{{#if:{{{age|}}}|
<tr>
<tr>
<th class="infobox-person-label">Age</th>
<th>Age</th>
<td class="infobox-person-data">{{{age}}}</td>
<td>{{{age}}}</td>
</tr>
</tr>
}}
}}
Line 114: Line 105:
{{#if:{{{deathdate|}}}|
{{#if:{{{deathdate|}}}|
<tr>
<tr>
<th class="infobox-person-label">Died</th>
<th>Died</th>
<td class="infobox-person-data">{{{deathdate}}}{{#if:{{{deathplace|}}}|<br/>{{{deathplace}}}}}</td>
<td>{{{deathdate}}}{{#if:{{{deathplace|}}}|<br/>{{{deathplace}}}}}</td>
</tr>
</tr>
}}
}}
Line 121: Line 112:
{{#if:{{{party|}}}|
{{#if:{{{party|}}}|
<tr>
<tr>
<th class="infobox-person-label">Political party</th>
<th>Political party</th>
<td class="infobox-person-data">{{{party}}}</td>
<td>{{{party}}}</td>
</tr>
</tr>
}}
}}
Line 128: Line 119:
{{#if:{{{nationality|}}}|
{{#if:{{{nationality|}}}|
<tr>
<tr>
<th class="infobox-person-label">Nationality</th>
<th>Nationality</th>
<td class="infobox-person-data">{{{nationality}}}</td>
<td>{{{nationality}}}</td>
</tr>
</tr>
}}
}}
Line 135: Line 126:
{{#if:{{{spouse|}}}|
{{#if:{{{spouse|}}}|
<tr>
<tr>
<th class="infobox-person-label">Spouse(s)</th>
<th>Spouse(s)</th>
<td class="infobox-person-data">{{{spouse}}}</td>
<td>{{{spouse}}}</td>
</tr>
</tr>
}}
}}
Line 142: Line 133:
{{#if:{{{partner|}}}|
{{#if:{{{partner|}}}|
<tr>
<tr>
<th class="infobox-person-label">Partner(s)</th>
<th>Partner(s)</th>
<td class="infobox-person-data">{{{partner}}}</td>
<td>{{{partner}}}</td>
</tr>
</tr>
}}
}}
Line 149: Line 140:
{{#if:{{{children|}}}|
{{#if:{{{children|}}}|
<tr>
<tr>
<th class="infobox-person-label">Children</th>
<th>Children</th>
<td class="infobox-person-data">{{{children}}}</td>
<td>{{{children}}}</td>
</tr>
</tr>
}}
}}
Line 156: Line 147:
{{#if:{{{parents|}}}|
{{#if:{{{parents|}}}|
<tr>
<tr>
<th class="infobox-person-label">Parent(s)</th>
<th>Parent(s)</th>
<td class="infobox-person-data">{{{parents}}}</td>
<td>{{{parents}}}</td>
</tr>
</tr>
}}
}}
Line 163: Line 154:
{{#if:{{{relatives|}}}|
{{#if:{{{relatives|}}}|
<tr>
<tr>
<th class="infobox-person-label">Relatives</th>
<th>Relatives</th>
<td class="infobox-person-data">{{{relatives}}}</td>
<td>{{{relatives}}}</td>
</tr>
</tr>
}}
}}
Line 170: Line 161:
{{#if:{{{education|}}}|
{{#if:{{{education|}}}|
<tr>
<tr>
<th class="infobox-person-label">Education</th>
<th>Education</th>
<td class="infobox-person-data">{{{education}}}</td>
<td>{{{education}}}</td>
</tr>
</tr>
}}
}}
Line 177: Line 168:
{{#if:{{{alma_mater|}}}|
{{#if:{{{alma_mater|}}}|
<tr>
<tr>
<th class="infobox-person-label">Alma mater</th>
<th>Alma mater</th>
<td class="infobox-person-data">{{{alma_mater}}}</td>
<td>{{{alma_mater}}}</td>
</tr>
</tr>
}}
}}
Line 184: Line 175:
{{#if:{{{occupation|}}}|
{{#if:{{{occupation|}}}|
<tr>
<tr>
<th class="infobox-person-label">Occupation</th>
<th>Occupation</th>
<td class="infobox-person-data">{{{occupation}}}</td>
<td>{{{occupation}}}</td>
</tr>
</tr>
}}
}}
Line 191: Line 182:
{{#if:{{{height|}}}|
{{#if:{{{height|}}}|
<tr>
<tr>
<th class="infobox-person-label">Height</th>
<th>Height</th>
<td class="infobox-person-data">{{{height}}}</td>
<td>{{{height}}}</td>
</tr>
</tr>
}}
}}
Line 198: Line 189:
{{#if:{{{weight|}}}|
{{#if:{{{weight|}}}|
<tr>
<tr>
<th class="infobox-person-label">Weight</th>
<th>Weight</th>
<td class="infobox-person-data">{{{weight}}}</td>
<td>{{{weight}}}</td>
</tr>
</tr>
}}
}}
Line 205: Line 196:
{{#if:{{{known_for|}}}|
{{#if:{{{known_for|}}}|
<tr>
<tr>
<th class="infobox-person-label">Known for</th>
<th>Known for</th>
<td class="infobox-person-data">{{{known_for}}}</td>
<td>{{{known_for}}}</td>
</tr>
</tr>
}}
}}
Line 212: Line 203:
{{#if:{{{years_active|}}}|
{{#if:{{{years_active|}}}|
<tr>
<tr>
<th class="infobox-person-label">Years active</th>
<th>Years active</th>
<td class="infobox-person-data">{{{years_active}}}</td>
<td>{{{years_active}}}</td>
</tr>
</tr>
}}
}}
Line 219: Line 210:
{{#if:{{{notable_works|}}}|
{{#if:{{{notable_works|}}}|
<tr>
<tr>
<th class="infobox-person-label">Notable work</th>
<th>Notable work</th>
<td class="infobox-person-data">{{{notable_works}}}</td>
<td>{{{notable_works}}}</td>
</tr>
</tr>
}}
}}
Line 226: Line 217:
{{#if:{{{website|}}}|
{{#if:{{{website|}}}|
<tr>
<tr>
<th class="infobox-person-label">Website</th>
<th>Website</th>
<td class="infobox-person-data">{{{website}}}</td>
<td>{{{website}}}</td>
</tr>
</tr>
}}
}}
Line 233: Line 224:
{{#if:{{{signature|}}}|
{{#if:{{{signature|}}}|
<tr>
<tr>
<th class="infobox-person-label">Signature</th>
<th>Signature</th>
<td class="infobox-person-data">[[File:{{{signature}}}|150px]]</td>
<td class="infobox-image">[[File:{{{signature}}}|150px]]</td>
</tr>
</tr>
}}
}}
Line 240: Line 231:
{{#if:{{{custom1_label|}}}|
{{#if:{{{custom1_label|}}}|
<tr>
<tr>
<th class="infobox-person-label">{{{custom1_label}}}</th>
<th>{{{custom1_label}}}</th>
<td class="infobox-person-data">{{{custom1_data}}}</td>
<td>{{{custom1_data}}}</td>
</tr>
</tr>
}}
}}
Line 247: Line 238:
{{#if:{{{custom2_label|}}}|
{{#if:{{{custom2_label|}}}|
<tr>
<tr>
<th class="infobox-person-label">{{{custom2_label}}}</th>
<th>{{{custom2_label}}}</th>
<td class="infobox-person-data">{{{custom2_data}}}</td>
<td>{{{custom2_data}}}</td>
</tr>
</tr>
}}
}}
Line 254: Line 245:
{{#if:{{{custom3_label|}}}|
{{#if:{{{custom3_label|}}}|
<tr>
<tr>
<th class="infobox-person-label">{{{custom3_label}}}</th>
<th>{{{custom3_label}}}</th>
<td class="infobox-person-data">{{{custom3_data}}}</td>
<td>{{{custom3_data}}}</td>
</tr>
</tr>
}}
}}


</table>
</table>
</div>
<noinclude>
<templatedata>
{
"params": {
"name": {},
"image": {},
"caption": {},
"age": {},
"birthdate": {},
"height": {},
"occupation": {},
"nationality": {},
"website": {},
"custom1_label": {},
"custom1_data": {},
"custom2_label": {},
"custom2_data": {},
"custom3_label": {},
"custom3_data": {}
},
"description": "{{Person Infobox\n| name = Jane Smith\n| image = Jane.jpg\n| age = 30\n| height = 5'6\"\n| occupation = Artist\n| custom1_label = Favorite Color\n| custom1_data = Blue\n| custom2_label = Pet\n| custom2_data = Cat named Whiskers\n}}",
"format": "inline"
}
</templatedata>
</noinclude>

Revision as of 15:23, 11 January 2026