Template:Infobox person: Difference between revisions

no edit summary
(let's test it out...)
No edit summary
Tag: 2017 source edit
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<infobox theme="person">
{{infobox
<title source="name">
| title   = {{{name|{{PAGENAME}}}}}
<default>{{PAGENAME}}</default>
| image   = {{#if:{{{picture|}}}|[[File:{{{picture|}}}|200px]]|}}
</title>
| caption1 = {{{caption|}}}
<image source="picture">
| label1  = Date of birth
<caption source="caption" />
| data1    = {{{date_birth|}}}
</image>
| label2  = Place of birth
<data source="date_birth">
| data2    = {{{place_birth|}}}
<label>Birth</label>
| label3  = Date of death
<format>{{{date_birth}}} ({{{place_birth}}})</format>
| data3    = {{{date_death|}}}
</data>
| label4  = Place of death
<data source="date_death">
| data4    = {{{place_death|}}}
<label>Death</label>
| label5  = Nationality
<format>{{{date_death}}} ({{{place_death}}})</format>
| data5    = {{{nationality|}}}
</data>
| label6  = Pronouns
<data source="nationality">
| data6    = {{{pronouns|}}}
<label>Nationality</label>
| label7  = Gender identity
</data>
| data7    = {{{gender|}}}
<data source="pronouns">
| label8  = Occupation
<label>Pronouns</label>
| data8    = {{{occupation|}}}
</data>
| label9  = Known for
<data source="gener">
| data9    = {{{known_for|}}}
<label>Gender identity</label>
}}<noinclude>
</data>
<templatedata>
<data source="occupation">
{
<label>Occupation</label>
"params": {
</data>
"date_birth": {
<data source="known_for">
"label": "Date of birth",
<label>Known for</label>
"type": "date",
</data>
"suggested": true
</infobox>
},
"place_birth": {
"label": "Place of birth",
"type": "string",
"suggested": true
},
"date_death": {
"label": "Date of death",
"type": "date"
},
"place_death": {
"label": "Place of death",
"type": "string"
},
"name": {
"label": "Name",
"description": "Name of the person (defaults to the article title)",
"type": "string"
},
"picture": {
"label": "Picture",
"description": "Picture of the person",
"type": "wiki-file-name",
"suggested": true
},
"caption": {
"label": "Caption",
"description": "Short description of the picture",
"type": "string"
},
"nationality": {
"label": "Nationality",
"description": "Where's this person from?"
},
"pronouns": {
"label": "Pronouns",
"description": "Pronouns used by this person",
"suggested": true
},
"occupation": {
"label": "Occupation"
},
"known_for": {
"label": "Known for",
"description": "What is this person known for, other than their occupation?"
},
"gender": {
"label": "Gender identity",
"description": "This person's gender identity",
"type": "string",
"suggested": true
}
},
"description": "To be used in articles about people",
"paramOrder": [
"name",
"picture",
"caption",
"date_birth",
"place_birth",
"date_death",
"place_death",
"nationality",
"pronouns",
"gender",
"occupation",
"known_for"
],
"format": "block"
}
</templatedata>


<noinclude>
[[Category:Infobox templates]]
{| width=350px style="float: right; clear: both; border-left: 5px solid #e2e810; padding-left: 10px; margin-left: 10px; background: #fdffb2; padding:10px;"
| colspan="2" | <center><big>'''{{PAGENAME}}'''</big></center>{{#if:{{{picture|}}}|
{{!}}-
{{!}} colspan="2" {{!}} [[File:{{{picture|}}}|250px|center]]<br><small>{{{picture description|}}}</small>|}}{{#if:{{{date_birth|}}}|
{{!}}-
{{!}} '''Birth'''
{{!}} {{{date_birth|}}} ({{{place_birth|}}})|}}{{#if:{{{date_death|}}}|
{{!}}-
{{!}} '''Death'''
{{!}} {{{date_death|}}} ({{{place_death|}}})|}}{{#if:{{{nationality|}}}|
{{!}}-
{{!}} '''Nationality'''
{{!}} {{{nationality|}}}|}}{{#if:{{{pronouns|}}}|
{{!}}-
{{!}} '''Pronouns'''
{{!}} {{{pronouns|}}}|}}{{#if:{{{gender|}}}|
{{!}}-
{{!}} '''Gender'''
{{!}} {{{gender|}}}|}}{{#if:{{{occupation|}}}|
{{!}}-
{{!}} '''Occupation'''
{{!}} {{{occupation|}}}|}}{{#if:{{{known_for|}}}|
{{!}}-
{{!}} '''Known for'''
{{!}} {{{known_for|}}}|}}
|}
</noinclude>
</noinclude>