Template:Person Infobox: Difference between revisions

From Yaoi House Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="infobox-person">
<table class="infobox">
{{#if:{{{name|}}}|
<div class="infobox-person-title">{{{name}}}</div>
}}
 
{{#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 21: Line 8:
{{#if:{{{image|}}}|
{{#if:{{{image|}}}|
<tr>
<tr>
<td colspan="2" class="infobox-person-image">[[File:{{{image}}}|frameless|upright=1]]</td>
<td colspan="2" class="infobox-image">[[File:{{{image}}}|frameless|upright=1.2]]</td>
</tr>
</tr>
}}
}}
Line 27: Line 14:
{{#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>
}}
}}


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


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


{{#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 60: Line 45:
{{#if:{{{deathdate|}}}|
{{#if:{{{deathdate|}}}|
<tr>
<tr>
<th class="infobox-person-label">Died</th>
<th>Died</th>
<td class="infobox-person-data">{{{deathdate}}}</td>
<td>{{{deathdate}}}{{#if:{{{deathplace|}}}|<br/>{{{deathplace}}}}}</td>
</tr>
</tr>
}}
}}
Line 67: Line 52:
{{#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>
}}
 
{{#if:{{{other_names|}}}|
<tr>
<th>Other names</th>
<td>{{{other_names}}}</td>
</tr>
</tr>
}}
}}
Line 74: Line 66:
{{#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 81: Line 73:
{{#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>
}}
}}


{{#if:{{{occupation|{{{known_for|}}}}}}}|
{{#if:{{{occupation|{{{known_for|{{{years_active|}}}}}}}}}|
<tr>
<tr>
<th colspan="2" class="infobox-person-header">Career</th>
<th colspan="2" class="infobox-header">Career</th>
</tr>
</tr>
}}
}}
Line 94: Line 86:
{{#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 101: Line 93:
{{#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 108: Line 100:
{{#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 115: Line 107:
{{#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>
}}
 
{{#if:{{{awards|}}}|
<tr>
<th>Awards</th>
<td>{{{awards}}}</td>
</tr>
</tr>
}}
}}
Line 122: Line 121:
{{#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 129: Line 128:
{{#if:{{{spouse|{{{partner|{{{children|}}}}}}}}}|
{{#if:{{{spouse|{{{partner|{{{children|}}}}}}}}}|
<tr>
<tr>
<th colspan="2" class="infobox-person-header">Personal life</th>
<th colspan="2" class="infobox-header">Personal life</th>
</tr>
</tr>
}}
}}
Line 135: 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 142: 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 149: 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 156: 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 163: 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>
}}
 
{{#if:{{{education|}}}|
<tr>
<th>Education</th>
<td>{{{education}}}</td>
</tr>
}}
 
{{#if:{{{alma_mater|}}}|
<tr>
<th>Alma mater</th>
<td>{{{alma_mater}}}</td>
</tr>
</tr>
}}
}}
Line 170: 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 177: 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 184: 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 196: 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 211: 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