Template:Person Infobox: Difference between revisions

From Yaoi House Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="infobox-person">
<table class="infobox">
{{#if:{{{name|}}}|
{{#if:{{{name|}}}|
<div class="infobox-person-title">{{{name}}}</div>
<tr>
<th colspan="2" class="infobox-above">{{{name}}}</th>
</tr>
}}
}}


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


{{#if:{{{caption|}}}|
{{#if:{{{caption|}}}|
<div class="infobox-person-image" style="font-size: 90%; padding-top: 0;">'''{{{caption}}}'''</div>
}}
<table class="infobox-person">
{{#if:{{{name|}}}|
<tr>
<tr>
<th colspan="2" class="infobox-person-title">{{{name}}}</th>
<td colspan="2" class="infobox-image" style="font-size: 90%;">{{{caption}}}</td>
</tr>
</tr>
}}
}}


{{#if:{{{title|}}}|
{{#if:{{{birthdate|{{{birthplace|{{{age|}}}}}}}}}|
<tr>
<tr>
<td colspan="2" class="infobox-person-subtitle">{{{title}}}</td>
<th colspan="2" class="infobox-header">Personal information</th>
</tr>
</tr>
}}
}}


{{#if:{{{office|}}}|
{{#if:{{{birthname|}}}|
<tr>
<tr>
<td colspan="2" class="infobox-person-subtitle">{{{office}}}</td>
<th>Born</th>
<td>{{{birthname}}}<br/>{{{birthdate}}}{{#if:{{{birthplace|}}}|<br/>{{{birthplace}}}}}</td>
</tr>
</tr>
}}
|{{#if:{{{birthdate|}}}|
 
{{#if:{{{image|}}}|
<tr>
<tr>
<td colspan="2" class="infobox-person-image">[[File:{{{image}}}|frameless|upright=1.2]]</td>
<th>Born</th>
<td>{{{birthdate}}}{{#if:{{{birthplace|}}}|<br/>{{{birthplace}}}}}</td>
</tr>
</tr>
}}
}}}}


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


{{#if:{{{incumbent|}}}|
{{#if:{{{deathdate|}}}|
<tr>
<tr>
<th colspan="2" class="infobox-person-subheader">Incumbent</th>
<th>Died</th>
<td>{{{deathdate}}}{{#if:{{{deathplace|}}}|<br/>{{{deathplace}}}}}</td>
</tr>
</tr>
}}
}}


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


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


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


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


{{#if:{{{succeeded|}}}|
{{#if:{{{occupation|{{{known_for|{{{years_active|}}}}}}}}}|
<tr>
<tr>
<th class="infobox-person-label">Succeeded by</th>
<th colspan="2" class="infobox-header">Career</th>
<td class="infobox-person-data">{{{succeeded}}}</td>
</tr>
</tr>
}}
}}


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


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


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


{{#if:{{{age|}}}|
{{#if:{{{notable_works|}}}|
<tr>
<tr>
<th class="infobox-person-label">Age</th>
<th>Notable work</th>
<td class="infobox-person-data">{{{age}}}</td>
<td>{{{notable_works}}}</td>
</tr>
</tr>
}}
}}


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


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


{{#if:{{{nationality|}}}|
{{#if:{{{spouse|{{{partner|{{{children|}}}}}}}}}|
<tr>
<tr>
<th class="infobox-person-label">Nationality</th>
<th colspan="2" class="infobox-header">Personal life</th>
<td class="infobox-person-data">{{{nationality}}}</td>
</tr>
</tr>
}}
}}
Line 138: Line 134:
{{#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 145: Line 141:
{{#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 152: Line 148:
{{#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 159: Line 155:
{{#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 166: Line 162:
{{#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 173: Line 169:
{{#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 180: Line 176:
{{#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>
}}
 
{{#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>
}}
}}
Line 243: Line 183:
{{#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 250: Line 190:
{{#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 257: Line 197:
{{#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>
<noinclude>
<templatedata>
<templatedata>
Line 269: Line 208:
"params": {
"params": {
"name": {},
"name": {},
"image": {},
"image": {
"type": "wiki-file-name"
},
"caption": {},
"caption": {},
"birthdate": {},
"birthplace": {},
"age": {},
"age": {},
"birthdate": {},
"birthname": {},
"deathdate": {},
"deathplace": {},
"nationality": {},
"other_names": {},
"height": {},
"height": {},
"weight": {},
"occupation": {},
"occupation": {},
"nationality": {},
"known_for": {},
"years_active": {},
"notable_works": {},
"awards": {},
"website": {},
"website": {},
"spouse": {},
"partner": {},
"children": {},
"parents": {},
"relatives": {},
"education": {},
"alma_mater": {},
"custom1_label": {},
"custom1_label": {},
"custom1_data": {},
"custom1_data": {},
Line 284: Line 242:
"custom3_data": {}
"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}}",
"description": "Template for Persons"
"format": "inline"
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 15:24, 11 January 2026

Template for Persons

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
namename

no description

Unknownoptional
imageimage

no description

Fileoptional
captioncaption

no description

Unknownoptional
birthdatebirthdate

no description

Unknownoptional
birthplacebirthplace

no description

Unknownoptional
ageage

no description

Unknownoptional
birthnamebirthname

no description

Unknownoptional
deathdatedeathdate

no description

Unknownoptional
deathplacedeathplace

no description

Unknownoptional
nationalitynationality

no description

Unknownoptional
other_namesother_names

no description

Unknownoptional
heightheight

no description

Unknownoptional
weightweight

no description

Unknownoptional
occupationoccupation

no description

Unknownoptional
known_forknown_for

no description

Unknownoptional
years_activeyears_active

no description

Unknownoptional
notable_worksnotable_works

no description

Unknownoptional
awardsawards

no description

Unknownoptional
websitewebsite

no description

Unknownoptional
spousespouse

no description

Unknownoptional
partnerpartner

no description

Unknownoptional
childrenchildren

no description

Unknownoptional
parentsparents

no description

Unknownoptional
relativesrelatives

no description

Unknownoptional
educationeducation

no description

Unknownoptional
alma_materalma_mater

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