Template:Infobox person: Difference between revisions

From WikiAlpha
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{| class="infobox biography vcard" style="width:320px; font-size:90%; border:1px solid #a2a9b1; background:#ffffff; color:#202122;"
|-
! colspan="2" style="background:#1f4e79; color:#ffffff; text-align:center; font-size:125%; padding:10px;" | {{{name|{{PAGENAME}}}}}
|-
| colspan="2" style="text-align:center; padding:8px; background:#f8f9fa;" |
[[File:{{{image|No image available.svg}}}|{{{image_size|250px}}}|center]]
{{#if:{{{caption|}}}|<div style="font-size:85%; color:#54595d;">{{{caption}}}</div>|}}
{{#if:{{{native_name|}}}|
|-
! style="background:#eaecf0; width:35%;" | Native name
| {{{native_name}}}
|}}
{{#if:{{{birth_name|}}}|
|-
! style="background:#eaecf0;" | Birth name
| {{{birth_name}}}
|}}
{{#if:{{{other_names|}}}|
|-
! style="background:#eaecf0;" | Other names
| {{{other_names}}}
|}}
{{#if:{{{nickname|}}}|
|-
! style="background:#eaecf0;" | Nickname(s)
| {{{nickname}}}
|}}
{{#if:{{{birth_date|}}}|
|-
! style="background:#eaecf0;" | Born
| {{{birth_date}}}<br>{{{birth_place|}}}
|}}
{{#if:{{{death_date|}}}|
|-
! style="background:#eaecf0;" | Died
| {{{death_date}}}<br>{{{death_place|}}}
|}}
{{#if:{{{resting_place|}}}|
|-
! style="background:#eaecf0;" | Resting place
| {{{resting_place}}}
|}}
{{#if:{{{nationality|}}}|
|-
! style="background:#eaecf0;" | Nationality
| {{{nationality}}}
|}}
{{#if:{{{citizenship|}}}|
|-
! style="background:#eaecf0;" | Citizenship
| {{{citizenship}}}
|}}
{{#if:{{{ethnicity|}}}|
|-
! style="background:#eaecf0;" | Ethnicity
| {{{ethnicity}}}
|}}
{{#if:{{{occupation|}}}|
|-
! style="background:#eaecf0;" | Occupation
| {{{occupation}}}
|}}
{{#if:{{{years_active|}}}|
|-
! style="background:#eaecf0;" | Years active
| {{{years_active}}}
|}}
{{#if:{{{employer|}}}|
|-
! style="background:#eaecf0;" | Employer
| {{{employer}}}
|}}
{{#if:{{{organization|}}}|
|-
! style="background:#eaecf0;" | Organization
| {{{organization}}}
|}}
{{#if:{{{known_for|}}}|
|-
! style="background:#eaecf0;" | Known for
| {{{known_for}}}
|}}
{{#if:{{{title|}}}|
|-
! style="background:#eaecf0;" | Title
| {{{title}}}
|}}
{{#if:{{{net_worth|}}}|
|-
! style="background:#eaecf0;" | Net worth
| {{{net_worth}}}
|}}
|-
! colspan="2" style="background:#1f4e79; color:#ffffff; text-align:center;" | Personal information
{{#if:{{{gender|}}}|
|-
! style="background:#eaecf0;" | Gender
| {{{gender}}}
|}}
{{#if:{{{height|}}}|
|-
! style="background:#eaecf0;" | Height
| {{{height}}}
|}}
{{#if:{{{weight|}}}|
|-
! style="background:#eaecf0;" | Weight
| {{{weight}}}
|}}
{{#if:{{{religion|}}}|
|-
! style="background:#eaecf0;" | Religion
| {{{religion}}}
|}}
{{#if:{{{education|}}}|
|-
! style="background:#eaecf0;" | Education
| {{{education}}}
|}}
{{#if:{{{alma_mater|}}}|
|-
! style="background:#eaecf0;" | Alma mater
| {{{alma_mater}}}
|}}
{{#if:{{{parents|}}}|
|-
! style="background:#eaecf0;" | Parent(s)
| {{{parents}}}
|}}
{{#if:{{{father|}}}|
|-
! style="background:#eaecf0;" | Father
| {{{father}}}
|}}
{{#if:{{{mother|}}}|
|-
! style="background:#eaecf0;" | Mother
| {{{mother}}}
|}}
{{#if:{{{relatives|}}}|
|-
! style="background:#eaecf0;" | Relatives
| {{{relatives}}}
|}}
{{#if:{{{spouse|}}}|
|-
! style="background:#eaecf0;" | Spouse(s)
| {{{spouse}}}
|}}
{{#if:{{{partner|}}}|
|-
! style="background:#eaecf0;" | Partner(s)
| {{{partner}}}
|}}
{{#if:{{{children|}}}|
|-
! style="background:#eaecf0;" | Children
| {{{children}}}
|}}
{{#if:{{{residence|}}}|
|-
! style="background:#eaecf0;" | Residence
| {{{residence}}}
|}}
{{#if:{{{awards|}}}|
|-
! style="background:#eaecf0;" | Awards
| {{{awards}}}
|}}
{{#if:{{{signature|}}}|
|-
! style="background:#eaecf0;" | Signature
| [[File:{{{signature}}}|180px]]
|}}
|-
! colspan="2" style="background:#1f4e79; color:#ffffff; text-align:center;" | Online presence
{{#if:{{{website|}}}|
|-
! style="background:#eaecf0;" | Website
| {{{website}}}
|}}
{{#if:{{{email|}}}|
|-
! style="background:#eaecf0;" | Email
| {{{email}}}
|}}
{{#if:{{{instagram|}}}|
|-
! style="background:#eaecf0;" | Instagram
| {{{instagram}}}
|}}
{{#if:{{{facebook|}}}|
|-
! style="background:#eaecf0;" | Facebook
| {{{facebook}}}
|}}
{{#if:{{{twitter|}}}|
|-
! style="background:#eaecf0;" | X / Twitter
| {{{twitter}}}
|}}
{{#if:{{{linkedin|}}}|
|-
! style="background:#eaecf0;" | LinkedIn
| {{{linkedin}}}
|}}
{{#if:{{{youtube|}}}|
|-
! style="background:#eaecf0;" | YouTube
| {{{youtube}}}
|}}
{{#if:{{{tiktok|}}}|
|-
! style="background:#eaecf0;" | TikTok
| {{{tiktok}}}
|}}
{{#if:{{{imdb|}}}|
|-
! style="background:#eaecf0;" | IMDb
| {{{imdb}}}
|}}
|}</includeonly>
<noinclude>
<noinclude>
== Usage ==
<pre>
{{Infobox person
{{Infobox person
| name         = Jimmy Wales
| name =
| image       = Jimmy Wales.jpg
| image =
| caption     =The image of Wikipedia founder.
| caption =
| occupation   = Author
| birth_name =
| notable_works = [[Wikipedia]]
| other_names =
| awards       =  
| nickname =
| birth_date =
| birth_place =
| death_date =
| death_place =
| nationality =
| citizenship =
| ethnicity =
| occupation =
| years_active =
| employer =
| organization =
| known_for =
| title =
| net_worth =
| gender =
| height =
| weight =
| religion =
| education =
| alma_mater =
| father =
| mother =
| spouse =
| children =
| relatives =
| awards =
| website =
| instagram =
| facebook =
| twitter =
| linkedin =
| youtube =
}}
}}
</pre>
</noinclude>
</noinclude>
<div class="infobox" style="width: 22em; border: 1px solid #aaa; border-collapse: collapse; margin: 10px; float: right; background: #f9f9f9;">
    <table style="width: 100%; border: none;">
        <tr>
            <th colspan="2" style="background: #e9e9e9; text-align: center;">{{#if: {{{name|}}} | {{{name}}} | "Unknown Name"}}</th>
        </tr>
        <tr>
            <td colspan="2" style="text-align: center;">
                {{#if: {{{image|}}}
                    | [[File:{{{image}}}|thumb|200px|center]]
                    | <span style="font-style: italic;">No image available</span>
                }}
            </td>
        </tr>
        {{#if: {{{caption|}}}
            | <tr>
                <td colspan="2" style="align: center; text-align: center; font-style: italic;">{{{caption}}}</td>
            </tr>
        }}
        {{#if: {{{birth_date|}}}
            | <tr>
                <th style="text-align: left;">Born</th>
                <td>{{{birth_date}}}</td>
            </tr>
        }}
        {{#if: {{{birth_place|}}}
            | <tr>
                <th style="text-align: left;">Place of Birth</th>
                <td>{{{birth_place}}}</td>
            </tr>
        }}
        {{#if: {{{nationality|}}}
            | <tr>
                <th style="text-align: left;">Nationality</th>
                <td>{{{nationality}}}</td>
            </tr>
        }}
        {{#if: {{{occupation|}}}
            | <tr>
                <th style="text-align: left;">Occupation</th>
                <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>

Revision as of 20:50, 5 June 2026


Usage

{{Infobox person
| name =
| image =
| caption =
| birth_name =
| other_names =
| nickname =
| birth_date =
| birth_place =
| death_date =
| death_place =
| nationality =
| citizenship =
| ethnicity =
| occupation =
| years_active =
| employer =
| organization =
| known_for =
| title =
| net_worth =
| gender =
| height =
| weight =
| religion =
| education =
| alma_mater =
| father =
| mother =
| spouse =
| children =
| relatives =
| awards =
| website =
| instagram =
| facebook =
| twitter =
| linkedin =
| youtube =
}}