Jump to content

Template:Infobox Per: Difference between revisions

No edit summary
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;">
<title source="name">
 
<default>{{PAGENAME}}</default>
  <!-- Name with honorifics -->
</title>
  <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 source="image">
  <!-- Image -->
<caption source="caption">
  {{#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>}}
<default>{{{name}}}</default>
  {{#if:{{{caption|}}}|<div style="text-align:center; padding:0 0.5em 0.5em;">{{{caption}}}</div>}}
</caption>
</image>


<data source="birth_name">
  <!-- Personal Details Header -->
<label>Birth name</label>
  {{#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>}}
</data>


<data source="native_name">
  <!-- Native name -->
<label>Native name</label>
  {{#if:{{{native_name|}}}|<div style="padding:0.2em 0.5em;"><b>Native name</b><br />{{{native_name}}}</div>}}
</data>


<data source="birth_date">
  <!-- Pronunciation -->
<label>Born</label>
  {{#if:{{{pronunciation|}}}|<div style="padding:0.2em 0.5em;"><b>Pronunciation</b><br />{{{pronunciation}}}</div>}}
</data>


<data source="birth_place">
  <!-- Born -->
<label>Birthplace</label>
  {{#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>}}
</data>


<data source="death_date">
  <!-- Died -->
<label>Died</label>
  {{#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>}}
</data>


<data source="death_place">
  <!-- Cause of death -->
<label>Place of death</label>
  {{#if:{{{death_cause|}}}|<div style="padding:0.2em 0.5em;"><b>Cause of death</b><br />{{{death_cause}}}</div>}}
</data>


<data source="nationality">
  <!-- Resting place -->
<label>Nationality</label>
  {{#if:{{{resting_place|}}}|<div style="padding:0.2em 0.5em;"><b>Resting place</b><br />{{{resting_place}}}</div>}}
</data>


<data source="occupation">
  <!-- Nationality -->
<label>Occupation</label>
  {{#if:{{{nationality|}}}|<div style="padding:0.2em 0.5em;"><b>Nationality</b><br />{{{nationality}}}</div>}}
</data>


<data source="years_active">
  <!-- Citizenship -->
<label>Years active</label>
  {{#if:{{{citizenship|}}}|<div style="padding:0.2em 0.5em;"><b>Citizenship</b><br />{{{citizenship}}}</div>}}
</data>


<data source="known_for">
  <!-- Education -->
<label>Known for</label>
  {{#if:{{{education|}}}|<div style="padding:0.2em 0.5em;"><b>Education</b><br />{{{education}}}</div>}}
</data>


<data source="spouse">
  <!-- Alma mater -->
<label>Spouse(s)</label>
  {{#if:{{{alma_mater|}}}|<div style="padding:0.2em 0.5em;"><b>Alma mater</b><br />{{{alma_mater}}}</div>}}
</data>


<data source="children">
  <!-- Occupation -->
<label>Children</label>
  {{#if:{{{occupation|}}}|<div style="padding:0.2em 0.5em;"><b>Occupation</b><br />{{{occupation}}}</div>}}
</data>


<data source="education">
  <!-- Years active -->
<label>Education</label>
  {{#if:{{{years_active|}}}|<div style="padding:0.2em 0.5em;"><b>Years active</b><br />{{{years_active}}}</div>}}
</data>


<data source="awards">
  <!-- Era -->
<label>Awards</label>
  {{#if:{{{era|}}}|<div style="padding:0.2em 0.5em;"><b>Era</b><br />{{{era}}}</div>}}
</data>


<data source="website">
  <!-- Employer -->
<label>Website</label>
  {{#if:{{{employer|}}}|<div style="padding:0.2em 0.5em;"><b>Employer</b><br />{{{employer}}}</div>}}
</data>
 
</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