Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Infobox person: Difference between revisions

Template page
mNo edit summary
Apply notableworks alias consistently to writer field value as well as its visibility condition
 
(42 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<table class="infobox" style="width:270px; float:right; clear:right; margin:0 0 1em 1em; border:2px solid #bd282e; background-color:#f9f9f9; font-size:90%; line-height:1.4em;">
<templatestyles src="Template:Main Page/Style.css" />
<tr>
<div class="infobox bhi-infobox">
  <th colspan="2" style="background-color:#bd282e; color:#ffffff; font-size:120%; padding:6px; text-align:center;">{{{name|Name Here}}}</th>
<div class="bhi-infobox-title">{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}</div>
</tr>
{{#if:{{{image|}}}|<div class="bhi-infobox-media">[[File:{{{image}}}|300px|center|alt={{#if:{{{image_alt|{{{alt|}}}}}}|{{{image_alt|{{{alt|}}}}}}|{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}}}]]</div>}}
 
{{#if:{{{caption|}}}|<div class="bhi-infobox-caption">{{{caption}}}</div>}}
{{#if:{{{image_markup|}}}|
<div class="bhi-infobox-data">
<tr>
<table>{{#if:{{{native_name|}}}|<tr><th scope="row">Native name</th><td>{{{native_name|}}}</td></tr>}}{{#if:{{{pseudonym|}}}|<tr><th scope="row">Pen name</th><td>{{{pseudonym|}}}</td></tr>}}{{#if:{{{language|{{{languages|}}}}}}|<tr><th scope="row">Languages</th><td>{{{language|{{{languages|}}}}}}</td></tr>}}{{#if:{{{birth_name|}}}|<tr><th scope="row">Birth name</th><td>{{{birth_name|}}}</td></tr>}}{{#if:{{{birth_date|}}}|<tr><th scope="row">Born</th><td>{{{birth_date|}}}</td></tr>}}{{#if:{{{birth_place|}}}|<tr><th scope="row">Birthplace</th><td>{{{birth_place|}}}</td></tr>}}{{#if:{{{death_date|}}}|<tr><th scope="row">Died</th><td>{{{death_date|}}}</td></tr>}}{{#if:{{{death_place|}}}|<tr><th scope="row">Place of death</th><td>{{{death_place|}}}</td></tr>}}{{#if:{{{nationality|}}}|<tr><th scope="row">Nationality</th><td>{{{nationality|}}}</td></tr>}}{{#if:{{{other_names|}}}|<tr><th scope="row">Other names</th><td>{{{other_names|}}}</td></tr>}}{{#if:{{{occupation|}}}|<tr><th scope="row">Occupation</th><td>{{{occupation|}}}</td></tr>}}{{#if:{{{years_active|}}}|<tr><th scope="row">Years active</th><td>{{{years_active|}}}</td></tr>}}{{#if:{{{known_for|{{{Known_for|}}}}}}|<tr><th scope="row">Known for</th><td>{{{known_for|{{{Known_for|}}}}}}</td></tr>}}{{#if:{{{notable_works|{{{notableworks|}}}}}}|<tr><th scope="row">Notable works</th><td>{{{notable_works|{{{notableworks|}}}}}}</td></tr>}}{{#if:{{{education|}}}|<tr><th scope="row">Education</th><td>{{{education|}}}</td></tr>}}{{#if:{{{alma_mater|}}}|<tr><th scope="row">Alma mater</th><td>{{{alma_mater|}}}</td></tr>}}{{#if:{{{awards|}}}|<tr><th scope="row">Awards</th><td>{{{awards|}}}</td></tr>}}{{#if:{{{website|}}}|<tr><th scope="row">Website</th><td>{{{website|}}}</td></tr>}}</table>
  <td colspan="2" style="text-align:center; padding:8px;">{{{image_markup}}}</td>
</div>
</tr>
</div>
}}
<noinclude>
 
== Usage ==
{{#if:{{{image|}}}|
Add this infobox near the beginning of a biography. Blank optional fields are hidden. Data is entered by editors; this template does not verify biographical claims or query a live database.
<tr>
<pre>
  <td colspan="2" style="text-align:center; padding:8px;">[[{{{image}}}|250px]]</td>
{{Infobox person
</tr>
| name =
}}
| image =
 
| image_alt =
{{#if:{{{alt|}}}|
| caption =
<tr>
| native_name =
  <th style="width:35%; background-color:#f2f2f2; padding:4px; text-align:left;">Alt</th>
| pseudonym =
  <td style="padding:4px;">{{{alt}}}</td>
| language =
</tr>
| birth_name =
}}
| birth_date =
 
| birth_place =
{{#if:{{{caption|}}}|
| death_date =
<tr>
| death_place =
  <th style="background-color:#f2f2f2; padding:4px; text-align:left;">Caption</th>
| nationality =
  <td style="padding:4px;">{{{caption}}}</td>
| other_names =
</tr>
| occupation =
}}
| years_active =
 
| known_for =
{{#if:{{{native_name|}}}|
| notable_works =
<tr>
| education =
  <th style="background-color:#f2f2f2; padding:4px; text-align:left;">Native name</th>
| alma_mater =
  <td style="padding:4px;">{{{native_name}}}</td>
| awards =
</tr>
| website =
}}
 
{{#if:{{{birth_name|}}}|
<tr>
  <th style="background-color:#f2f2f2; padding:4px; text-align:left;">Birth name</th>
  <td style="padding:4px;">{{{birth_name}}}</td>
</tr>
}}
 
{{#if:{{{birth_date|}}}|
<tr>
  <th style="background-color:#f2f2f2; padding:4px; text-align:left;">Born</th>
  <td style="padding:4px;">{{{birth_date}}}{{#if:{{{birth_place|}}}|<br />{{{birth_place}}}}}</td>
</tr>
}}
 
{{#if:{{{death_date|}}}|
<tr>
  <th style="background-color:#f2f2f2; padding:4px; text-align:left;">Died</th>
  <td style="padding:4px;">{{{death_date}}}{{#if:{{{death_place|}}}|<br />{{{death_place}}}}}</td>
</tr>
}}
 
{{#if:{{{resting_place|}}}|
<tr>
  <th style="background-color:#f2f2f2; padding:4px; text-align:left;">Resting place</th>
  <td style="padding:4px;">{{{resting_place}}}</td>
</tr>
}}
 
{{#if:{{{nationality|}}}|
<tr>
  <th style="background-color:#f2f2f2; padding:4px; text-align:left;">Nationality</th>
  <td style="padding:4px;">{{{nationality}}}</td>
</tr>
}}
 
{{#if:{{{citizenship|}}}|
<tr>
  <th style="background-color:#f2f2f2; padding:4px; text-align:left;">Citizenship</th>
  <td style="padding:4px;">{{{citizenship}}}</td>
</tr>
}}
 
{{#if:{{{other_names|}}}|
<tr>
  <th style="background-color:#f2f2f2; padding:4px; text-align:left;">Other names</th>
  <td style="padding:4px;">{{{other_names}}}</td>
</tr>
}}
 
{{#if:{{{education|}}}|
<tr>
  <th style="background-color:#f2f2f2; padding:4px; text-align:left;">Education</th>
  <td style="padding:4px;">{{{education}}}</td>
</tr>
}}
 
{{#if:{{{alma_mater|}}}|
<tr>
  <th style="background-color:#f2f2f2; padding:4px; text-align:left;">Alma mater</th>
  <td style="padding:4px;">{{{alma_mater}}}</td>
</tr>
}}
 
{{#if:{{{occupation|}}}|
<tr>
  <th style="background-color:#f2f2f2; padding:4px; text-align:left;">Occupation</th>
  <td style="padding:4px;">{{{occupation}}}</td>
</tr>
}}
 
{{#if:{{{years_active|}}}|
<tr>
  <th style="background-color:#f2f2f2; padding:4px; text-align:left;">Years active</th>
  <td style="padding:4px;">{{{years_active}}}</td>
</tr>
}}
 
{{#if:{{{known_for|}}}|
<tr>
  <th style="background-color:#f2f2f2; padding:4px; text-align:left;">Known for</th>
  <td style="padding:4px;">{{{known_for}}}</td>
</tr>
}}
 
{{#if:{{{notable_works|}}}|
<tr>
  <th style="background-color:#f2f2f2; padding:4px; text-align:left;">Notable works</th>
  <td style="padding:4px;">{{{notable_works}}}</td>
</tr>
}}
 
{{#if:{{{employer|}}}|
<tr>
  <th style="background-color:#f2f2f2; padding:4px; text-align:left;">Employer</th>
  <td style="padding:4px;">{{{employer}}}</td>
</tr>
}}
 
{{#if:{{{organization|}}}|
<tr>
  <th style="background-color:#f2f2f2; padding:4px; text-align:left;">Organization</th>
  <td style="padding:4px;">{{{organization}}}</td>
</tr>
}}
 
{{#if:{{{title|}}}|
<tr>
  <th style="background-color:#f2f2f2; padding:4px; text-align:left;">Title</th>
  <td style="padding:4px;">{{{title}}}</td>
</tr>
}}
 
{{#if:{{{term|}}}|
<tr>
  <th style="background-color:#f2f2f2; padding:4px; text-align:left;">Term</th>
  <td style="padding:4px;">{{{term}}}</td>
</tr>
}}
 
{{#if:{{{predecessor|}}}|
<tr>
  <th style="background-color:#f2f2f2; padding:4px; text-align:left;">Predecessor</th>
  <td style="padding:4px;">{{{predecessor}}}</td>
</tr>
}}
 
{{#if:{{{successor|}}}|
<tr>
  <th style="background-color:#f2f2f2; padding:4px; text-align:left;">Successor</th>
  <td style="padding:4px;">{{{successor}}}</td>
</tr>
}}
 
{{#if:{{{boards|}}}|
<tr>
  <th style="background-color:#f2f2f2; padding:4px; text-align:left;">Boards</th>
  <td style="padding:4px;">{{{boards}}}</td>
</tr>
}}
 
{{#if:{{{net_worth|}}}|
<tr>
  <th style="background-color:#f2f2f2; padding:4px; text-align:left;">Net worth</th>
  <td style="padding:4px;">{{{net_worth}}}</td>
</tr>
}}
 
{{#if:{{{height|}}}|
<tr>
  <th style="background-color:#f2f2f2; padding:4px; text-align:left;">Height</th>
  <td style="padding:4px;">{{{height}}}</td>
</tr>
}}
 
{{#if:{{{weight|}}}|
<tr>
  <th style="background-color:#f2f2f2; padding:4px; text-align:left;">Weight</th>
  <td style="padding:4px;">{{{weight}}}</td>
</tr>
}}
 
{{#if:{{{television|}}}|
<tr>
  <th style="background-color:#f2f2f2; padding:4px; text-align:left;">Television</th>
  <td style="padding:4px;">{{{television}}}</td>
</tr>
}}
 
{{#if:{{{spouse|}}}|
<tr>
  <th style="background-color:#f2f2f2; padding:4px; text-align:left;">Spouse</th>
  <td style="padding:4px;">{{{spouse}}}</td>
</tr>
}}
 
{{#if:{{{partner|}}}|
<tr>
  <th style="background-color:#f2f2f2; padding:4px; text-align:left;">Partner</th>
  <td style="padding:4px;">{{{partner}}}</td>
</tr>
}}
 
{{#if:{{{children|}}}|
<tr>
  <th style="background-color:#f2f2f2; padding:4px; text-align:left;">Children</th>
  <td style="padding:4px;">{{{children}}}</td>
</tr>
}}
 
{{#if:{{{parents|}}}|
<tr>
  <th style="background-color:#f2f2f2; padding:4px; text-align:left;">Parents</th>
  <td style="padding:4px;">{{{parents}}}</td>
</tr>
}}
 
{{#if:{{{relatives|}}}|
<tr>
  <th style="background-color:#f2f2f2; padding:4px; text-align:left;">Relatives</th>
  <td style="padding:4px;">{{{relatives}}}</td>
</tr>
}}
 
{{#if:{{{awards|}}}|
<tr>
  <th style="background-color:#f2f2f2; padding:4px; text-align:left;">Awards</th>
  <td style="padding:4px;">{{{awards}}}</td>
</tr>
}}
 
{{#if:{{{website|}}}|
<tr>
  <th style="background-color:#f2f2f2; padding:4px; text-align:left;">Website</th>
  <td style="padding:4px;">[{{{website}}} {{{website}}}]</td>
</tr>
}}
 
{{#if:{{{signature|}}}|
<tr>
  <th style="background-color:#f2f2f2; padding:4px; text-align:left;">Signature</th>
  <td style="padding:4px;">[[File:{{{signature}}}|200px]]</td>
</tr>
}}
}}
</pre>
Use a filename without the File: prefix for image, and a descriptive image_alt. Use a complete website URL or a formatted external link. The legacy Known_for and notableworks parameters are also accepted. A missing or blank name uses the article title. Supported fields are listed above; unrelated parameters are not rendered.


</table>
This template uses shared, scoped Bhikitia styles and adapts to the Citizen color theme. Previous versions and attribution remain available in the page history.
</noinclude>

Latest revision as of 16:57, 31 October 2026

Infobox person


Usage

Add this infobox near the beginning of a biography. Blank optional fields are hidden. Data is entered by editors; this template does not verify biographical claims or query a live database.

{{Infobox person
| name =
| image =
| image_alt =
| caption =
| native_name =
| pseudonym =
| language =
| birth_name =
| birth_date =
| birth_place =
| death_date =
| death_place =
| nationality =
| other_names =
| occupation =
| years_active =
| known_for =
| notable_works =
| education =
| alma_mater =
| awards =
| website =
}}

Use a filename without the File: prefix for image, and a descriptive image_alt. Use a complete website URL or a formatted external link. The legacy Known_for and notableworks parameters are also accepted. A missing or blank name uses the article title. Supported fields are listed above; unrelated parameters are not rendered.

This template uses shared, scoped Bhikitia styles and adapts to the Citizen color theme. Previous versions and attribution remain available in the page history.

Contents