Template:Person: Difference between revisions
Appearance
mNo edit summary Tag: 2017 source edit |
No edit summary Tag: 2017 source edit |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{{Infobox | |||
| | | title = {{{name|}}} | ||
| | | image = {{{photo|}}} | ||
| | | description = {{{activity|}}} | ||
| | | header color = #f1d7f6 | ||
| parameters = | |||
{{#if:{{{date of birth|}}} | <div class="infobox-row"> | |||
<div class="infobox-label">Date of birth:</div> | |||
|- class=" | <div class="infobox-value">{{{date of birth}}}</div> | ||
</div> }}{{#if:{{{place of birth|}}} | <div class="infobox-row"> | |||
<div class="infobox-label">Place of birth:</div> | |||
<div class="infobox-value">{{{place of birth}}}</div> | |||
</div> }}{{#if:{{{date of death|}}} | <div class="infobox-row"> | |||
<div class="infobox-label">Date of death:</div> | |||
|- class=" | <div class="infobox-value">{{{date of death}}}</div> | ||
</div> }}{{#if:{{{place of death|}}} | <div class="infobox-row"> | |||
<div class="infobox-label">Place of death:</div> | |||
<div class="infobox-value">{{{place of death}}}</div> | |||
</div> }}{{#if:{{{citizenship|}}} | <div class="infobox-row"> | |||
<div class="infobox-label">Citizenship:</div> | |||
<div class="infobox-value">{{{citizenship}}}</div> | |||
</div> }}{{#if:{{{activity|}}} | <div class="infobox-row"> | |||
<div class="infobox-label">Activity:</div> | |||
<div class="infobox-value">{{{activity}}}</div> | |||
</div> }}{{#if:{{{father|}}} | <div class="infobox-row"> | |||
<div class="infobox-label">Father:</div> | |||
<div class="infobox-value">{{{father}}}</div> | |||
</div> }}{{#if:{{{mother|}}} | <div class="infobox-row"> | |||
<div class="infobox-label">Mother:</div> | |||
<div class="infobox-value">{{{mother}}}</div> | |||
</div> }}{{#if:{{{husband|}}} | <div class="infobox-row"> | |||
<div class="infobox-label">Husband:</div> | |||
<div class="infobox-value">{{{husband}}}</div> | |||
</div> }}{{#if:{{{wife|}}} | <div class="infobox-row"> | |||
<div class="infobox-label">Wife:</div> | |||
<div class="infobox-value">{{{wife}}}</div> | |||
</div> }}{{#if:{{{children|}}} | <div class="infobox-row"> | |||
<div class="infobox-label">Children:</div> | |||
<div class="infobox-value">{{{children}}}</div> | |||
</div> }}{{#if:{{{alma mater|}}} | <div class="infobox-row"> | |||
<div class="infobox-label">Alma mater:</div> | |||
<div class="infobox-value">{{{alma mater}}}</div> | |||
</div> }}{{#if:{{{site|}}} | <div class="infobox-row"> | |||
<div class="infobox-label">Website:</div> | |||
<div class="infobox-value">[http://{{{site}}} {{{site}}}]</div> | |||
</div> }} | |||
}} | |||
</includeonly><noinclude>{{doc}}</noinclude> | |||
Latest revision as of 15:23, 26 October 2025
Template documentation
This template is used to display a structured infobox for a person. It shows key biographical information such as name, dates, activity, family members, and other details in a visually consistent format.
All parameters are optional. Only the fields that are filled in will be displayed.
Usage
Insert the template at the top of an article:
{{Person
| name =
| photo =
| activity =
| date of birth =
| place of birth =
| date of death =
| place of death =
| citizenship =
| father =
| mother =
| husband =
| wife =
| children =
| alma mater =
| site =
}}
Parameters
- name
- The full name of the person. Displayed as the title of the infobox.
- photo
- Image filename (without "File:" prefix). Displayed at the top of the infobox.
- activity
- Main occupation or field of activity. Also used as a short description.
- date of birth
- Date of birth.
- place of birth
- Place of birth.
- date of death
- Date of death (if applicable).
- place of death
- Place of death (if applicable).
- citizenship
- Country or citizenship.
- father
- Name of the father.
- mother
- Name of the mother.
- husband
- Name of the husband.
- wife
- Name of the wife.
- children
- List or number of children.
- alma mater
- Educational institution(s).
- site
- Official website (without "http://"). It will be automatically formatted as a link.
Notes
- All parameters are optional.
- Empty parameters are automatically hidden.
- The "activity" parameter is displayed both in the description and as a separate row.
- The website parameter automatically adds "http://" before the link.
Example
{{TemplateName
| name = John Doe
| photo = JohnDoe.jpg
| activity = Writer
| date of birth = 1 January 1980
| place of birth = London, United Kingdom
| citizenship = British
| children = 2
| site = johndoe.com
}}