Template:Infobox character: Difference between revisions

(Rebuilding to use Template:Infobox)
m (fix numbering)
Line 1: Line 1:
<includeonly>{{infobox
<includeonly>{{infobox
|name        = Character
|name        = Character
Line 40: Line 39:


{{#if: {{{name|}}}|
{{#if: {{{name|}}}|
|label1 = Full Name
|label2 = Full Name
|data1   = {{{name|}}}
|data2   = {{{name|}}}
}}
}}


{{#if: {{{aka|}}}|
{{#if: {{{aka|}}}|
|label1 = {{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}}
|data1   = {{{aka|}}}
|data3   = {{{aka|}}}
}}
}}


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


{{#if: {{{gender|}}}|
{{#if: {{{gender|}}}|
|label1 = Gender
|label5 = Gender
|data1   = [[Gender::{{#switch: {{{gender|}}}
|data5   = [[Gender::{{#switch: {{{gender|}}}
  | M = Male
  | M = Male
  | m = Male
  | m = Male
Line 73: Line 72:


{{#if: {{{dob|}}}|
{{#if: {{{dob|}}}|
|label1 = Date of Birth
|label6 = Date of Birth
|data1   = [[{{#time: Y |{{{dob|}}}}}|{{{dob}}}]][[DOB::{{{dob|}}}| ]] {{{dob-comment|}}}
|data6   = [[{{#time: Y |{{{dob|}}}}}|{{{dob}}}]][[DOB::{{{dob|}}}| ]] {{{dob-comment|}}}
}}
}}


{{#if: {{{pob|}}}|
{{#if: {{{pob|}}}|
|label1 = Place of Birth
|label7 = Place of Birth
|data1   = {{{pob|}}}
|data7   = {{{pob|}}}
}}
}}


{{#if: {{dod}}|
{{#if: {{dod}}|
|label1 = Date of Death
|label8 = Date of Death
|data1   = [[{{#time: Y |{{{dod|}}}}}|{{{dod}}}]][[DOD::{{{dod|}}}| ]] {{{dod-comment|}}}
|data8   = [[{{#time: Y |{{{dod|}}}}}|{{{dod}}}]][[DOD::{{{dod|}}}| ]] {{{dod-comment|}}}


{{#if: {{{dob|}}}|
{{#if: {{{dob|}}}|
{{#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 --> |  


|label1 = Age at Death
|label9 = Age at Death
|data1   = {{#expr: {{#time: Y |{{{dod}}}}} - {{#time: Y |{{{dob}}} }} }} }}}}}}
|data9   = {{#expr: {{#time: Y |{{{dod}}}}} - {{#time: Y |{{{dob}}} }} }} }}}}}}
|
|
{{#if: {{{dob|}}}|
{{#if: {{{dob|}}}|
{{#iferror:{{#time: Y |{{{dob|abc}}}}} | <!-- dob error --> |
{{#iferror:{{#time: Y |{{{dob|abc}}}}} | <!-- dob error --> |
|label1 = Age Now
|label9 = Age Now
|data1   = {{age|{{#time: Y |{{{dob}}} }} }} }} }} }}
|data9   = {{age|{{#time: Y |{{{dob}}} }} }} }} }} }}


{{#if: {{{home|}}}|
{{#if: {{{home|}}}|
|label1 = Home
|label10 = Home
|data1   = {{{home|}}}
|data10   = {{{home|}}}
}}
}}


{{#if: {{{nationality|}}}|
{{#if: {{{nationality|}}}|
|label1 = Nationality
|label11 = Nationality
|data1   = [[{{Country|{{{nationality}}}}}|{{Nationality|{{{nationality}}}}}]][[Nationality::{{nationality|{{{nationality|}}}}}| ]]
|data11   = [[{{Country|{{{nationality}}}}}|{{Nationality|{{{nationality}}}}}]][[Nationality::{{nationality|{{{nationality|}}}}}| ]]
}}
}}


{{#if: {{{family|}}}|
{{#if: {{{family|}}}|
|label1 = Family
|label12 = Family
|data1   = {{{family|}}}
|data12   = {{{family|}}}
}}
}}


{{#if: {{{affiliations|}}}|
{{#if: {{{affiliations|}}}|
|label1 = Main Affiliations
|label13 = Main Affiliations
|data1   = {{{affiliations|}}}
|data13   = {{{affiliations|}}}
}}
}}


{{#if: {{{vehicles|}}}|
{{#if: {{{vehicles|}}}|
|label1 = Vehicles
|label14 = Vehicles
|data1   = {{{vehicles|}}}
|data14   = {{{vehicles|}}}
}}
}}


{{#if: {{{businesses|}}}|
{{#if: {{{businesses|}}}|
|label1 = Businesses
|label15 = Businesses
|data1   = {{{businesses|}}}
|data15   = {{{businesses|}}}
}}
}}


{{#if: {{{voice|}}}|
{{#if: {{{voice|}}}|
|label1 = Voiced by
|label16 = Voiced by
|data1   = {{{voice|}}}
|data16   = {{{voice|}}}
}}
}}



Revision as of 17:34, 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 =
}}