Template:Infobox Per: Difference between revisions
Appearance
Taurussmith (talk | contribs) No edit summary |
Taurussmith (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
<infobox> | <includeonly><div class="infobox biography vcard" style="width:22em; font-size:90%; text-align:left; float:right; clear:right; margin:0 0 1em 1em; background:#f8f9fa; border:1px solid #a2a9b1; border-spacing:3px; padding:4px;"> | ||
<!-- Name with honorifics --> | |||
<div style="text-align:center; font-size:125%; font-weight:bold; padding:0.2em 0;"> | |||
{{#if:{{{honorific_prefix|}}}|<span class="honorific-prefix">{{{honorific_prefix}}}</span><br />}}{{{name|{{PAGENAME}}}}}{{#if:{{{honorific_suffix|}}}|<br /><span class="honorific-suffix">{{{honorific_suffix}}}</span>}} | |||
</div> | |||
<!-- Image --> | |||
{{#if:{{{image|}}}|<div style="text-align:center; padding:0.5em 0;">[[File:{{{image}}}|{{#if:{{{image_size|}}}|{{{image_size}}}|frameless}}{{#if:{{{image_upright|}}}|{{!}}upright={{{image_upright}}}}}{{#if:{{{alt|}}}|{{!}}alt={{{alt}}}}}]]</div>}} | |||
{{#if:{{{caption|}}}|<div style="text-align:center; padding:0 0.5em 0.5em;">{{{caption}}}</div>}} | |||
<!-- Personal Details Header --> | |||
{{#if:{{{native_name|}}}{{{birth_name|}}}{{{birth_date|}}}{{{birth_place|}}}{{{death_date|}}}{{{death_place|}}}{{{resting_place|}}}{{{nationality|}}}{{{citizenship|}}}|<div style="background:#d3d3d3; text-align:center; font-weight:bold; padding:0.2em;">Personal details</div>}} | |||
<!-- Native name --> | |||
{{#if:{{{native_name|}}}|<div style="padding:0.2em 0.5em;"><b>Native name</b><br />{{{native_name}}}</div>}} | |||
<!-- Pronunciation --> | |||
{{#if:{{{pronunciation|}}}|<div style="padding:0.2em 0.5em;"><b>Pronunciation</b><br />{{{pronunciation}}}</div>}} | |||
<!-- Born --> | |||
{{#if:{{{birth_name|}}}{{{birth_date|}}}{{{birth_place|}}}|<div style="padding:0.2em 0.5em;"><b>Born</b><br />{{#if:{{{birth_name|}}}|{{{birth_name}}}<br />}}{{#if:{{{birth_date|}}}|{{{birth_date}}}<br />}}{{{birth_place|}}}</div>}} | |||
<!-- Died --> | |||
{{#if:{{{death_date|}}}{{{death_place|}}}|<div style="padding:0.2em 0.5em;"><b>Died</b><br />{{#if:{{{death_date|}}}|{{{death_date}}}<br />}}{{{death_place|}}}</div>}} | |||
<!-- Cause of death --> | |||
{{#if:{{{death_cause|}}}|<div style="padding:0.2em 0.5em;"><b>Cause of death</b><br />{{{death_cause}}}</div>}} | |||
<!-- Resting place --> | |||
{{#if:{{{resting_place|}}}|<div style="padding:0.2em 0.5em;"><b>Resting place</b><br />{{{resting_place}}}</div>}} | |||
<!-- Nationality --> | |||
{{#if:{{{nationality|}}}|<div style="padding:0.2em 0.5em;"><b>Nationality</b><br />{{{nationality}}}</div>}} | |||
<!-- Citizenship --> | |||
{{#if:{{{citizenship|}}}|<div style="padding:0.2em 0.5em;"><b>Citizenship</b><br />{{{citizenship}}}</div>}} | |||
<!-- Education --> | |||
{{#if:{{{education|}}}|<div style="padding:0.2em 0.5em;"><b>Education</b><br />{{{education}}}</div>}} | |||
<!-- Alma mater --> | |||
{{#if:{{{alma_mater|}}}|<div style="padding:0.2em 0.5em;"><b>Alma mater</b><br />{{{alma_mater}}}</div>}} | |||
<!-- Occupation --> | |||
{{#if:{{{occupation|}}}|<div style="padding:0.2em 0.5em;"><b>Occupation</b><br />{{{occupation}}}</div>}} | |||
<!-- Years active --> | |||
{{#if:{{{years_active|}}}|<div style="padding:0.2em 0.5em;"><b>Years active</b><br />{{{years_active}}}</div>}} | |||
<!-- Era --> | |||
{{#if:{{{era|}}}|<div style="padding:0.2em 0.5em;"><b>Era</b><br />{{{era}}}</div>}} | |||
<!-- Employer --> | |||
{{#if:{{{employer|}}}|<div style="padding:0.2em 0.5em;"><b>Employer</b><br />{{{employer}}}</div>}} | |||
</infobox> | <!-- Organization --> | ||
{{#if:{{{organization|}}}|<div style="padding:0.2em 0.5em;"><b>Organization</b><br />{{{organization}}}</div>}} | |||
<!-- Known for --> | |||
{{#if:{{{known_for|}}}|<div style="padding:0.2em 0.5em;"><b>Known for</b><br />{{{known_for}}}</div>}} | |||
<!-- Notable work --> | |||
{{#if:{{{notable_works|}}}|<div style="padding:0.2em 0.5em;"><b>Notable work</b><br />{{{notable_works}}}</div>}} | |||
<!-- Title --> | |||
{{#if:{{{title|}}}|<div style="padding:0.2em 0.5em;"><b>Title</b><br />{{{title}}}</div>}} | |||
<!-- Term --> | |||
{{#if:{{{term|}}}|<div style="padding:0.2em 0.5em;"><b>Term</b><br />{{{term}}}</div>}} | |||
<!-- Predecessor --> | |||
{{#if:{{{predecessor|}}}|<div style="padding:0.2em 0.5em;"><b>Predecessor</b><br />{{{predecessor}}}</div>}} | |||
<!-- Successor --> | |||
{{#if:{{{successor|}}}|<div style="padding:0.2em 0.5em;"><b>Successor</b><br />{{{successor}}}</div>}} | |||
<!-- Political party --> | |||
{{#if:{{{party|}}}|<div style="padding:0.2em 0.5em;"><b>Political party</b><br />{{{party}}}</div>}} | |||
<!-- Movement --> | |||
{{#if:{{{movement|}}}|<div style="padding:0.2em 0.5em;"><b>Movement</b><br />{{{movement}}}</div>}} | |||
<!-- Opponents --> | |||
{{#if:{{{opponents|}}}|<div style="padding:0.2em 0.5em;"><b>Opponent(s)</b><br />{{{opponents}}}</div>}} | |||
<!-- Boards --> | |||
{{#if:{{{boards|}}}|<div style="padding:0.2em 0.5em;"><b>Board member of</b><br />{{{boards}}}</div>}} | |||
<!-- Spouse --> | |||
{{#if:{{{spouse|}}}|<div style="padding:0.2em 0.5em;"><b>Spouse(s)</b><br />{{{spouse}}}</div>}} | |||
<!-- Partner --> | |||
{{#if:{{{partner|}}}|<div style="padding:0.2em 0.5em;"><b>Partner(s)</b><br />{{{partner}}}</div>}} | |||
<!-- Children --> | |||
{{#if:{{{children|}}}|<div style="padding:0.2em 0.5em;"><b>Children</b><br />{{{children}}}</div>}} | |||
<!-- Parents --> | |||
{{#if:{{{parents|}}}|<div style="padding:0.2em 0.5em;"><b>Parent(s)</b><br />{{{parents}}}</div>}} | |||
<!-- Relatives --> | |||
{{#if:{{{relatives|}}}|<div style="padding:0.2em 0.5em;"><b>Relatives</b><br />{{{relatives}}}</div>}} | |||
<!-- Family --> | |||
{{#if:{{{family|}}}|<div style="padding:0.2em 0.5em;"><b>Family</b><br />{{{family}}}</div>}} | |||
<!-- Awards --> | |||
{{#if:{{{awards|}}}|<div style="padding:0.2em 0.5em;"><b>Awards</b><br />{{{awards}}}</div>}} | |||
<!-- Website --> | |||
{{#if:{{{website|}}}|<div style="padding:0.2em 0.5em;"><b>Website</b><br />{{{website}}}</div>}} | |||
<!-- Modules (Additional information) --> | |||
{{#if:{{{module|}}}{{{module2|}}}{{{module3|}}}{{{module4|}}}{{{module5|}}}|<div style="background:#d3d3d3; text-align:center; font-weight:bold; padding:0.2em;">Additional information</div>}} | |||
{{#if:{{{module|}}}|<div style="padding:0.2em 0.5em;">{{{module}}}</div>}} | |||
{{#if:{{{module2|}}}|<div style="padding:0.2em 0.5em;">{{{module2}}}</div>}} | |||
{{#if:{{{module3|}}}|<div style="padding:0.2em 0.5em;">{{{module3}}}</div>}} | |||
{{#if:{{{module4|}}}|<div style="padding:0.2em 0.5em;">{{{module4}}}</div>}} | |||
{{#if:{{{module5|}}}|<div style="padding:0.2em 0.5em;">{{{module5}}}</div>}} | |||
<!-- Signature --> | |||
{{#if:{{{signature|}}}|<div style="text-align:center; padding:0.5em;">{{{signature}}}</div>}} | |||
</div>[[Category:Pages using infobox person]]</includeonly><noinclude> | |||
{{Documentation}} | |||
</noinclude> | |||
Revision as of 13:09, 15 May 2026
📄 Template documentation
This is a documentation subpage for Template:Infobox Per.
It contains usage information, categories, and other content that is not part of the original template page.
Usage
Copy and paste the code below into a page:
{{Infobox person
| name =
| honorific_prefix =
| honorific_suffix =
| image =
| image_size =
| alt =
| caption =
| native_name =
| pronunciation =
| birth_name =
| birth_date =
| birth_place =
| death_date =
| death_place =
| death_cause =
| resting_place =
| nationality =
| citizenship =
| education =
| alma_mater =
| occupation =
| years_active =
| era =
| employer =
| organization =
| known_for =
| notable_works =
| title =
| term =
| predecessor =
| successor =
| party =
| movement =
| opponents =
| boards =
| spouse =
| partner =
| children =
| parents =
| relatives =
| family =
| awards =
| website =
| signature =
| module =
| module2 =
| module3 =
| module4 =
| module5 =
}}
Example
{{Infobox person
| name = John Doe
| image = Example.jpg
| caption = John Doe in 2024
| birth_date = 1 January 1980
| birth_place = New York City, USA
| occupation = Software Developer
| known_for = Creating infobox templates
| website = https://example.com
}}
Parameters
| Parameter | Description |
|---|---|
| name | Full name (defaults to page name) |
| honorific_prefix | Titles such as Dr., Sir, Prof. |
| honorific_suffix | Post-nominals such as PhD, OBE |
| image | Image filename (without File: prefix) |
| image_size | Width (e.g., 200px) |
| alt | Alternative text for the image |
| caption | Text displayed below the image |
| birth_date | Date of birth |
| birth_place | Place of birth |
| death_date | Date of death |
| death_place | Place of death |
| occupation | Job or profession |
| known_for | What the person is known for |
| spouse | Spouse name(s) |
| children | Children names |
| website | Official website URL |