Jump to content

Template:Infobox person: Difference between revisions

From WikiGenius
Shovon (talk | contribs)
mNo edit summary
Tag: Reverted
Shovon (talk | contribs)
mNo edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| class="infobox" style="width: 22em; font-size: 90%; border: 1px solid #aaa; margin: 1em 0; border-collapse: separate;"
<infobox>
|-
    <title source="name"><default>{{PAGENAME}}</default></title>
! colspan="2" style="text-align:center; font-size:120%; font-weight:bold; background:#ddd; padding: 0.4em;" | {{{name|{{PAGENAME}}}}}
    <image source="image">
|-
        <caption source="caption">
| style="text-align:center; padding: 0.5em;" colspan="2" |
            <default>{{{name}}} image</default>
{{#if: {{{image|}}} | [[File:{{{image}}}|220px|alt={{{name|}}}]] }}
        </caption>
|-
    </image>
{{#if: {{{gender|}}} |
|-
! style="padding: 0.3em 0.5em; width: 30%;" | Gender
| style="padding: 0.3em 0.5em;" | {{{gender}}}
}}
{{#if: {{{age|}}} |
|-
! style="padding: 0.3em 0.5em;" | Age
| style="padding: 0.3em 0.5em;" | {{{age}}}
}}
{{#if: {{{birth_name|}}} |
|-
! style="padding: 0.3em 0.5em;" | Born
| style="padding: 0.3em 0.5em;" | {{{birth_name}}}
}}
{{#if: {{{birth_date|}}} |
|-
! style="padding: 0.3em 0.5em;" | Birth date
| style="padding: 0.3em 0.5em;" | {{{birth_date}}}
}}
{{#if: {{{birth_place|}}} |
|-
! style="padding: 0.3em 0.5em;" | Birth place
| style="padding: 0.3em 0.5em;" | {{{birth_place}}}
}}
{{#if: {{{parents|}}} |
|-
! style="padding: 0.3em 0.5em;" | Parents
| style="padding: 0.3em 0.5em;" | {{{parents}}}
}}
{{#if: {{{relatives|}}} |
|-
! style="padding: 0.3em 0.5em;" | Relatives
| style="padding: 0.3em 0.5em;" | {{{relatives}}}
}}
{{#if: {{{nationality|}}} |
|-
! style="padding: 0.3em 0.5em;" | Nationality
| style="padding: 0.3em 0.5em;" | {{{nationality}}}
}}
{{#if: {{{other_names|}}} |
|-
! style="padding: 0.3em 0.5em;" | Other names
| style="padding: 0.3em 0.5em;" | {{{other_names}}}
}}
{{#if: {{{occupation|}}} |
|-
! style="padding: 0.3em 0.5em;" | Occupation
| style="padding: 0.3em 0.5em;" | {{{occupation}}}
}}
{{#if: {{{years_active|}}} |
|-
! style="padding: 0.3em 0.5em;" | Years active
| style="padding: 0.3em 0.5em;" | {{{years_active}}}
}}
{{#if: {{{known_for|}}} |
|-
! style="padding: 0.3em 0.5em;" | Known for
| style="padding: 0.3em 0.5em;" | {{{known_for}}}
}}
{{#if: {{{notable_works|}}} |
|-
! style="padding: 0.3em 0.5em;" | Notable work(s)
| style="padding: 0.3em 0.5em;" | {{{notable_works}}}
}}
{{#if: {{{home_town|}}} |
|-
! style="padding: 0.3em 0.5em;" | Home town
| style="padding: 0.3em 0.5em;" | {{{home_town}}}
}}
{{#if: {{{website|}}} |
|-
! style="padding: 0.3em 0.5em;" | Website
| style="padding: 0.3em 0.5em;" | [{{{website}}} {{{website}}}]
}}


{{#if: {{{height|}}}{{{weight|}}}{{{hair|}}}{{{eyes|}}} |
    <data source="gender"><label>Gender</label></data>
|-
    <data source="age"><label>Age</label></data>
! colspan="2" style="background:#f0f0f0; text-align:center; font-weight:bold; padding: 0.4em;" | Attributes
    <data source="birth_name"><label>Born</label></data>
}}
    <data source="birth_date"><label>Birth date</label></data>
    <data source="birth_place"><label>Birth place</label></data>
    <data source="parents"><label>Parents</label></data>
    <data source="relatives"><label>Relatives</label></data>
    <data source="nationality"><label>Nationality</label></data>
    <data source="other_names"><label>Other names</label></data>
    <data source="occupation"><label>Occupation</label></data>
    <data source="years_active"><label>Years active</label></data>
    <data source="known_for"><label>Known for</label></data>
    <data source="notable_works"><label>Notable work(s)</label></data>
    <data source="home_town"><label>Home town</label></data>
    <data source="website"><label>Website</label></data>


{{#if: {{{height|}}} |
    <group label="Attributes">
|-
        <data source="height"><label>Height</label></data>
! style="padding: 0.3em 0.5em;" | Height
        <data source="weight"><label>Weight</label></data>
| style="padding: 0.3em 0.5em;" | {{{height}}}
        <data source="hair"><label>Hair color</label></data>
}}
        <data source="eyes"><label>Eye color</label></data>
{{#if: {{{weight|}}} |
    </group>
|-
</infobox>
! style="padding: 0.3em 0.5em;" | Weight
<noinclude>{{Documentation}}</noinclude>
| style="padding: 0.3em 0.5em;" | {{{weight}}}
}}
{{#if: {{{hair|}}} |
|-
! style="padding: 0.3em 0.5em;" | Hair color
| style="padding: 0.3em 0.5em;" | {{{hair}}}
}}
{{#if: {{{eyes|}}} |
|-
! style="padding: 0.3em 0.5em;" | Eye color
| style="padding: 0.3em 0.5em;" | {{{eyes}}}
}}
|}

Latest revision as of 06:41, 8 October 2025

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


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.

Cookies help us deliver our services. By using our services, you agree to our use of cookies.