Template:Infobox person: Difference between revisions

Shovon (talk | contribs)
No edit summary
Tag: Reverted
Shovon (talk | contribs)
mNo edit summary
Tag: Manual revert
 
(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|}}}
    <data source="gender"><label>Gender</label></data>
|-
    <data source="age"><label>Age</label></data>
! style="padding: 0.3em 0.5em; width: 30%;" | Gender
    <data source="birth_name"><label>Born</label></data>
| style="padding: 0.3em 0.5em;" | {{{gender}}}
    <data source="birth_date"><label>Birth date</label></data>
}}
    <data source="birth_place"><label>Birth place</label></data>
{{#if: {{{age|}}}
    <data source="parents"><label>Parents</label></data>
|-
    <data source="relatives"><label>Relatives</label></data>
! style="padding: 0.3em 0.5em;" | Age
    <data source="nationality"><label>Nationality</label></data>
| style="padding: 0.3em 0.5em;" | {{{age}}}
    <data source="other_names"><label>Other names</label></data>
}}
    <data source="occupation"><label>Occupation</label></data>
{{#if: {{{birth_name|}}}
    <data source="years_active"><label>Years active</label></data>
|-
    <data source="known_for"><label>Known for</label></data>
! style="padding: 0.3em 0.5em;" | Born
    <data source="notable_works"><label>Notable work(s)</label></data>
| style="padding: 0.3em 0.5em;" | {{{birth_name}}}
    <data source="home_town"><label>Home town</label></data>
}}
    <data source="website"><label>Website</label></data>
{{#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|}}}
    <group label="Attributes">
|-
        <data source="height"><label>Height</label></data>
! colspan="2" style="background:#f0f0f0; text-align:center; font-weight:bold; padding: 0.4em;" | Attributes
        <data source="weight"><label>Weight</label></data>
}}
        <data source="hair"><label>Hair color</label></data>
 
        <data source="eyes"><label>Eye color</label></data>
{{#if: {{{height|}}}
    </group>
|-
</infobox>
! style="padding: 0.3em 0.5em;" | Height
<noinclude>{{Documentation}}</noinclude>
| style="padding: 0.3em 0.5em;" | {{{height}}}
}}
{{#if: {{{weight|}}}
|-
! style="padding: 0.3em 0.5em;" | Weight
| 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}}}
}}
|}