Template:Infobox character: Difference between revisions
(Adding categories for fails) |
mNo edit summary |
||
Line 25: | Line 25: | ||
|data1 = {{#ifexist: {{GameLong|{{{game_1|}}}}}|{{appearance|{{{game_1|}}}}}{{#ifexist: {{GameLong|{{{game_2|}}}}}|<br />{{appearance|{{{game_2|}}}}}}}{{#ifexist: {{GameLong|{{{game_3|}}}}}|<br />{{appearance|{{{game_3|}}}}}}}{{#ifexist: {{GameLong|{{{game_4|}}}}}|<br />{{appearance|{{{game_4|}}}}}}}{{#ifexist: {{GameLong|{{{game_5|}}}}}|<br />{{appearance|{{{game_5|}}}}}}}{{#ifexist: {{GameLong|{{{game_6|}}}}}|<br />{{appearance|{{{game_6|}}}}}}}{{#ifexist: {{GameLong|{{{game_7|}}}}}|<br />{{appearance|{{{game_7|}}}}}}}{{#ifexist: {{GameLong|{{{game_8|}}}}}|<br />{{appearance|{{{game_8|}}}}}}}{{#ifexist: {{GameLong|{{{game_9|}}}}}|<br />{{appearance|{{{game_9|}}}}}}}{{#ifexist: {{GameLong|{{{game_10|}}}}}|<br />{{appearance|{{{game_10|}}}}}}} | |data1 = {{#ifexist: {{GameLong|{{{game_1|}}}}}|{{appearance|{{{game_1|}}}}}{{#ifexist: {{GameLong|{{{game_2|}}}}}|<br />{{appearance|{{{game_2|}}}}}}}{{#ifexist: {{GameLong|{{{game_3|}}}}}|<br />{{appearance|{{{game_3|}}}}}}}{{#ifexist: {{GameLong|{{{game_4|}}}}}|<br />{{appearance|{{{game_4|}}}}}}}{{#ifexist: {{GameLong|{{{game_5|}}}}}|<br />{{appearance|{{{game_5|}}}}}}}{{#ifexist: {{GameLong|{{{game_6|}}}}}|<br />{{appearance|{{{game_6|}}}}}}}{{#ifexist: {{GameLong|{{{game_7|}}}}}|<br />{{appearance|{{{game_7|}}}}}}}{{#ifexist: {{GameLong|{{{game_8|}}}}}|<br />{{appearance|{{{game_8|}}}}}}}{{#ifexist: {{GameLong|{{{game_9|}}}}}|<br />{{appearance|{{{game_9|}}}}}}}{{#ifexist: {{GameLong|{{{game_10|}}}}}|<br />{{appearance|{{{game_10|}}}}}}} | ||
| | | | ||
{{#ifexist: {{games|}} | [[Appearance::{{game|{{{games|}}}}}]] [[Category:Fix | {{#ifexist: {{games|}} | [[Appearance::{{game|{{{games|}}}}}]] [[Category:Fix Games]]| {{{games|}}} [[Category:Fix Games]]}} | ||
}} | }} | ||
Line 70: | Line 70: | ||
| female = Female | | female = Female | ||
| girl = Female | | girl = Female | ||
| [[Category: Fix | | [[Category: Fix Gender]] | ||
}}]] | }}]] | ||
}} | }} | ||
Line 88: | Line 88: | ||
{{#if: {{dod|}}| | {{#if: {{dod|}}| | ||
{{#if: {{{dob|}}}| | {{#if: {{{dob|}}}| | ||
{{#iferror:{{#time: Y |{{{dod|abc}}}}} | | {{#iferror:{{#time: Y |{{{dod|abc}}}}} | [[Category:Fix dod]] | {{#iferror:{{#time: Y |{{{dob|abc}}}}} | <!-- dob error in dod --> | | ||
{{#expr: {{#time: Y |{{{dod}}}}} - {{#time: Y |{{{dob}}} }} }} }} }} }} }} | {{#expr: {{#time: Y |{{{dod}}}}} - {{#time: Y |{{{dob}}} }} }} }} }} }} }} | ||
Line 95: | Line 95: | ||
{{#if: {{{dob|}}}| | {{#if: {{{dob|}}}| | ||
{{#if: {{dod|}}|{{blank}}| | {{#if: {{dod|}}|{{blank}}| | ||
{{#iferror:{{#time: Y |{{{dob|abc}}}}} | | {{#iferror:{{#time: Y |{{{dob|abc}}}}} | [[Category:Fix dob]] | | ||
{{age|{{#time: Y |{{{dob}}} }} }} }} }} }} | {{age|{{#time: Y |{{{dob}}} }} }} }} }} }} | ||
Line 119: | Line 119: | ||
|data17 = {{{voice|}}} | |data17 = {{{voice|}}} | ||
}} | }}</includeonly><noinclude> | ||
</includeonly><noinclude> | |||
{{doc}} | {{doc}} | ||
[[Category:Infobox Templates|{{PAGENAME}}]]</noinclude> | [[Category:Infobox Templates|{{PAGENAME}}]]</noinclude> |
Revision as of 21:55, 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 = }}