Jump to content

Template:Infobox person: Difference between revisions

From TYZX Wiki
添加学校、人物、建筑信息框及本地化模板帮助
 
添加学校、人物、建筑信息框及本地化模板帮助
Line 1: Line 1:
<includeonly><templatestyles src="Template:TYZX infobox/styles.css" />
<includeonly><templatestyles src="Template:TYZX infobox/styles.css" />
{| class="tyzx-infobox"
{| class="tyzx-infobox"
|+
|-
|-
! colspan="2" class="tyzx-infobox-title" | {{{name|{{PAGENAME}}}}}
! colspan="2" class="tyzx-infobox-title" | {{{name|{{PAGENAME}}}}}{{#if:{{{image|}}}|
{{#if:{{{image|}}}|
{{!}}-
{{!}}-
{{!}} colspan="2" class="tyzx-infobox-image" {{!}} [[File:{{{image}}}|260px|alt={{{caption|}}}]]<br />{{{caption|}}}
{{!}} colspan="2" class="tyzx-infobox-image" {{!}} [[File:{{{image}}}|260px|alt={{{caption|}}}]]<br />{{{caption|}}}}}{{#if:{{{birth_date|}}}|
}}
{{#if:{{{birth_date|}}}|
{{!}}-
{{!}}-
! Date of birth
! Date of birth
{{!}} {{{birth_date}}}
{{!}} {{{birth_date}}}}}{{#if:{{{birth_place|}}}|
}}
{{#if:{{{birth_place|}}}|
{{!}}-
{{!}}-
! Place of birth
! Place of birth
{{!}} {{{birth_place}}}
{{!}} {{{birth_place}}}}}{{#if:{{{occupation|}}}|
}}
{{#if:{{{occupation|}}}|
{{!}}-
{{!}}-
! Occupation
! Occupation
{{!}} {{{occupation}}}
{{!}} {{{occupation}}}}}{{#if:{{{known_for|}}}|
}}
{{#if:{{{known_for|}}}|
{{!}}-
{{!}}-
! Known for
! Known for
{{!}} {{{known_for}}}
{{!}} {{{known_for}}}}}{{#if:{{{nationality|}}}|
}}
{{#if:{{{nationality|}}}|
{{!}}-
{{!}}-
! Nationality
! Nationality
{{!}} {{{nationality}}}
{{!}} {{{nationality}}}}}{{#if:{{{website|}}}|
}}
{{#if:{{{website|}}}|
{{!}}-
{{!}}-
! Website
! Website
{{!}} {{{website}}}
{{!}} {{{website}}}}}{{#if:{{{sources|}}}|
}}
{{#if:{{{sources|}}}|
{{!}}-
{{!}}-
! Sources
! Sources
{{!}} {{{sources}}}
{{!}} {{{sources}}}}}
}}
|}
|}
</includeonly><noinclude>
</includeonly><noinclude>

Revision as of 20:48, 5 October 2026

Using templates

Infobox person

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namename

no description

Contentsuggested
Imageimage

no description

Filesuggested
Captioncaption

no description

Contentoptional
Date of birthbirth_date

no description

Contentoptional
Place of birthbirth_place

no description

Contentoptional
Occupationoccupation

no description

Contentsuggested
Known forknown_for

no description

Contentoptional
Nationalitynationality

no description

Contentoptional
Websitewebsite

no description

URLoptional
Sourcessources

no description

Contentoptional