Template:Character: Difference between revisions

From Wikipedia of the Dark Brotherhood, an online Star Wars Club
m (A little... hidden gem for certain use cases. Don't really want to advertise it but will add to documentation if it works.)
No edit summary
Line 1: Line 1:
<noinclude>{{Protected template}}</noinclude>
<noinclude>{{Protected template}}</noinclude>
{| class="characterbox {{lc:{{{elder|}}}}}" width="250" align="right" cellpadding="3" cellspacing="0"  
{| class="infobox {{lc:{{{elder|}}}}}" width="250" align="right" cellpadding="3" cellspacing="0"  
|-  
|-  
{{#if: {{{image|}}}|
{{#if: {{{image|}}}|
{{!}} class="characterimage" colspan="2" bgcolor={{{bgcolor_value|#222222;}}} {{!}} {{{image}}} }}
{{!}} class="infoboximage" colspan="2" bgcolor={{{bgcolor_value|#222222;}}} {{!}} {{{image}}} }}
|-
|-
| class="name {{lc:{{{type}}}}}" colspan="2" | '''{{#if: {{{firstname|}}} | {{{firstname}}} |{{{name}}}}} {{#if: {{{lastname|}}} | {{{lastname}}} |}}'''
| class="name {{lc:{{{type}}}}}" colspan="2" | '''{{#if: {{{firstname|}}} | {{{firstname}}} |{{{name}}}}} {{#if: {{{lastname|}}} | {{{lastname}}} |}}'''
Line 13: Line 13:
|-
|-
{{#if: {{{homeworld|}}}|
{{#if: {{{homeworld|}}}|
{{!}} class="charboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Homeworld:
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Homeworld:
{{!}} class="charboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}  
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}  
{{{homeworld}}} }}
{{{homeworld}}} }}
|-
|-
{{#if: {{{birth|}}}|
{{#if: {{{birth|}}}|
{{!}} class="charboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Birth:
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Birth:
{{!}} class="charboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{birth}}} }}
{{{birth}}} }}
|-
|-
{{#if: {{{death|}}}|
{{#if: {{{death|}}}|
{{!}} class="charboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Death:
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Death:
{{!}} class="charboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{death}}} }}
{{{death}}} }}
|-
|-
Line 30: Line 30:
|-
|-
{{#if: {{{species|}}}|
{{#if: {{{species|}}}|
{{!}} class="charboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Species:
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Species:
{{!}} class="charboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{species}}} }}
{{{species}}} }}
|-
|-
{{#if: {{{gender|}}}|
{{#if: {{{gender|}}}|
{{!}} class="charboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Gender:
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Gender:
{{!}} class="charboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{gender}}} }}
{{{gender}}} }}
|-
|-
{{#if: {{{height|}}}|
{{#if: {{{height|}}}|
{{!}} class="charboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Height:
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Height:
{{!}} class="charboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{height}}} }}
{{{height}}} }}
|-
|-
{{#if: {{{weight|}}}|
{{#if: {{{weight|}}}|
{{!}} class="charboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Weight:
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Weight:
{{!}} class="charboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{weight}}} }}
{{{weight}}} }}
|-
|-
{{#if: {{{hair|}}}|
{{#if: {{{hair|}}}|
{{!}} class="charboxinfoheader" bgcolor={{{bgcolor_value|#222222; }}} {{!}} Hair:
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222; }}} {{!}} Hair:
{{!}} class="charboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{hair}}} }}
{{{hair}}} }}
|-
|-
{{#if: {{{eyes|}}}|
{{#if: {{{eyes|}}}|
{{!}} class="charboxinfoheader" bgcolor={{{bgcolor_value|#222222; }}} {{!}} Eyes:
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222; }}} {{!}} Eyes:
{{!}} class="charboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B; }}} {{!}}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B; }}} {{!}}
{{{eyes}}} }}
{{{eyes}}} }}
|-
|-
{{#if: {{{cyber|}}}|
{{#if: {{{cyber|}}}|
{{!}} class="charboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Cybernetics:
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Cybernetics:
{{!}} class="charboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B; }}} {{!}}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B; }}} {{!}}
{{{cyber}}} }}
{{{cyber}}} }}
|-
|-
Line 67: Line 67:
|-
|-
{{#if: {{{mother|}}}|
{{#if: {{{mother|}}}|
{{!}} class="charboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Mother:
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Mother:
{{!}} class="charboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{mother}}} }}
{{{mother}}} }}
|-
|-
{{#if: {{{father|}}}|
{{#if: {{{father|}}}|
{{!}} class="charboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Father:
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Father:
{{!}} class="charboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{father}}} }}
{{{father}}} }}
|-
|-
{{#if: {{{children|}}}|
{{#if: {{{children|}}}|
{{!}} class="charboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Known Children:
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Known Children:
{{!}} class="charboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{children}}} }}
{{{children}}} }}
|-
|-
{{#if: {{{spouse|}}}|
{{#if: {{{spouse|}}}|
{{!}} class="charboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Spouse(s):
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Spouse(s):
{{!}} class="charboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{spouse}}} }}
{{{spouse}}} }}
|-
|-
{{#if: {{{allies|}}}|
{{#if: {{{allies|}}}|
{{!}} class="charboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Allies:
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Allies:
{{!}} class="charboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{allies}}} }}
{{{allies}}} }}
|-
|-
{{#if: {{{enemies|}}}|
{{#if: {{{enemies|}}}|
{{!}} class="charboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Enemies:
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Enemies:
{{!}} class="charboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{enemies}}} }}
{{{enemies}}} }}
|-
|-
{{#if: {{{saber|}}}|
{{#if: {{{saber|}}}|
{{!}} class="charboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Lightsaber Color(s):
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Lightsaber Color(s):
{{!}} class="charboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{saber}}} }}
{{{saber}}} }}
|-
|-
{{#if: {{{form|}}}|
{{#if: {{{form|}}}|
{{!}} class="charboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Lightsaber Form(s):
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Lightsaber Form(s):
{{!}} class="charboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{form}}} }}
{{{form}}} }}
|-
|-
{{#if: {{{weapons|}}}|
{{#if: {{{weapons|}}}|
{{!}} class="charboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Weapon(s):
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Weapon(s):
{{!}} class="charboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{weapons}}} }}
{{{weapons}}} }}
|-
|-
{{#if: {{{fightingstyle|}}}|
{{#if: {{{fightingstyle|}}}|
{{!}} class="charboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Fighting Style(s):
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Fighting Style(s):
{{!}} class="charboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{fightingstyle}}} }}
{{{fightingstyle}}} }}
|-
|-
Line 119: Line 119:
|-
|-
{{#if: {{{profession|}}}|
{{#if: {{{profession|}}}|
{{!}} class="charboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Profession:
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Profession:
{{!}} class="charboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{profession}}} }}
{{{profession}}} }}
|-
|-
{{#if: {{{position|}}}|
{{#if: {{{position|}}}|
{{!}} class="charboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Position:
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Position:
{{!}} class="charboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{position}}} }}
{{{position}}} }}
|-
|-
{{#if: {{{era|}}}|
{{#if: {{{era|}}}|
{{!}} class="charboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Era(s):
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Era(s):
{{!}} class="charboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{era}}}}}
{{{era}}}}}
|-
|-
{{#if: {{{affiliation|}}}|
{{#if: {{{affiliation|}}}|
{{!}} class="charboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Affiliation:
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Affiliation:
{{!}} class="charboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{affiliation}}} }}
{{{affiliation}}} }}
|-
|-
{{#if: {{{ship|}}}|
{{#if: {{{ship|}}}|
{{!}} class="charboxinfoheader" bgcolor={{{bgcolor_value|#222222 }}} {{!}} Personal Ship:
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222 }}} {{!}} Personal Ship:
{{!}} class="charboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{ship}}} }}
{{{ship}}} }}
|-
|-
{{#if: {{{masters|}}}|
{{#if: {{{masters|}}}|
{{!}} class="charboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Known masters:
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Known masters:
{{!}} class="charboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{masters}}} }}
{{{masters}}} }}
|-
|-
{{#if: {{{apprentices|}}}|
{{#if: {{{apprentices|}}}|
{{!}} class="charboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Known apprentices:
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Known apprentices:
{{!}} class="charboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{apprentices}}} }}
{{{apprentices}}} }}
|-
|-
{{#if: {{{dossier|}}}|
{{#if: {{{dossier|}}}|
{{!}} class="charboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Dossier:
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Dossier:
{{!}} class="charboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{dossier}}} }}
{{{dossier}}} }}
|-
|-
|class="characterboxfooter {{lc:{{{type}}}}}" colspan="2" | {{Link color|Template:Character|{{#switch:{{{type|}}}
|class="infoboxfooter {{lc:{{{type}}}}}" colspan="2" | {{Link color|Template:Character|{{#switch:{{{type|}}}


   |Sith
   |Sith

Revision as of 21:50, 23 July 2015

This high-risk template has been protected from editing to prevent vandalism.

Please discuss changes on the talk page. You may use editprotected on the talk page to ask for an administrator to make an edit for you.

{{{name}}}
Biographical Information
Physical Description
Personal Information
Chronology & Political Information
[ Source ]


Usage

To use this template, paste the following code into the top of your userpage, filling all relevant fields:

{{Character
|type= (Character Type - see below)
|image=
|firstname= (include middle name or initial in this variable as well)
|lastname= (last name only for categorization)
|homeworld=
|birth=
|death=
|species=
|gender=
|hair=
|eyes=
|height=
|weight=
|cyber=
|mother=
|father=
|children=
|spouse=
|allies=
|enemies=
|saber=
|form=
|weapons=
|fightingstyle=
|profession=
|position=
|era=
|affiliation=
|ship=
|masters=
|apprentices=
|dossier= [[dossier:IDNUM|IDNUM]]
}}
Character Type Examples
Sith
Biographical Information
Physical Description
Personal Information
Chronology & Political Information
[ Source ]



Obelisk
Biographical Information
Physical Description
Personal Information
Chronology & Political Information
[ Source ]



Krath
Biographical Information
Physical Description
Personal Information
Chronology & Political Information
[ Source ]



Consular
Biographical Information
Physical Description
Personal Information
Chronology & Political Information
[ Source ]



Guardian
Biographical Information
Physical Description
Personal Information
Chronology & Political Information
[ Source ]



Sentinel
Biographical Information
Physical Description
Personal Information
Chronology & Political Information
[ Source ]



Grand Master
Biographical Information
Physical Description
Personal Information
Chronology & Political Information
[ Source ]



NPC
Biographical Information
Physical Description
Personal Information
Chronology & Political Information
[ Source ]



Jedi
Biographical Information
Physical Description
Personal Information
Chronology & Political Information
[ Source ]



No Type
Biographical Information
Physical Description
Personal Information
Chronology & Political Information
[ Source ]



Elder Border
Biographical Information
Physical Description
Personal Information
Chronology & Political Information
[ Source ]



Categorization

This template automatically categorizes articles based on the type variable:

Type Category
Sith Category:Sith
Obelisk Category:Obelisk
Krath Category:Krath
Consular Category:Consular
Guardian Category:Guardian
Sentinel Category:Sentinel
Grand Master Category:DJB Characters
NPC Category:NPCs
Jedi Category:Jedi
Dead Category:Deceased Characters
No Type Category:Character Needs Type
 

If the lastname variable is filled out, the default sort for the article becomes LASTNAME, Firstname.