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
 
(33 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<!-- BEGIN: Infobox Template -->
<noinclude>{{Documentation}}
<div style="display:block; overflow-x:auto; max-width:100%;">
{{Infobox person
<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;">
| name        = Jimmy Wales
<tr>
| image        = Jimmy Wales.jpg
  <th colspan="2" style="background-color:#bd282e; color:#ffffff; font-size:120%; padding:6px; text-align:center;">{{{name|Name Here}}}</th>
| caption      =The image of Wikipedia founder.
</tr>
| occupation   = Author
 
| notable_works = [[Wikipedia]]
<!-- Image logic: Works with or without File: prefix -->
| awards      =
{{#if:{{{image_markup|}}}|
<tr>
  <td colspan="2" style="text-align:center; padding:8px;">{{{image_markup}}}</td>
</tr>
|{{#if:{{{image|}}}|
<tr>
   <td colspan="2" style="text-align:center; padding:8px;">
    [[File:{{{image|}}}|250px|center|alt={{{alt|}}}]]
  </td>
</tr>
}}
}}
}}
</noinclude>
 
<div class="infobox" style="width: 22em; border: 1px solid #aaa; border-collapse: collapse; margin: 10px; float: right; background: #f9f9f9;">
{{#if:{{{caption|}}}|
    <table style="width: 100%; border: none;">
<tr>
        <tr>
  <td colspan="2" style="text-align:center; font-size:85%; color:#555;">{{{caption}}}</td>
            <th colspan="2" style="background: #e9e9e9; text-align: center;">{{#if: {{{name|}}} | {{{name}}} | "Unknown Name"}}</th>
</tr>
        </tr>
}}
        <tr>
 
            <td colspan="2" style="text-align: center;">
{{#if:{{{native_name|}}}|
                {{#if: {{{image|}}}
<tr><th style="background-color:#f2f2f2; padding:4px; text-align:left;">Native name</th><td style="padding:4px;">{{{native_name}}}</td></tr>}}
                    | [[File:{{{image}}}|thumb|200px|center]]
 
                    | <span style="font-style: italic;">No image available</span>
{{#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>}}
            </td>
 
        </tr>
{{#if:{{{birth_date|}}}|
        {{#if: {{{caption|}}}
<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>}}
            | <tr>
 
                <td colspan="2" style="align: center; text-align: center; font-style: italic;">{{{caption}}}</td>
{{#if:{{{death_date|}}}|
            </tr>
<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: {{{birth_date|}}}
{{#if:{{{resting_place|}}}|
            | <tr>
<tr><th style="background-color:#f2f2f2; padding:4px; text-align:left;">Resting place</th><td style="padding:4px;">{{{resting_place}}}</td></tr>}}
                <th style="text-align: left;">Born</th>
 
                <td>{{{birth_date}}}</td>
{{#if:{{{nationality|}}}|
            </tr>
<tr><th style="background-color:#f2f2f2; padding:4px; text-align:left;">Nationality</th><td style="padding:4px;">{{{nationality}}}</td></tr>}}
        }}
 
        {{#if: {{{birth_place|}}}
{{#if:{{{citizenship|}}}|
            | <tr>
<tr><th style="background-color:#f2f2f2; padding:4px; text-align:left;">Citizenship</th><td style="padding:4px;">{{{citizenship}}}</td></tr>}}
                <th style="text-align: left;">Place of Birth</th>
 
                <td>{{{birth_place}}}</td>
{{#if:{{{education|}}}|
            </tr>
<tr><th style="background-color:#f2f2f2; padding:4px; text-align:left;">Education</th><td style="padding:4px;">{{{education}}}</td></tr>}}
        }}
 
        {{#if: {{{nationality|}}}
{{#if:{{{alma_mater|}}}|
            | <tr>
<tr><th style="background-color:#f2f2f2; padding:4px; text-align:left;">Alma mater</th><td style="padding:4px;">{{{alma_mater}}}</td></tr>}}
                <th style="text-align: left;">Nationality</th>
 
                <td>{{{nationality}}}</td>
{{#if:{{{occupation|}}}|
            </tr>
<tr><th style="background-color:#f2f2f2; padding:4px; text-align:left;">Occupation</th><td style="padding:4px;">{{{occupation}}}</td></tr>}}
        }}
 
        {{#if: {{{occupation|}}}
{{#if:{{{years_active|}}}|
            | <tr>
<tr><th style="background-color:#f2f2f2; padding:4px; text-align:left;">Years active</th><td style="padding:4px;">{{{years_active}}}</td></tr>}}
                <th style="text-align: left;">Occupation</th>
 
                <td>{{{occupation}}}</td>
{{#if:{{{known_for|}}}|
            </tr>
<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|}}}
{{#if:{{{notable_works|}}}|
            | <tr>
<tr><th style="background-color:#f2f2f2; padding:4px; text-align:left;">Notable works</th><td style="padding:4px;">{{{notable_works}}}</td></tr>}}
                <th style="text-align: left;">Notable Works</th>
 
                <td>{{{notable_works}}}</td>
{{#if:{{{spouse|}}}|
            </tr>
<tr><th style="background-color:#f2f2f2; padding:4px; text-align:left;">Spouse</th><td style="padding:4px;">{{{spouse}}}</td></tr>}}
        }}
 
        {{#if: {{{awards|}}}
{{#if:{{{children|}}}|
            | <tr>
<tr><th style="background-color:#f2f2f2; padding:4px; text-align:left;">Children</th><td style="padding:4px;">{{{children}}}</td></tr>}}
                <th style="text-align: left;">Awards</th>
 
                <td>{{{awards}}}</td>
{{#if:{{{awards|}}}|
            </tr>
<tr><th style="background-color:#f2f2f2; padding:4px; text-align:left;">Awards</th><td style="padding:4px;">{{{awards}}}</td></tr>}}
        }}
 
      {{#if: {{{website|}}}
{{#if:{{{website|}}}|
            | <tr>
<tr><th style="background-color:#f2f2f2; padding:4px; text-align:left;">Website</th><td style="padding:4px;">[{{{website}}} {{{website}}}]</td></tr>}}
                <th style="text-align: left;">Website</th>
 
                <td>{{{website}}}</td>
{{#if:{{{signature|}}}|
            </tr>
<tr><th style="background-color:#f2f2f2; padding:4px; text-align:left;">Signature</th><td style="padding:4px;">[[File:{{{signature}}}|200px]]</td></tr>}}
        }}
</table>
    </table>
</div>
</div>
<!-- Fix for missing section underline below -->
<div style="clear:both;"></div>
<!-- END: Infobox Template -->

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