Template:Person Infobox: Difference between revisions

From Yaoi House Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 11: Line 11:
<div class="infobox-person-image" style="font-size: 90%; padding-top: 0;">'''{{{caption}}}'''</div>
<div class="infobox-person-image" style="font-size: 90%; padding-top: 0;">'''{{{caption}}}'''</div>
}}
}}
<table class="infobox-person">
<table class="infobox-person">
{{#if:{{{name|}}}|
{{#if:{{{name|}}}|
Line 19: Line 18:
}}
}}


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


{{#if:{{{caption|}}}|
{{#if:{{{office|}}}|
<tr>
<tr>
<td colspan="2" class="infobox-person-caption">{{{caption}}}</td>
<td colspan="2" class="infobox-person-subtitle">{{{office}}}</td>
</tr>
</tr>
}}
}}


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


{{#if:{{{birthdate|}}}|
{{#if:{{{caption|}}}|
<tr>
<tr>
<th class="infobox-person-label">Born</th>
<td colspan="2" class="infobox-person-caption">{{{caption}}}</td>
<td class="infobox-person-data">{{{birthdate}}}</td>
</tr>
</tr>
}}
}}


{{#if:{{{birthplace|}}}|
{{#if:{{{incumbent|}}}|
<tr>
<tr>
<th class="infobox-person-label">Birthplace</th>
<th colspan="2" class="infobox-person-subheader">Incumbent</th>
<td class="infobox-person-data">{{{birthplace}}}</td>
</tr>
</tr>
}}
}}


{{#if:{{{age|}}}|
{{#if:{{{assumed_office|}}}|
<tr>
<tr>
<th class="infobox-person-label">Age</th>
<th class="infobox-person-label">Assumed office</th>
<td class="infobox-person-data">{{{age}}}</td>
<td class="infobox-person-data">{{{assumed_office}}}</td>
</tr>
</tr>
}}
}}


{{#if:{{{deathdate|}}}|
{{#if:{{{president|}}}|
<tr>
<tr>
<th class="infobox-person-label">Died</th>
<th class="infobox-person-label">President</th>
<td class="infobox-person-data">{{{deathdate}}}</td>
<td class="infobox-person-data">{{{president}}}</td>
</tr>
</tr>
}}
}}


{{#if:{{{nationality|}}}|
{{#if:{{{vice_president|}}}|
<tr>
<tr>
<th class="infobox-person-label">Nationality</th>
<th class="infobox-person-label">Vice President</th>
<td class="infobox-person-data">{{{nationality}}}</td>
<td class="infobox-person-data">{{{vice_president}}}</td>
</tr>
</tr>
}}
}}


{{#if:{{{height|}}}|
{{#if:{{{preceded|}}}|
<tr>
<tr>
<th class="infobox-person-label">Height</th>
<th class="infobox-person-label">Preceded by</th>
<td class="infobox-person-data">{{{height}}}</td>
<td class="infobox-person-data">{{{preceded}}}</td>
</tr>
</tr>
}}
}}


{{#if:{{{weight|}}}|
{{#if:{{{succeeded|}}}|
<tr>
<tr>
<th class="infobox-person-label">Weight</th>
<th class="infobox-person-label">Succeeded by</th>
<td class="infobox-person-data">{{{weight}}}</td>
<td class="infobox-person-data">{{{succeeded}}}</td>
</tr>
</tr>
}}
}}


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


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


{{#if:{{{years_active|}}}|
{{#if:{{{birthname|}}}|
<tr>
<th class="infobox-person-label">Born</th>
<td class="infobox-person-data">{{{birthname}}}<br/>{{{birthdate}}}<br/>{{{birthplace}}}</td>
</tr>
|{{#if:{{{birthdate|}}}|
<tr>
<tr>
<th class="infobox-person-label">Years active</th>
<th class="infobox-person-label">Born</th>
<td class="infobox-person-data">{{{years_active}}}</td>
<td class="infobox-person-data">{{{birthdate}}}{{#if:{{{birthplace|}}}|<br/>{{{birthplace}}}}}</td>
</tr>
</tr>
}}
}}}}


{{#if:{{{known_for|}}}|
{{#if:{{{age|}}}|
<tr>
<tr>
<th class="infobox-person-label">Known for</th>
<th class="infobox-person-label">Age</th>
<td class="infobox-person-data">{{{known_for}}}</td>
<td class="infobox-person-data">{{{age}}}</td>
</tr>
</tr>
}}
}}


{{#if:{{{notable_works|}}}|
{{#if:{{{deathdate|}}}|
<tr>
<tr>
<th class="infobox-person-label">Notable work</th>
<th class="infobox-person-label">Died</th>
<td class="infobox-person-data">{{{notable_works}}}</td>
<td class="infobox-person-data">{{{deathdate}}}{{#if:{{{deathplace|}}}|<br/>{{{deathplace}}}}}</td>
</tr>
</tr>
}}
}}


{{#if:{{{website|}}}|
{{#if:{{{party|}}}|
<tr>
<tr>
<th class="infobox-person-label">Website</th>
<th class="infobox-person-label">Political party</th>
<td class="infobox-person-data">{{{website}}}</td>
<td class="infobox-person-data">{{{party}}}</td>
</tr>
</tr>
}}
}}


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

Revision as of 15:17, 11 January 2026



{{Person Infobox | name = Jane Smith | image = Jane.jpg | age = 30 | height = 5'6" | occupation = Artist | custom1_label = Favorite Color | custom1_data = Blue | custom2_label = Pet | custom2_data = Cat named Whiskers }}

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
namename

no description

Unknownoptional
imageimage

no description

Unknownoptional
captioncaption

no description

Unknownoptional
ageage

no description

Unknownoptional
birthdatebirthdate

no description

Unknownoptional
heightheight

no description

Unknownoptional
occupationoccupation

no description

Unknownoptional
nationalitynationality

no description

Unknownoptional
websitewebsite

no description

Unknownoptional
custom1_labelcustom1_label

no description

Unknownoptional
custom1_datacustom1_data

no description

Unknownoptional
custom2_labelcustom2_label

no description

Unknownoptional
custom2_datacustom2_data

no description

Unknownoptional
custom3_labelcustom3_label

no description

Unknownoptional
custom3_datacustom3_data

no description

Unknownoptional