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
Premium theme-aware person infobox: responsive layout, accessible portraits, title fallback, supported fields and corrected documentation
Line 1: Line 1:
<noinclude>{{Documentation}}
<templatestyles src="Template:Main Page/Style.css" />
<div class="infobox bhi-infobox">
<div class="bhi-infobox-title">{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}</div>
{{#if:{{{image|}}}|<div class="bhi-infobox-media">[[File:{{{image}}}|300px|center|alt={{#if:{{{image_alt|{{{alt|}}}}}}|{{{image_alt|{{{alt|}}}}}}|{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}}}]]</div>}}
{{#if:{{{caption|}}}|<div class="bhi-infobox-caption">{{{caption}}}</div>}}
<div class="bhi-infobox-data">
<table role="presentation">
{{#if:{{{birth_name|}}}|<tr><th scope="row">Birth name</th><td>{{{birth_name|}}}</td></tr>}}
{{#if:{{{birth_date|}}}|<tr><th scope="row">Born</th><td>{{{birth_date|}}}</td></tr>}}
{{#if:{{{birth_place|}}}|<tr><th scope="row">Birthplace</th><td>{{{birth_place|}}}</td></tr>}}
{{#if:{{{death_date|}}}|<tr><th scope="row">Died</th><td>{{{death_date|}}}</td></tr>}}
{{#if:{{{death_place|}}}|<tr><th scope="row">Place of death</th><td>{{{death_place|}}}</td></tr>}}
{{#if:{{{nationality|}}}|<tr><th scope="row">Nationality</th><td>{{{nationality|}}}</td></tr>}}
{{#if:{{{other_names|}}}|<tr><th scope="row">Other names</th><td>{{{other_names|}}}</td></tr>}}
{{#if:{{{occupation|}}}|<tr><th scope="row">Occupation</th><td>{{{occupation|}}}</td></tr>}}
{{#if:{{{years_active|}}}|<tr><th scope="row">Years active</th><td>{{{years_active|}}}</td></tr>}}
{{#if:{{{known_for|{{{Known_for|}}}}}}|<tr><th scope="row">Known for</th><td>{{{known_for|{{{Known_for|}}}}}}</td></tr>}}
{{#if:{{{notable_works|}}}|<tr><th scope="row">Notable works</th><td>{{{notable_works|}}}</td></tr>}}
{{#if:{{{education|}}}|<tr><th scope="row">Education</th><td>{{{education|}}}</td></tr>}}
{{#if:{{{alma_mater|}}}|<tr><th scope="row">Alma mater</th><td>{{{alma_mater|}}}</td></tr>}}
{{#if:{{{awards|}}}|<tr><th scope="row">Awards</th><td>{{{awards|}}}</td></tr>}}
{{#if:{{{website|}}}|<tr><th scope="row">Website</th><td>{{{website|}}}</td></tr>}}
</table>
</div>
</div>
<noinclude>
== Usage ==
Add this infobox near the beginning of a biography. Blank optional fields are hidden. Data is entered by editors; this template does not verify biographical claims or query a live database.
<pre>
{{Infobox person
{{Infobox person
| name         = Jimmy Wales
| name =
| image       = Jimmy Wales.jpg
| image =
| caption     =The image of Wikipedia founder.
| image_alt =
| occupation   = Author
| caption =
| notable_works = [[Wikipedia]]
| birth_name =
| awards       =  
| birth_date =
| birth_place =
| death_date =
| death_place =
| nationality =
| other_names =
| occupation =
| years_active =
| known_for =
| notable_works =
| education =
| alma_mater =
| awards =
| website =
}}
}}
</pre>
Use a filename without the File: prefix for image, and a descriptive image_alt. Use a complete website URL or a formatted external link. The legacy Known_for parameter is also accepted. A missing or blank name uses the article title. Supported fields are listed above; unrelated parameters are not rendered.
This template uses shared, scoped Bhikitia styles and adapts to the Citizen color theme. Previous versions and attribution remain available in the page history.
</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 16:40, 31 October 2026

Infobox person


Usage

Add this infobox near the beginning of a biography. Blank optional fields are hidden. Data is entered by editors; this template does not verify biographical claims or query a live database.

{{Infobox person
| name =
| image =
| image_alt =
| caption =
| birth_name =
| birth_date =
| birth_place =
| death_date =
| death_place =
| nationality =
| other_names =
| occupation =
| years_active =
| known_for =
| notable_works =
| education =
| alma_mater =
| awards =
| website =
}}

Use a filename without the File: prefix for image, and a descriptive image_alt. Use a complete website URL or a formatted external link. The legacy Known_for parameter is also accepted. A missing or blank name uses the article title. Supported fields are listed above; unrelated parameters are not rendered.

This template uses shared, scoped Bhikitia styles and adapts to the Citizen color theme. Previous versions and attribution remain available in the page history.

Contents