Template:Infobox character: Difference between revisions

mNo edit summary
No edit summary
Line 2: Line 2:
|name        = Character
|name        = Character
|bodystyle    =  
|bodystyle    =  
|title        = {{PAGENAME}}
|title        = Character
|titlestyle  =  
|titlestyle  = font-size:10px;
|above =  
|above = {{PAGENAME}}
|abovestyle =  
|abovestyle =  


 
|image        = {{#if:{{{image|}}}|[[File:{{{image}}}|{{#if:{{{size|}}}|{{{size|}}}|170px}}|center|{{{caption}}}]]}}
{{#if:{{{image|}}}|
|image        = [[File:{{{image}}}|{{#if:{{{size|}}}|{{{size|}}}|170px}}|center|{{{caption}}}]]
|imagestyle  = {{{imagestyle|}}}
|imagestyle  = {{{imagestyle|}}}
{{#if:{{{caption|}}}|
|caption      = {{{caption|}}}
|caption      = {{{caption|}}}
|captionstyle = {{{captionstyle|}}}
|captionstyle = {{{captionstyle|}}}
}}}}


|headerstyle  = background:#ccf;
|headerstyle  = background:#ccf;
Line 40: Line 36:
|label3  = {{abbr|Aliases|Permanent nicknames or alternative names, not one-off, affectionate or abusive names}}
|label3  = {{abbr|Aliases|Permanent nicknames or alternative names, not one-off, affectionate or abusive names}}
|data3  = {{{aka|}}}
|data3  = {{{aka|}}}


|label4  = Status
|label4  = Status
|data4  = {{#if: {{{status|}}}|[[Status::{{{status|}}}]]}}
|data4  = {{#if: {{{status|}}}|[[Status::{{{status|}}}]]}}


|label5  = Gender
|label5  = Gender
Line 62: Line 56:
}}]]
}}]]
}}
}}


|label6  = Date of Birth
|label6  = Date of Birth
Line 70: Line 63:
|label7  = Place of Birth
|label7  = Place of Birth
|data7  = {{{pob|}}}
|data7  = {{{pob|}}}


|label8  = Date of Death
|label8  = Date of Death
Line 81: Line 73:
{{#iferror:{{#time: Y |{{{dod|abc}}}}} | <!-- dod error --> | {{#iferror:{{#time: Y |{{{dob|abc}}}}} | <!-- dob error in dod --> |  
{{#iferror:{{#time: Y |{{{dod|abc}}}}} | <!-- dod error --> | {{#iferror:{{#time: Y |{{{dob|abc}}}}} | <!-- dob error in dod --> |  
{{#expr: {{#time: Y |{{{dod}}}}} - {{#time: Y |{{{dob}}} }} }} }} }} }} }}
{{#expr: {{#time: Y |{{{dod}}}}} - {{#time: Y |{{{dob}}} }} }} }} }} }} }}


|label10  = Age Now
|label10  = Age Now
Line 95: Line 86:
|label12  = Home
|label12  = Home
|data12  = {{{home|}}}
|data12  = {{{home|}}}


|label13  = Family
|label13  = Family

Revision as of 17:57, 2 June 2012


This documentation is imported from Template:Infobox character/doc

This infobox should be used on ALL character pages, to display a table.

To add this template to a page, simply use Form:Character

This is a semantic template - the values for dob, dod and gender are Properties which can be searched for and filtered onto pages.

For this reason, it is important that those values are correctly set - using a date (or just a year) or M/F. Do not add links, other text (such as an age) or anything else to those properties.

These are the variables for this infobox:

{{infobox character|
|image = Image.jpg (DO NOT use [[image code]] or add the File: prefix)
|game_1 = GTA San Andreas DO NOT USE LINKS
|game_2 = GTA Vice City
|game_10 = Maximum of 10 games
|games = DO NOT USE THIS. Use game_1 to game_10 above.
|name = Use this where the characters name is not the page name
|aka = MAJOR alternative names only (not just nicknames) like [[Sweet]] being Sean Johnson
|status = Alive or Deceased
|gender = M or F
|dob = date or year
|dob-comment = A comment that goes after the date of birth such as: (estimated)
|pob =
|dod = date or year
|dod-comment = A comment after the date of death
|home = 
|nationality = south africa (just write the country name)
|family =
|affiliations = 
|vehicles = 
|businesses =
|voice =
}}