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
 
(36 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<table class="infobox"  
<noinclude>{{Documentation}}
style="
{{Infobox person
  width:100%;
| name        = Jimmy Wales
  max-width:270px;
| image        = Jimmy Wales.jpg
  float:right;
| caption      =The image of Wikipedia founder.
  clear:right;
| occupation  = Author
  margin:0 0 1em 1em;
| notable_works = [[Wikipedia]]
  border:2px solid #bd282e;
| awards      =
  background-color:#f9f9f9;
}}
  font-size:90%;
</noinclude>
  line-height:1.4em;
<div class="infobox" style="width: 22em; border: 1px solid #aaa; border-collapse: collapse; margin: 10px; float: right; background: #f9f9f9;">
  box-sizing:border-box;
    <table style="width: 100%; border: none;">
">
        <tr>
  <tr>
            <th colspan="2" style="background: #e9e9e9; text-align: center;">{{#if: {{{name|}}} | {{{name}}} | "Unknown Name"}}</th>
    <th colspan="2" style="background-color:#bd282e; color:#ffffff; font-size:120%; padding:6px; text-align:center;">
        </tr>
      {{{name|Name Here}}}
        <tr>
    </th>
            <td colspan="2" style="text-align: center;">
  </tr>
                {{#if: {{{image|}}}
 
                    | [[File:{{{image}}}|thumb|200px|center]]
  {{#if:{{{image_markup|}}}|
                    | <span style="font-style: italic;">No image available</span>
  <tr><td colspan="2" style="text-align:center; padding:8px;">{{{image_markup}}}</td></tr>}}
                }}
 
            </td>
  {{#if:{{{image|}}}|
        </tr>
  <tr><td colspan="2" style="text-align:center; padding:8px;">[[{{{image}}}|250px]]</td></tr>}}
        {{#if: {{{caption|}}}
 
            | <tr>
  {{#if:{{{caption|}}}|
                <td colspan="2" style="align: center; text-align: center; font-style: italic;">{{{caption}}}</td>
  <tr><th style="background-color:#f2f2f2; padding:4px; text-align:left;">Caption</th><td style="padding:4px;">{{{caption}}}</td></tr>}}
            </tr>
 
        }}
  {{#if:{{{birth_date|}}}|
        {{#if: {{{birth_date|}}}
  <tr><th style="background-color:#f2f2f2; padding:4px; text-align:left;">Born</th>
            | <tr>
  <td style="padding:4px;">{{{birth_date}}}{{#if:{{{birth_place|}}}|<br />{{{birth_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|}}}
 
            | <tr>
  {{#if:{{{occupation|}}}|
                <th style="text-align: left;">Place of Birth</th>
  <tr><th style="background-color:#f2f2f2; padding:4px; text-align:left;">Occupation</th>
                <td>{{{birth_place}}}</td>
  <td style="padding:4px;">{{{occupation}}}</td></tr>}}
            </tr>
</table>
        }}
 
        {{#if: {{{nationality|}}}
<style>
            | <tr>
@media (max-width: 600px) {
                <th style="text-align: left;">Nationality</th>
  .infobox {
                <td>{{{nationality}}}</td>
    float: none !important;
            </tr>
    margin: 0 auto 1em auto !important;
        }}
     width: 95% !important;
        {{#if: {{{occupation|}}}
  }
            | <tr>
}
                <th style="text-align: left;">Occupation</th>
</style>
                <td>{{{occupation}}}</td>
            </tr>
        }}
        {{#if: {{{notable_works|}}}
            | <tr>
                <th style="text-align: left;">Notable Works</th>
                <td>{{{notable_works}}}</td>
            </tr>
        }}
        {{#if: {{{awards|}}}
            | <tr>
                <th style="text-align: left;">Awards</th>
                <td>{{{awards}}}</td>
            </tr>
        }}
      {{#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
File:Jimmy Wales.jpg
The image of Wikipedia founder.
Occupation Author
Notable Works Wikipedia
"Unknown Name"
               No image available