Template:Infobox Person: Difference between revisions

From Marvel Cinematic Universe Wiki
Content deleted Content added
mNo edit summary
mNo edit summary
 
(10 intermediate revisions by the same user not shown)
Line 17: Line 17:
|<!--
|<!--
-->}}<!--
-->}}<!--
-->}}</div>{{Infobox/Startbox
-->}}</div>{{Infobox
| class =
| name = Infobox Person
| above = {{#if: {{{honorific prefix|{{{honorific_prefix|}}}}}} | <span class="honorific-prefix" style="font-size: small">{{{honorific prefix|{{{honorific_prefix|}}}}}}</span><br /> }}{{#if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }}{{#if: {{{honorific suffix|{{{honorific_suffix|}}}}}} | <br /><span class="honorific-suffix" style="font-size: small">{{{honorific suffix|{{{honorific_suffix|}}}}}}</span> }}
| width =

| icon = person
| image = {{#if: {{{image|}}} | {{#invoke:InfoboxImage|InfoboxImage|image= {{{image}}} |size={{{image size|230}}}|sizedefault=frameless|alt={{{alt|}}}}} }}
| background =
| color =
| caption = {{{caption|}}}

| border-color =
| headerstyle =
| text = {{#if: {{{honorific prefix|}}} | <span class="honorific-prefix" style="font-size: small">{{{honorific prefix}}}</span><br /> }}{{#if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }}{{#if: {{{honorific suffix|}}} | <br /><span class="honorific-suffix" style="font-size: small">{{{honorific suffix}}}</span> }}
| labelstyle = vertical-align: top; text-align: left;
}}

{{Infobox/Image
| header1 = {{#if: {{{birth name|{{{birth_name|}}}}}}{{{native name|{{{native_name|}}}}}}{{{other name|{{{other_name|}}}}}}{{{birth date|{{{birth_date|}}}}}}{{{birth place|{{{birth_place|}}}}}}{{{death date|{{{death_date|}}}}}}{{{death place|{{{death_place|}}}}}}{{{gender|}}}{{{nationality|}}} | Biographical information }}
| image = {{#if: {{{image|}}} | {{{image}}} | Sin foto.svg }}

| alt =
| upright = 0.6
| label2 = Birth name
| data2 = {{{birth name|{{{birth_name|}}}}}}
| bordure =

| legend =
| label3 = Native name
}}
| data3 = {{{native name|{{{native_name|}}}}}}
{{Infobox/Table start

| class = {{#if: {{{birth name|}}}{{{native name|}}}{{{other name|}}}{{{birth date|}}}{{{birth place|}}}{{{death date|}}}{{{death place|}}}{{{gender|}}}{{{nationality|}}} | | hidden }}
| label4 = {{#if: {{#pos: {{{other name|{{{other_name|}}}}}} | <br }} | Other names | Other name }}
| border =
| data4 = {{{other name|{{{other_name|}}}}}}
| background =

| color =
| label5 = Birth date
| text = Biographical informations
| data5 = {{{birth date|{{{birth_date|}}}}}}{{#if: {{{birth place|{{{birth_place|}}}}}} | {{#if: {{{birth date|{{{birth_date|}}}}}} | <br/>{{{birth place|{{{birth_place|}}}}}} | Unknown<br/>{{{birth place|{{{birth_place|}}}}}} }} }}
}}

{{Infobox/Table dual line
| class =
| label6 = Death date
| data6 = {{{death date|{{{death_date|}}}}}}{{#if: {{{death place|{{{death_place|}}}}}} | {{#if: {{{death date|{{{death_date|}}}}}} | <br/>{{{death place|{{{death_place|}}}}}} | Unknown<br/>{{{death place|{{{death_place|}}}}}} }} }}
| width =

| Birth name
| label7 = Gender
| {{{birth name}}}
| data7 = {{#switch: {{lc: {{{gender|}}} }} | f | female = {{Click| image = Symbol venus.svg| height = 25 | width = 15 | link = Concept:Female persons | text = Female }}{{#set: Gender = Female }} | m | masculin = {{Click| image = Symbol mars.svg| height = 20 | width = 20 | link = Concept:Male persons | text = Masculin}}{{#set: Gender = Male }} }}
| if = {{{birth name|}}}

}}
| label8 = Nationality
{{Infobox/Table dual line
| data8 = {{{nationality|}}}
| class =
| width =
| header10 = {{#if: {{{marriage|}}}{{{parents|}}}{{{siblings|}}}{{{children|}}}{{{other relatives|{{{relatives|}}}}}}{{{affair|}}} | Information about family }}
| Native name

| {{{native name}}}
| label11 = Marriage
| if = {{{native name|}}}
| data11 = {{{marriage|}}}
}}

{{Infobox/Table dual line
| label12 = {{#if: {{#pos: {{{affair|}}} | <br }} | Affairs | Affair }}
| class =
| width =
| data12 = {{{affair|}}}

| {{#if: {{#pos: {{{other name|}}} | <br }} | Other names | Other name }}
| label13 = {{#if: {{#pos: {{{parents|}}} | <br }} | Parents | Parent }}
| {{{other name}}}
| if = {{{other name|}}}
| data13 = {{{parents|}}}

}}
| label14 = {{#if: {{#pos: {{{siblings|}}} | <br }} | Siblings | Sibling }}
{{Infobox/Table dual line
| class =
| data14 = {{{siblings|}}}

| width =
| label15 = {{#if: {{#pos: {{{children|}}} | <br }} | Children | Child }}
| Birth date
| data15 = {{{children|}}}
| {{{birth date}}}{{#if: {{{birth place|}}} | {{#if: {{{birth date|}}} | <br/>{{{birth place}}} | Unknown<br/>{{{birth place}}} }} }}

| if = {{{birth date|}}}{{{birth place|}}}
| label16 = {{#if: {{#pos: {{{other relatives|{{{relatives|}}}}}} | <br }} | Other relatives | Other relative }}
}}
| data16 = {{{other relatives|{{{relatives|}}}}}}
{{Infobox/Table dual line

| class =
| header20 = {{#if: {{{occupation|}}}{{{years active|{{{years_active|}}}}}}{{{notable works|{{{notable_works|}}}}}}{{{television|}}}{{{awards|}}} | Professional information }}
| width =

| Death date
| {{{death date}}}{{#if: {{{lieu de décès|}}} | {{#if: {{{death date|}}} | <br/>{{{death place}}} | Unknown<br/>{{{death place}}} }} }}
| label21 = {{#if: {{#pos: {{{occupation|}}} | <br }} | Occupations | Occupation }}
| if = {{{death date|}}}{{{death place|}}}
| data21 = {{{occupation|}}}

}}
| label22 = Years active
{{Infobox/Table dual line
| data22 = {{{years active|{{{years_active|}}}}}}
| class =

| width =
| label23 = {{#if: {{#pos: {{{notable works|{{{notable_works|}}}}}} | <br }} | Notable works | Notable work }}
| Gender
| data23 = {{{notable works|{{{notable_works|}}}}}}
| {{#switch: {{lc: {{{gender|}}} }} | f | female = {{Click| image = Symbol venus.svg| height = 25 | width = 15 | link = Concept:Female persons | text = Female }}{{#set: Gender = Female }} | m | masculin = {{Click| image = Symbol mars.svg| height = 20 | width = 20 | link = Concept:Male persons | text = Masculin}}{{#set: Gender = Male }} }}

| if = {{{gender|}}}
| label24 = Television
}}
| data24 = {{{television|}}}
{{Infobox/Table dual line

| class =
| label25 = {{#if: {{#pos: {{{awards|}}} | <br }} | Awards | Award }}
| width =
| data25 = {{{awards|}}}
| Nationality

| {{{nationality}}}
| header30 = {{#if: {{{film|}}}{{{series|}}}{{{short|}}}{{{mcu occupation|}}}{{{character|}}} | MCU-related information }}
| if = {{{nationality|}}}

}}
| label31 = {{#if: {{#pos: {{{film|}}} | <br }} | Related films | Related film }}
{{Infobox/Table end}}
| data31 = {{{film|}}}
{{Infobox/Table start

| class = {{#if: {{{marriage|}}}{{{parents|}}}{{{siblings|}}}{{{children|}}}{{{other relatives|}}}{{{affair|}}} | | hidden }}
| border =
| label32 = Related series
| background =
| data32 = {{{series|}}}

| color =
| label33 = {{#if: {{#pos: {{{film|}}} | <br }} | Related shorts | Related short }}
| text = Informations about family
| data33 = {{{short|}}}
}}

{{Infobox/Table dual line
| label35 = {{#if: {{#pos: {{{mcu occupation|}}} | <br }} | Occupations | Occupation }}
| class =
| data35 = {{{mcu occupation|}}}
| width =

| Marriage
| label36 = {{#if: {{#pos: {{{character|}}} | <br }} | Characters | Character }}
| {{{marriage}}}
| if = {{{marriage|}}}
| data36 = {{{character|}}}
}}
{{Infobox/Table dual line
| class =
| width =
| {{#if: {{#pos: {{{affair|}}} | <br }} | Affairs | Affair }}
| {{{affair}}}
| if = {{{affair|}}}
}}
{{Infobox/Table dual line
| class =
| width =
| {{#if: {{#pos: {{{parents|}}} | <br }} | Parents | Parent }}
| {{{parents}}}
| if = {{{parents|}}}
}}
{{Infobox/Table dual line
| class =
| width =
| {{#if: {{#pos: {{{siblings|}}} | <br }} | Siblings | Sibling }}
| {{{siblings}}}
| if = {{{siblings|}}}
}}
{{Infobox/Table dual line
| class =
| width =
| {{#if: {{#pos: {{{children|}}} | <br }} | Children | Child }}
| {{{children}}}
| if = {{{children|}}}
}}
{{Infobox/Table dual line
| class =
| width =
| {{#if: {{#pos: {{{other relatives|}}} | <br }} | Other relatives | Other relative }}
| {{{other relatives}}}
| if = {{{other relatives|}}}
}}
{{Infobox/Table end}}
{{Infobox/Table start
| class = {{#if: {{{occupation|}}}{{{years active|}}}{{{notable works|}}}{{{television|}}}{{{awards|}}} | | hidden }}
| border =
| background =
| color =
| text = Profesional informations
}}
{{Infobox/Table dual line
| class =
| width =
| {{#if: {{#pos: {{{occupation|}}} | <br }} | Occupations | Occupation }}
| {{{occupation}}}
| if = {{{occupation|}}}
}}
{{Infobox/Table dual line
| class =
| width =
| Years active
| {{{years active}}}
| if = {{{years active|}}}
}}
{{Infobox/Table dual line
| class =
| width =
| {{#if: {{#pos: {{{notable works|}}} | <br }} | Notable works | Notable work }}
| {{{notable works}}}
| if = {{{notable works|}}}
}}
{{Infobox/Table dual line
| class =
| width =
| Television
| {{{television}}}
| if = {{{television|}}}
}}
{{Infobox/Table dual line
| class =
| width =
| {{#if: {{#pos: {{{awards|}}} | <br }} | Awards | Award }}
| {{{awards}}}
| if = {{{awards|}}}
}}
{{Infobox/Table end}}
{{Infobox/Table start
| class = {{#if: {{{film|}}}{{{series|}}}{{{mcu occupation|}}}{{{character|}}} | | hidden }}
| border =
| background =
| color =
| text = [[MCU]]-related informations
}}
{{Infobox/Table dual line
| class =
| width =
| {{#if: {{#pos: {{{film|}}} | <br }} | Related films | Related film }}
| {{{film}}}
| if = {{{film|}}}
}}
{{Infobox/Table dual line
| class =
| width =
| {{#if: {{#pos: {{{series|}}} | <br }} | Related series | Related serie }}
| {{{series}}}
| if = {{{series|}}}
}}
{{Infobox/Table dual line
| class =
| width =
| {{#if: {{#pos: {{{mcu occupation|}}} | <br }} | Occupations | Occupation }}
| {{{mcu occupation}}}
| if = {{{mcu occupation|}}}
}}
{{Infobox/Table dual line
| class =
| width =
| {{#if: {{#pos: {{{character|}}} | <br }} | Characters | Character }}
| {{{character}}}
| if = {{{character|}}}
}}
{{Infobox/Table end}}
{{Infobox/Endbox
| Modèle:Infobox Person
| border-color =
| border-width =
}}<!--
}}<!--


Line 229: Line 109:
-->{{#if: {{{name|}}} | {{#set: name = {{{name}}} }} | {{#set: name = {{PAGENAME}} }} }}<!--
-->{{#if: {{{name|}}} | {{#set: name = {{{name}}} }} | {{#set: name = {{PAGENAME}} }} }}<!--


Retrieving the "infobox image" from the
Retrieving the "infobox image" from the template

-->{{#if: {{{image|}}} | {{#set: image infobox = {{{image}}} }} }}</includeonly><noinclude>{{Documentation}}</noinclude>
-->{{#if: {{{image|}}} | {{#set: Infobox image = {{{image}}} }} }}{{#set: prov={{#if: {{{prov|}}} | {{{prov}}} | {{PAGENAME}} }} }}</includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 13:17, 29 October 2018

Template documentation[view] [edit] [history] [purge]

Full syntax

{{Infobox Person
 | sort             = <!-- Name, Firstname -->
 | nocat            = 
 | prov             = <!-- To be used only if there is an apostrophe -->
 | spoiler          = 
 | honorific prefix = 
 | name             = 
 | honorific suffix = 
 | image            = 
<!-- BIOGRAPHICAL INFORMATIONS -->
 | birth name       = 
 | native name      = 
 | other name       = 
 | birth date       = <!-- use {{Birth date and age|YYYY|MM|DD}} or {{Birth date|YYYY|MM|DD}} (if deceased) or {{Birth year|YYYY}} -->
 | birth place      = 
 | death date       = <!-- use {{Death date and age|YYYY|MM|DD|YYYY|MM|DD}} (death date then birth date) if possible -->
 | death place      = 
 | gender           = <!-- m (male) or f (female) -->
 | nationality      = 
<!-- INFORMATIONS ABOUT FAMILY -->
 | marriage         = <!-- only if the person(s) are MCU-related, each person must be separated by a <br/> -->
 | parents          = <!-- only if the person(s) are MCU-related, each person must be separated by a <br/> -->
 | siblings         = <!-- only if the person(s) are MCU-related, each person must be separated by a <br/> -->
 | children         = <!-- only if the person(s) are MCU-related, each person must be separated by a <br/> -->
 | other relatives  = <!-- only if the person(s) are MCU-related, each person must be separated by a <br/> -->
 | affair           = <!-- only if the person(s) are MCU-related, each person must be separated by a <br/> -->
<!-- PROFESIONAL INFORMATIONS -->
 | occupation       = <!-- each occupation must be separated by a <br/> -->
 | years active     = 
 | notable works    = <!-- each work must be separated by a <br/> -->
 | television       = <!-- each work must be separated by a <br/> -->
 | awards           = <!-- only put the most important ons (oscar, emmy, etc.); each award must be separated by a <br/> -->
<!-- MCU-RELATED INFORMATIONS -->
 | film             = <!-- each film must be separated by a <br/> -->
 | series           = <!-- each series must be separated by a <br/> -->
 | short            = <!-- each short must be separated by a <br/> -->
 | mcu occupation   = <!-- {{Function|function=|series=|text=|show=}} to be used to put the right properties, each function must be separated by a <br/> -->
 | character        = <!-- only put the most importants; each character must be separated by a <br/> -->
}}