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
No edit summary
No edit summary
 
(37 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;">
<noinclude>{{Documentation}}
<tr>
{{Infobox person
  <th colspan="2" style="background-color:#bd282e; color:#ffffff; font-size:120%; padding:6px; text-align:center;">{{{name|Name Here}}}</th>
| name        = Jimmy Wales
</tr>
| image        = Jimmy Wales.jpg
 
| caption      =The image of Wikipedia founder.
{{#if:{{{image_markup|}}}|
| occupation   = Author
<tr>
| notable_works = [[Wikipedia]]
   <td colspan="2" style="text-align:center; padding:8px;">{{{image_markup}}}</td>
| awards      =
</tr>
}}
}}
 
</noinclude>
{{#if:{{{image|}}}|
<div class="infobox" style="width: 22em; border: 1px solid #aaa; border-collapse: collapse; margin: 10px; float: right; background: #f9f9f9;">
<tr>
    <table style="width: 100%; border: none;">
  <td colspan="2" style="text-align:center; padding:8px;">[[{{{image}}}|250px]]</td>
        <tr>
</tr>
            <th colspan="2" style="background: #e9e9e9; text-align: center;">{{#if: {{{name|}}} | {{{name}}} | "Unknown Name"}}</th>
}}
        </tr>
 
        <tr>
{{#if:{{{alt|}}}|
            <td colspan="2" style="text-align: center;">
<tr>
                {{#if: {{{image|}}}
  <th style="width:35%; background-color:#f2f2f2; padding:4px; text-align:left;">Alt</th>
                    | [[File:{{{image}}}|thumb|200px|center]]
  <td style="padding:4px;">{{{alt}}}</td>
                    | <span style="font-style: italic;">No image available</span>
</tr>
                }}
}}
            </td>
 
        </tr>
{{#if:{{{caption|}}}|
        {{#if: {{{caption|}}}
<tr>
            | <tr>
  <th style="background-color:#f2f2f2; padding:4px; text-align:left;">Caption</th>
                <td colspan="2" style="align: center; text-align: center; font-style: italic;">{{{caption}}}</td>
  <td style="padding:4px;">{{{caption}}}</td>
            </tr>
</tr>
        }}
}}
        {{#if: {{{birth_date|}}}
 
            | <tr>
{{#if:{{{native_name|}}}|
                <th style="text-align: left;">Born</th>
<tr>
                <td>{{{birth_date}}}</td>
  <th style="background-color:#f2f2f2; padding:4px; text-align:left;">Native name</th>
            </tr>
  <td style="padding:4px;">{{{native_name}}}</td>
        }}
</tr>
        {{#if: {{{birth_place|}}}
}}
            | <tr>
 
                <th style="text-align: left;">Place of Birth</th>
{{#if:{{{birth_name|}}}|
                <td>{{{birth_place}}}</td>
<tr>
            </tr>
  <th style="background-color:#f2f2f2; padding:4px; text-align:left;">Birth name</th>
        }}
  <td style="padding:4px;">{{{birth_name}}}</td>
        {{#if: {{{nationality|}}}
</tr>
            | <tr>
}}
                <th style="text-align: left;">Nationality</th>
 
                <td>{{{nationality}}}</td>
{{#if:{{{birth_date|}}}|
            </tr>
<tr>
        }}
  <th style="background-color:#f2f2f2; padding:4px; text-align:left;">Born</th>
        {{#if: {{{occupation|}}}
  <td style="padding:4px;">{{{birth_date}}}{{#if:{{{birth_place|}}}|<br />{{{birth_place}}}}}</td>
            | <tr>
</tr>
                <th style="text-align: left;">Occupation</th>
}}
                <td>{{{occupation}}}</td>
 
            </tr>
{{#if:{{{death_date|}}}|
        }}
<tr>
        {{#if: {{{notable_works|}}}
  <th style="background-color:#f2f2f2; padding:4px; text-align:left;">Died</th>
            | <tr>
  <td style="padding:4px;">{{{death_date}}}{{#if:{{{death_place|}}}|<br />{{{death_place}}}}}</td>
                <th style="text-align: left;">Notable Works</th>
</tr>
                <td>{{{notable_works}}}</td>
}}
            </tr>
 
        }}
{{#if:{{{resting_place|}}}|
        {{#if: {{{awards|}}}
<tr>
            | <tr>
  <th style="background-color:#f2f2f2; padding:4px; text-align:left;">Resting place</th>
                <th style="text-align: left;">Awards</th>
  <td style="padding:4px;">{{{resting_place}}}</td>
                <td>{{{awards}}}</td>
</tr>
            </tr>
}}
        }}
 
      {{#if: {{{website|}}}
{{#if:{{{nationality|}}}|
            | <tr>
<tr>
                <th style="text-align: left;">Website</th>
  <th style="background-color:#f2f2f2; padding:4px; text-align:left;">Nationality</th>
                <td>{{{website}}}</td>
  <td style="padding:4px;">{{{nationality}}}</td>
            </tr>
</tr>
        }}
}}
    </table>
 
</div>
{{#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}}}]</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>
}}
 
</table>

Latest revision as of 18:45, 25 May 2026

Your wiki got a version of Template:Documentation that is only relevant to Templates Wiki! Click here to revert it. For a documentation template you can use on your wiki, see Template:Documentation (copy) on Templates Wiki.
Template information, documentation, and installation instructions.
Expand the below text for usage and other information.

Template Documentation:
Note: The template above might be broken without the parameters; this is normal.
View, edit, or check the history of this documentation. (How does this work?)
Editors can experiment with this template's sandbox and testcases.
Description
A template for people articles.
Syntax
Add {{Infobox person|parameters}} at the top of the page with parameters as shown below.

Usage

{{Infobox person
|name          =
|image         =
|gender        =
|age           =
|birth_name    =
|birth_date    =
|birth_place   =
|Patents       =
|Relatives     =
|nationality   =
|other_names   =
|occupation    =
|years_active  =
|known_for     =
|notable_works =
|home_town     =
|height        =
|weight        =
|hair          =
|eyes          =
|website       =
}}

Preview

Some Name
File:Placeholder person.png
Some Name placeholder
Born 1 December 1988
Place of Birth Wikipedia
Nationality Wikian
Occupation Wiki writer
Notable Works Infoboxes
Website www.example.com

Click here to refresh the preview


{{Infobox person
|name          = Some Name
|image         = Placeholder person.png
|caption       = Some Name placeholder
|gender        = Female
|age           = 29
|birth_name    = Some Other Name
|birth_date    = 1 December 1988
|birth_place   = Wikipedia
|death_date    = 4 December 2017
|death_place   = Fandom
|nationality   = Wikian
|other_names   = Some Pseudonym
|occupation    = Wiki writer
|years_active  = 2005 - 2017
|known_for     = Editing templates
|notable_works = Infoboxes
|home_town     = Internet
|height        = 5'7"
|weight        = 160 lbs.
|hair          = Brown
|eyes          = Blue
|website       = www.example.com
}}

Installation Instructions
Export this template, then import to install it.
Use edit summary: Copied from [[w:c:templates:Template:Infobox person]] to properly attribute this template's editors.

The above message will be enough for most cases; if there are additional instructions, you can see them below.

Some Name
File:Sample.jpg
Some Name placeholder
Born 1 December 1988
Place of Birth Wikipedia
Nationality Wikian
Occupation Wiki writer
Notable Works Infoboxes
Website www.example.com
Jimmy Wales
File:Jimmy Wales.jpg
The image of Wikipedia founder.
Occupation Author
Notable Works Wikipedia
"Unknown Name"
               No image available