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
No edit summary
 
(58 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{| class="infobox" style="width: 22em; font-size: 90%; border: 1px solid #aaa; float: right; margin: 0 0 1em 1em; border-collapse: collapse;"
<noinclude>{{Documentation}}
|-
{{Infobox person
! colspan="2" style="text-align:center; font-size:120%; font-weight:bold; border: 1px solid #aaa; background:#ddd;" | {{{name|{{PAGENAME}}}}}
| name        = Jimmy Wales
|-
| image        = Jimmy Wales.jpg
| style="text-align:center; border: 1px solid #aaa;" colspan="2" |
| caption      =The image of Wikipedia founder.
{{#if: {{{image|}}} | [[File:{{{image}}}|220px|alt={{{name|}}}]] }}
| occupation  = Author
|-
| notable_works = [[Wikipedia]]
! style="border: 1px solid #aaa;" | Gender
| awards      =
| style="border: 1px solid #aaa;" | {{{gender|}}}
}}
|-
</noinclude>
! style="border: 1px solid #aaa;" | Age
<div class="infobox" style="width: 22em; border: 1px solid #aaa; border-collapse: collapse; margin: 10px; float: right; background: #f9f9f9;">
| style="border: 1px solid #aaa;" | {{{age|}}}
    <table style="width: 100%; border: none;">
|-
        <tr>
! style="border: 1px solid #aaa;" | Born
            <th colspan="2" style="background: #e9e9e9; text-align: center;">{{#if: {{{name|}}} | {{{name}}} | "Unknown Name"}}</th>
| style="border: 1px solid #aaa;" | {{{birth_name|}}}
        </tr>
|-
        <tr>
! style="border: 1px solid #aaa;" | Birth date
            <td colspan="2" style="text-align: center;">
| style="border: 1px solid #aaa;" | {{{birth_date|}}}
                {{#if: {{{image|}}}
|-
                    | [[File:{{{image}}}|thumb|200px|center]]
! style="border: 1px solid #aaa;" | Birth place
                    | <span style="font-style: italic;">No image available</span>
| style="border: 1px solid #aaa;" | {{{birth_place|}}}
                }}
|-
            </td>
! style="border: 1px solid #aaa;" | Parents
        </tr>
| style="border: 1px solid #aaa;" | {{{parents|}}}
        {{#if: {{{caption|}}}
|-
            | <tr>
! style="border: 1px solid #aaa;" | Relatives
                <td colspan="2" style="align: center; text-align: center; font-style: italic;">{{{caption}}}</td>
| style="border: 1px solid #aaa;" | {{{relatives|}}}
            </tr>
|-
        }}
! style="border: 1px solid #aaa;" | Nationality
        {{#if: {{{birth_date|}}}
| style="border: 1px solid #aaa;" | {{{nationality|}}}
            | <tr>
|-
                <th style="text-align: left;">Born</th>
! style="border: 1px solid #aaa;" | Other names
                <td>{{{birth_date}}}</td>
| style="border: 1px solid #aaa;" | {{{other_names|}}}
            </tr>
|-
        }}
! style="border: 1px solid #aaa;" | Occupation
        {{#if: {{{birth_place|}}}
| style="border: 1px solid #aaa;" | {{{occupation|}}}
            | <tr>
|-
                <th style="text-align: left;">Place of Birth</th>
! style="border: 1px solid #aaa;" | Years active
                <td>{{{birth_place}}}</td>
| style="border: 1px solid #aaa;" | {{{years_active|}}}
            </tr>
|-
        }}
! style="border: 1px solid #aaa;" | Known for
        {{#if: {{{nationality|}}}
| style="border: 1px solid #aaa;" | {{{known_for|}}}
            | <tr>
|-
                <th style="text-align: left;">Nationality</th>
! style="border: 1px solid #aaa;" | Notable work(s)
                <td>{{{nationality}}}</td>
| style="border: 1px solid #aaa;" | {{{notable_works|}}}
            </tr>
|-
        }}
! style="border: 1px solid #aaa;" | Home town
        {{#if: {{{occupation|}}}
| style="border: 1px solid #aaa;" | {{{home_town|}}}
            | <tr>
|-
                <th style="text-align: left;">Occupation</th>
! style="border: 1px solid #aaa;" | Website
                <td>{{{occupation}}}</td>
| style="border: 1px solid #aaa;" | {{#if: {{{website|}}} | [{{{website}}} {{{website}}}] }}
            </tr>
|-
        }}
! colspan="2" style="background:#f0f0f0; text-align:center; font-weight:bold; border: 1px solid #aaa;" | Attributes
        {{#if: {{{notable_works|}}}
|-
            | <tr>
! style="border: 1px solid #aaa;" | Height
                <th style="text-align: left;">Notable Works</th>
| style="border: 1px solid #aaa;" | {{{height|}}}
                <td>{{{notable_works}}}</td>
|-
            </tr>
! style="border: 1px solid #aaa;" | Weight
        }}
| style="border: 1px solid #aaa;" | {{{weight|}}}
        {{#if: {{{awards|}}}
|-
            | <tr>
! style="border: 1px solid #aaa;" | Hair color
                <th style="text-align: left;">Awards</th>
| style="border: 1px solid #aaa;" | {{{hair|}}}
                <td>{{{awards}}}</td>
|-
            </tr>
! style="border: 1px solid #aaa;" | Eye color
        }}
| style="border: 1px solid #aaa;" | {{{eyes|}}}
      {{#if: {{{website|}}}
|}
            | <tr>
                <th style="text-align: left;">Website</th>
                <td>{{{website}}}</td>
            </tr>
        }}
    </table>
</div>

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
The image of Wikipedia founder.
Occupation Author
Notable Works Wikipedia
"Unknown Name"
               No image available