Template:Infobox character: Difference between revisions

mNo edit summary
No edit summary
(43 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>{{infobox
<includeonly>{{infobox
|name        = Character
| name        =  
|bodystyle    =  
| bodystyle    = background-color: #F0F0FA;
|title        = {{PAGENAME}}
| title        = <div style="float:right; width:27px; font-size:10px;">[[Special:FormEdit/Character/{{PAGENAMEE}}{{#ifexist: {{PAGENAMEE}}/infobox | /infobox}}|edit]]</div><div style="margin-left:32px;">Character</div>
|titlestyle  =  
| titlestyle  = font-size: 90%;
|above =  
text-transform: uppercase;
|abovestyle =  
background-color: #EEE;
border: 1px solid #AAA;
border-bottom: none;
| above = {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
| abovestyle = font-size: 150%;


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


{{#if:{{{image|}}}|
| headerstyle  = background:#444; color: #fff;
|image        = [[File:{{{image}}}|{{#if:{{{size|}}}|{{{size|}}}|170px}}|center|{{{caption}}}]]
| labelstyle   = background:#ddd;
|imagestyle   = {{{imagestyle|}}}
| datastyle    =  
{{#if:{{{caption|}}}|
|caption      = {{{caption|}}}
|captionstyle = {{{captionstyle|}}}
}}}}


|headerstyle  = background:#ccf;
| header1 =  
|labelstyle  = background:#ddf;
|datastyle    =  


|header1 =  
| label1  = Appearances
| data1  = {{gameselect|{{{game_1|}}}|{{{game_2|}}}|{{{game_3|}}}|{{{game_4|}}}|{{{game_5|}}}|{{{game_6|}}}|{{{game_7|}}}|{{{game_8|}}}|{{{game_9|}}}|{{{game_10|}}}|{{{game_11|}}}|{{{game_12|}}}|{{{game_13|}}}|{{{game_14|}}}|{{{game_15|}}}|{{{game_16|}}}|{{{game_17|}}}|{{{game_18|}}}|{{{game_19|}}}|{{{game_20|}}}}}{{#IF: {{{games|}}} |[[Category:Fix Games]] [[Appearance::{{game|{{{games|}}}}}]]}}{{#IF: {{{game_1|}}} |  | [[Category:Fix Games]]}}{{#IF: {{{games|}}} | [[Category:Fix Games]]}}


|label1 = Appearances
| label2 = Full Name
|data1   = {{#if: {{{game_1|}}}|
| data2   = {{{name|}}}
[[Appearance::{{{game_1|}}}]]{{#if: {{{game_2|}}}|
 
<br />[[Appearance::{{{game_2|}}}]]}}{{#if: {{{game_3|}}}|
| label3  = {{abbr|Aliases|Permanent nicknames or alternative names, not one-off, affectionate, or abusive names}}
<br />[[Appearance::{{{game_3|}}}]]}}{{#if: {{{game_4|}}}|
| data3  = {{{aka|}}}
<br />[[Appearance::{{{game_4|}}}]]}}{{#if: {{{game_5|}}}|
 
<br />[[Appearance::{{{game_5|}}}]]}}{{#if: {{{game_6|}}}|
| label4  = Status
<br />[[Appearance::{{{game_6|}}}]]}}{{#if: {{{game_7|}}}|
| data4  = {{#if: {{{status|}}}|
<br />[[Appearance::{{{game_7|}}}]]}}
{{#if: {{{status-link|}}}|
[[{{{status-link|}}}|{{#switch: {{lc:{{{status|}}}}}
| alive = Alive
| dead = Deceased
| deceased = Deceased
| died = Deceased
| {{{status|}}}[[Category:Fix status]]
}}]]
|
|
{{{games|}}}
{{#switch: {{lc:{{{status|}}}}}
| alive = Alive
| dead = Deceased
| deceased = Deceased
| died = Deceased
| {{{status|}}}[[Category:Fix status]]
}}
}}
 
}}
|label2  = Full Name
[[Status::{{#switch: {{lc:{{{status|}}}}}
|data2  = {{{name|}}}
| alive = Alive
 
| dead = Deceased
|label3  = {{abbr|Aliases|Permanent nicknames or alternative names, not one-off, affectionate or abusive names}}
| deceased = Deceased
|data3  = {{{aka|}}}
| died = Deceased
 
| {{{status|}}}[[Category:Fix status]]
 
}}| ]]}}
|label4  = Status
|data4  = {{#if: {{{status|}}}|{[[Status::{{{status|}}}]]}}
 


|label5  = Gender
|label5  = Gender
|data5  = {{#if: {{{gender|}}}|[[Gender::{{#switch: {{{gender|}}}
|data5  = {{#if: {{{gender|}}}|[[Gender::{{#switch: {{lc:{{{gender|}}}}}
| M = Male
  | m = Male
  | m = Male
| Male = Male
  | male = Male
  | male = Male
  | Boy = Male
  | boy = Male
  | Man = Male
  | man = Male
| F = Female
  | f = Female
  | f = Female
| Female = Female
  | female = Female
  | female = Female
  | Girl = Female
  | girl = Female
  |  
  | [[Category: Fix Gender]]
}}]]
}}]]
}}
}}


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


|label7  = Place of Birth
| label7  = Place of Birth
|data7  = {{{pob|}}}
| data7  = {{{pob|}}}
 


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


|label9  = Age at Death
| label9  = Age at Death
|data9  =  
| data9  =  
{{#if: {{dod|}}|
{{#if: {{{dod|}}}|
{{#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 -->[[Category:Fix dod]] | {{#iferror:{{#time: Y |{{{dob|abc}}}}} | <!-- dob error in dod -->[[Category:Fix dob]] |  
{{#expr: {{#time: Y |{{{dod}}}}} - {{#time: Y |{{{dob}}} }} }} }} }} }} }}
{{#expr: {{#time: Y |{{{dod}}}}} - {{#time: Y |{{{dob}}} }} }} }} }} }} }}


| label10  = Age Now
| data10  =
{{#if: {{{dob|}}}|
{{#if: {{{dod|}}}|{{blank}}|
{{#iferror:{{#time: Y |{{{dob|abc}}}}} | <!-- dob error -->[[Category:Fix dob]] |
{{age|{{#time: Y |{{{dob}}} }} }} }} }} }}


|label10 = Age Now
| label11 = Nationality
|data10   =  
| data11   = {{#if: {{{nationality|}}}|[[{{Country|{{{nationality}}}}}|{{Nationality|{{{nationality}}}}}]][[Nationality::{{country|{{{nationality|}}}}}| ]]}}
{{#if: {{{dob|}}}|  
{{#if: {{dod|}}||
{{#iferror:{{#time: Y |{{{dob|abc}}}}} | <!-- dob error --> |
{{age|{{#time: Y |{{{dob}}} }} }} }} }} }} }}


|label11 = Nationality
| label12 = Home
|data11   = {{#if: {{{nationality|}}}|[[{{Country|{{{nationality}}}}}|{{Nationality|{{{nationality}}}}}]][[Nationality::{{nationality|{{{nationality|}}}}}| ]]}}
| data12   = {{{home|}}}


|label12 = Home
| label13 = Family
|data12   = {{{home|}}}
| data13   = {{{family|}}}


| label14  = Main Affiliations
| data14  = {{{affiliations|}}}


|label13 = Family
| label15 = Vehicles
|data13   = {{{family|}}}
| data15   = {{{vehicles|}}}


|label14 = Main Affiliations
| label16 = Businesses
|data15   = {{{affiliations|}}}
| data16   = {{{businesses|}}}


|label15 = Vehicles
| label17 = Occupation
|data15   = {{{vehicles|}}}
| data17   = {{{occupation|}}}


|label16 = Businesses
| label18 = Voiced by
|data16   = {{{businesses|}}}
| data18   = {{{voice|}}}


|label17 = Voiced by
| label19 = Lifeinvader page
|data17   = {{{voice|}}}
| data19   = {{{lifeinvader|}}}


}}</includeonly><noinclude>
}}[[Type::Character| ]]</includeonly><noinclude>


{{doc}}
{{doc}}


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

Revision as of 00:08, 13 May 2015


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 =
}}