Template:Infobox character: Difference between revisions

No edit summary
(Rebuilding to use Template:Infobox)
Line 1: Line 1:
<includeonly>{| class="infobox" style="width:22em; font-size:90%; text-align:left; border-color:#A88; background-color: #CAA;" cellspacing="2"
 
{{pipe}}- style="margin:0;"
<includeonly>{{infobox
!colspan="2" style="text-align: center;"{{pipe}}<small>CHARACTER</small><br /><span class="fn" style="font-size:18px;">{{{name|{{PAGENAME}}}}}</span>
|name        = Character
|bodystyle    =  
|title        = {{PAGENAME}}
|titlestyle  =  
|above =  
|abovestyle =
 
 
{{#if:{{{image|}}}|
{{#if:{{{image|}}}|
{{pipe}}-
|image        = [[File:{{{image}}}|{{#if:{{{size|}}}|{{{size|}}}|170px}}|center|{{{caption}}}]]
{{pipe}} colspan="2" align="center"{{pipe}}[[Image:{{{image}}}|{{#if:{{{size|}}}|{{{size|}}}|170px}}|center]]{{#if:{{{caption|}}}|<div style="line-height:1.25em;">{{{caption}}}</div>|}}[[Image::{{{image}}}| ]]|
|imagestyle  = {{{imagestyle|}}}
{{pipe}}-
{{#if:{{{caption|}}}|
}}
|caption      = {{{caption|}}}
{{pipe}}- valign="top"
|captionstyle = {{{captionstyle|}}}
!
}}}}
 
|headerstyle  = background:#ccf;
|labelstyle  = background:#ddf;
|datastyle    =
 
|header1 =  
 
{{#if: {{{games|}}}|
{{#if: {{{games|}}}|
{{pipe}}-
|label1  = Appearances
!style="text-align:right;"{{pipe}}Appearance(s):
|data1  = {{{games|}}}
{{pipe}}{{{games|}}}|
|
{{pipe}}-
{{#if: {{{game|1|}}}|
}}
|label1  = Appearances
{{#if: {{{game_1|}}}|
|data1  = [[Appearance::{{{game_1|}}}]]{{#if: {{{game_2|}}}|
{{pipe}}-
!style="text-align:right;"{{pipe}}Appearance(s):
{{pipe}}[[Appearance::{{{game_1|}}}]]{{#if: {{{game_2|}}}|
<br />[[Appearance::{{{game_2|}}}]]}}{{#if: {{{game_3|}}}|
<br />[[Appearance::{{{game_2|}}}]]}}{{#if: {{{game_3|}}}|
<br />[[Appearance::{{{game_3|}}}]]}}{{#if: {{{game_4|}}}|
<br />[[Appearance::{{{game_3|}}}]]}}{{#if: {{{game_4|}}}|
Line 24: Line 35:
<br />[[Appearance::{{{game_5|}}}]]}}{{#if: {{{game_6|}}}|
<br />[[Appearance::{{{game_5|}}}]]}}{{#if: {{{game_6|}}}|
<br />[[Appearance::{{{game_6|}}}]]}}{{#if: {{{game_7|}}}|
<br />[[Appearance::{{{game_6|}}}]]}}{{#if: {{{game_7|}}}|
<br />[[Appearance::{{{game_7|}}}]]}}|
<br />[[Appearance::{{{game_7|}}}]]}}
{{pipe}}-
}}}}
}}
 
 
{{#if: {{{name|}}}|
{{#if: {{{name|}}}|
{{pipe}}-
|label1  = Full Name
!style="text-align:right;"{{pipe}}Full name:
|data1  = {{{name|}}}
{{pipe}}{{{name|}}}|
{{pipe}}-
}}
}}
{{#if: {{{aka|}}}|
{{#if: {{{aka|}}}|
{{pipe}}-
|label1  = {{abbr|Aliases|Permanent nicknames or alternative names, not one-off, affectionate or abusive names}}
!style="text-align:right;"{{pipe}}{{abbr|Alias(es)|Permanent nicknames or alternative names, not one-off affectionate or abusive names}}
|data1  = {{{aka|}}}
{{pipe}}{{{aka|}}}|
{{pipe}}-
}}
}}
{{#if: {{{status|}}}|
{{#if: {{{status|}}}|
{{pipe}}-
|label1  = Status
!style="text-align:right;"{{pipe}}Status:
|data1  = {[[Status::{{{status|}}}]]
{{pipe}}[[Status::{{{status|}}}]]|
{{pipe}}-
}}
}}
{{#if: {{{gender|}}}|
{{#if: {{{gender|}}}|
{{pipe}}-
|label1  = Gender
!style="text-align:right;"{{pipe}}Gender:
|data1  = [[Gender::{{#switch: {{{gender|}}}
{{pipe}}[[Gender::{{#switch: {{{gender|}}}
  | M = Male
  | M = Male
  | m = Male
  | m = Male
Line 63: Line 71:
}}]]
}}]]
}}
}}
{{#if: {{{dob|}}}|
{{#if: {{{dob|}}}|
{{pipe}}-
|label1  = Date of Birth
!style="text-align:right;"{{pipe}}Date of birth:
|data1  = [[{{#time: Y |{{{dob|}}}}}|{{{dob}}}]][[DOB::{{{dob|}}}| ]] {{{dob-comment|}}}
{{pipe}}[[{{#time: Y |{{{dob|}}}}}|{{{dob}}}]][[DOB::{{{dob|}}}| ]] {{{dob-comment|}}}
{{pipe}}-
}}
}}
{{#if: {{{pob|}}}|
{{#if: {{{pob|}}}|
{{pipe}}-
|label1  = Place of Birth
!style="text-align:right;"{{pipe}}Place of birth:
|data1  = {{{pob|}}}
{{pipe}}{{{pob|}}}|
{{pipe}}-
}}
}}
{{#if: {{{dod|}}}|
 
{{pipe}}-
{{#if: {{dod}}|
!style="text-align:right;"{{pipe}}Date of death:
|label1  = Date of Death
{{pipe}}[[{{#time: Y |{{{dod|}}}}}|{{{dod}}}]][[DOD::{{{dod|}}}| ]] {{{dod-comment|}}}
|data1  = [[{{#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 --> |  
{{pipe}}-
 
!style="text-align:right;"{{pipe}}Age at death:
|label1  = Age at Death
{{pipe}}
|data1  = {{#expr: {{#time: Y |{{{dod}}}}} - {{#time: Y |{{{dob}}} }} }} }}}}}}
{{#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 --> |
{{pipe}}-
|label1  = Age Now
!style="text-align:right;"{{pipe}}Age now:
|data1  = {{age|{{#time: Y |{{{dob}}} }} }} }} }} }}
{{pipe}}{{age|{{#time: Y |{{{dob}}} }} }} }} }} }}
 
{{#if: {{{home|}}}|
{{#if: {{{home|}}}|
{{pipe}}-
|label1  = Home
!style="text-align:right;"{{pipe}}Home:
|data1  = {{{home|}}}
{{pipe}}{{{home|}}}|
{{pipe}}-
}}
}}
{{#if: {{{nationality|}}}|
{{#if: {{{nationality|}}}|
{{pipe}}-
|label1  = Nationality
!style="text-align:right;"{{pipe}}Nationality:
|data1  = [[{{Country|{{{nationality}}}}}|{{Nationality|{{{nationality}}}}}]][[Nationality::{{nationality|{{{nationality|}}}}}| ]]
{{pipe}}[[{{Country|{{{nationality}}}}}|{{Nationality|{{{nationality}}}}}]][[Nationality::{{nationality|{{{nationality|}}}}}| ]]|
{{pipe}}-
}}
}}
{{#if: {{{family|}}}|
{{#if: {{{family|}}}|
{{pipe}}-
|label1  = Family
!style="text-align:right;"{{pipe}}Family:
|data1  = {{{family|}}}
{{pipe}}{{{family|}}}|
{{pipe}}-
}}
}}
{{#if: {{{affiliations|}}}|
{{#if: {{{affiliations|}}}|
{{pipe}}-
|label1  = Main Affiliations
!style="text-align:right;"{{pipe}}Main affiliation:
|data1  = {{{affiliations|}}}
{{pipe}}{{{affiliations|}}}|
{{pipe}}-
}}
}}
{{#if: {{{vehicles|}}}|
{{#if: {{{vehicles|}}}|
{{pipe}}-
|label1  = Vehicles
!style="text-align:right;"{{pipe}}Vehicle(s):
|data1  = {{{vehicles|}}}
{{pipe}}{{{vehicles|}}}|
{{pipe}}-
}}
}}
{{#if: {{{businesses|}}}|
{{#if: {{{businesses|}}}|
{{pipe}}-
|label1  = Businesses
!style="text-align:right;"{{pipe}}Businesses:
|data1  = {{{businesses|}}}
{{pipe}}{{{businesses|}}}|
{{pipe}}-
}}
}}
{{#if: {{{voice|}}}|
{{#if: {{{voice|}}}|
{{pipe}}-
|label1  = Voiced by
!style="text-align:right;"{{pipe}}Voiced by:
|data1  = {{{voice|}}}
{{pipe}}{{{voice|}}}|
{{pipe}}-
}}
}}
|}</includeonly><noinclude>
 
}}</includeonly><noinclude>


{{doc}}
{{doc}}


[[Category:Infobox Templates|{{PAGENAME}}]]</noinclude>
[[Category:Infobox Templates|{{PAGENAME}}]]</noinclude>

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