Difference between revisions of "Template:Infobox character"

From Grand Theft Wiki
Jump to: navigation, search
Line 70: Line 70:
 
{{#if: {{{affiliations|}}}|
 
{{#if: {{{affiliations|}}}|
 
{{pipe}}-
 
{{pipe}}-
!style="text-align:right;"{{pipe}}Main Affiliation:
+
!style="text-align:right;"{{pipe}}Main affiliation:
 
{{pipe}}{{{affiliations|}}}|
 
{{pipe}}{{{affiliations|}}}|
 
{{pipe}}-
 
{{pipe}}-

Revision as of 18:13, 26 August 2010

Character
Infobox character
Appearances

{| class="infobox" style="width:22em; font-size:90%; text-align:left; border-color:#A88; background-color: #CAA;" cellspacing="2" {{pipe}}- style="margin:0;" !colspan="2" style="text-align: center;"{{pipe}}CHARACTER
{{{name|{{PAGENAME}}}}} {{#if:{{{image|}}}| {{pipe}}- {{pipe}} colspan="2" align="center"{{pipe}}[[Image:{{{image}}}|{{#if:{{{size|}}}|{{{size|}}}|170px}}|center]]{{#if:{{{caption|}}}|

{{{caption}}}
|}}| {{pipe}}- }} {{pipe}}- valign="top" ! {{#if: {{{games|}}}| {{pipe}}- !style="text-align:right;"{{pipe}}Appearance(s): {{pipe}}{{{games|}}}| {{pipe}}- }} {{#if: {{{name|}}}| {{pipe}}- !style="text-align:right;"{{pipe}}Full name: {{pipe}}{{{name|}}}| {{pipe}}- }} {{#if: {{{aka|}}}| {{pipe}}- !style="text-align:right;"{{pipe}}Also known as: {{pipe}}{{{aka|}}}| {{pipe}}- }} {{#if: {{{gender|}}}| {{pipe}}- !style="text-align:right;"{{pipe}}Gender: {{pipe}} {{#if: {{#ifeq: {{{gender|}}}|M|M}}|Male|{{#if: {{#ifeq: {{{gender|}}}|F|F}}|Female}}|}}}} {{#if: {{{dob|}}}| {{pipe}}- !style="text-align:right;"{{pipe}}Date of birth: {{pipe}}{{{dob|}}}| {{pipe}}- }} {{#if: {{{pob|}}}| {{pipe}}- !style="text-align:right;"{{pipe}}Place of birth: {{pipe}}{{{pob|}}}| {{pipe}}- }} {{#if: {{{dod|}}}| {{pipe}}- !style="text-align:right;"{{pipe}}Date of death: {{pipe}}{{{dod|}}}| {{pipe}}- }} {{#if: {{{home|}}}| {{pipe}}- !style="text-align:right;"{{pipe}}Home: {{pipe}}{{{home|}}}| {{pipe}}- }} {{#if: {{{nationality|}}}| {{pipe}}- !style="text-align:right;"{{pipe}}Nationality: {{pipe}}{{{nationality|}}}| {{pipe}}- }} {{#if: {{{family|}}}| {{pipe}}- !style="text-align:right;"{{pipe}}Family: {{pipe}}{{{family|}}}| {{pipe}}- }} {{#if: {{{affiliations|}}}| {{pipe}}- !style="text-align:right;"{{pipe}}Main affiliation: {{pipe}}{{{affiliations|}}}| {{pipe}}- }} {{#if: {{{vehicles|}}}| {{pipe}}- !style="text-align:right;"{{pipe}}Vehicle(s): {{pipe}}{{{vehicles|}}}| {{pipe}}- }} {{#if: {{{businesses|}}}| {{pipe}}- !style="text-align:right;"{{pipe}}Businesses: {{pipe}}{{{businesses|}}}| {{pipe}}- }} {{#if: {{{voice|}}}| {{pipe}}- !style="text-align:right;"{{pipe}}Voiced by: {{pipe}}{{{voice|}}}| {{pipe}}- }} |}[[Category:Characters]] [[Category:Characters| ]]

The following code produces the fake infobox shown on the right:

{{infobox character|
|image =
|games = 
|name = 
|aka = 
|gender = 
|dob = 
|pob =
|dod =
|home = 
|nationality =
|family =
|affiliations = 
|vehicles = 
|businesses =
|voice =
}}