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
Tag: Reverted
Line 1: Line 1:
<noinclude>{{Documentation}}</noinclude>
<noinclude>{{Documentation}}</noinclude>
<div class="infobox" style="width: 22em; border: 1px solid #aaa; border-collapse: collapse; margin: 10px; float: right; background: #f9f9f9;">
<div class="infobox" style="width: 100%; max-width: 22em; border: 1px solid #aaa; border-collapse: collapse; margin: 10px auto; background: #f9f9f9;">
     <table style="width: 100%; border: none;">
     <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: #e9e9e9; text-align: center; padding: 5px;">{{#if: {{{name|}}} | {{{name}}} | "Unknown Name"}}</th>
         </tr>
         </tr>
         <tr>
         <tr>
             <td colspan="2" style="text-align: center;">
             <td colspan="2" style="text-align: center;">
                 {{#if: {{{image|}}}
                 {{#if: {{{image|}}}
                     | [[File:{{{image}}}|thumb|150px|center]]
                     | [[File:{{{image}}}|150px|thumb}]]
                     | <span style="font-style: italic;">No image available</span>
                     | <span style="font-style: italic;">No image available</span>
                 }}
                 }}
Line 15: Line 15:
         {{#if: {{{caption|}}}
         {{#if: {{{caption|}}}
             | <tr>
             | <tr>
                 <td colspan="2" style="text-align: center; font-size: smaller; font-style: italic;">{{{caption}}}</td>
                 <td colspan="2" style="text-align: center; font-size: smaller; font-style: italic; padding: 5px;">{{{caption}}}</td>
             </tr>
             </tr>
         }}
         }}
         {{#if: {{{birth_date|}}}
         {{#if: {{{birth_date|}}}
             | <tr>
             | <tr>
                 <th style="text-align: left;">Born:</th>
                 <th style="text-align: left; padding: 5px;">Born:</th>
                 <td>{{{birth_date}}}</td>
                 <td style="padding: 5px;">{{{birth_date}}}</td>
             </tr>
             </tr>
         }}
         }}
         {{#if: {{{birth_place|}}}
         {{#if: {{{birth_place|}}}
             | <tr>
             | <tr>
                 <th style="text-align: left;">Place of Birth:</th>
                 <th style="text-align: left; padding: 5px;">Place of Birth:</th>
                 <td>{{{birth_place}}}</td>
                 <td style="padding: 5px;">{{{birth_place}}}</td>
             </tr>
             </tr>
         }}
         }}
         {{#if: {{{nationality|}}}
         {{#if: {{{nationality|}}}
             | <tr>
             | <tr>
                 <th style="text-align: left;">Nationality:</th>
                 <th style="text-align: left; padding: 5px;">Nationality:</th>
                 <td>{{{nationality}}}</td>
                 <td style="padding: 5px;">{{{nationality}}}</td>
             </tr>
             </tr>
         }}
         }}
         {{#if: {{{occupation|}}}
         {{#if: {{{occupation|}}}
             | <tr>
             | <tr>
                 <th style="text-align: left;">Occupation:</th>
                 <th style="text-align: left; padding: 5px;">Occupation:</th>
                 <td>{{{occupation}}}</td>
                 <td style="padding: 5px;">{{{occupation}}}</td>
             </tr>
             </tr>
         }}
         }}
         {{#if: {{{notable_works|}}}
         {{#if: {{{notable_works|}}}
             | <tr>
             | <tr>
                 <th style="text-align: left;">Notable Works:</th>
                 <th style="text-align: left; padding: 5px;">Notable Works:</th>
                 <td>{{{notable_works}}}</td>
                 <td style="padding: 5px;">{{{notable_works}}}</td>
             </tr>
             </tr>
         }}
         }}
         {{#if: {{{awards|}}}
         {{#if: {{{awards|}}}
             | <tr>
             | <tr>
                 <th style="text-align: left;">Awards:</th>
                 <th style="text-align: left; padding: 5px;">Awards:</th>
                 <td>{{{awards}}}</td>
                 <td style="padding: 5px;">{{{awards}}}</td>
             </tr>
             </tr>
         }}
         }}
     </table>
     </table>
</div>
</div>

Revision as of 18:00, 4 November 2024

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
               thumb}
Some Name placeholder
Born: 1 December 1988
Place of Birth: Wikipedia
Nationality: Wikian
Occupation: Wiki writer
Notable Works: Infoboxes

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
               thumb}
Some Name placeholder
Born: 1 December 1988
Place of Birth: Wikipedia
Nationality: Wikian
Occupation: Wiki writer
Notable Works: Infoboxes
"Unknown Name"
               No image available