Template:Character: Difference between revisions

From Wikipedia of the Dark Brotherhood, an online Star Wars Club
No edit summary
(Added documentation for the new custom and customtitle fields)
 
(20 intermediate revisions by 5 users not shown)
Line 5: Line 5:
{{!}} class="infoboximage" 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:{{{order}}}}}" colspan="2" | '''{{#if: {{{firstname|}}} | {{{firstname}}} |{{{name}}}}} {{#if: {{{lastname|}}} | {{{lastname}}} |}}'''
|-
|-
{{#if: {{{title|}}}|
| class="header {{lc:{{{order}}}}}" colspan="2" | '''Biographical Information'''
{{!}} class="name {{lc:{{{type}}}}}" colspan="2" {{!}} ''{{{title}}}''}}
|-
| class="header {{lc:{{{type}}}}}" colspan="2" | '''Biographical Information'''
|-
|-
{{#if: {{{homeworld|}}}|
{{#if: {{{homeworld|}}}|
Line 18: Line 15:
|-
|-
{{#if: {{{birth|}}}|
{{#if: {{{birth|}}}|
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Birth:
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Date of Birth:
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{birth}}} }}
{{{birth}}} }}
|-
{{#if: {{{placeofbirth|}}}|
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Place of Birth:
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{placeofbirth}}} }}
|-
|-
{{#if: {{{death|}}}|
{{#if: {{{death|}}}|
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Death:
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Date of Death:
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{death}}} }}
{{{death}}} }}
|-
|-
| class="header {{lc:{{{type}}}}}" colspan="2" | '''Physical Description'''
{{#if: {{{placeofdeath|}}}|
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Place of Death:
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{placeofdeath}}} }}
|-
{{#if: {{{causeofdeath|}}}|
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Cause of Death:
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{causeofdeath}}} }}
|-
| class="header {{lc:{{{order}}}}}" colspan="2" | '''Physical Description'''
|-
|-
{{#if: {{{species|}}}|
{{#if: {{{species|}}}|
Line 58: Line 70:
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B; }}} {{!}}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B; }}} {{!}}
{{{eyes}}} }}
{{{eyes}}} }}
|-
{{#if: {{{skin|}}}|
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222; }}} {{!}} Skin:
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B; }}} {{!}}
{{{skin}}} }}
|-
|-
{{#if: {{{cyber|}}}|
{{#if: {{{cyber|}}}|
Line 64: Line 81:
{{{cyber}}} }}
{{{cyber}}} }}
|-
|-
| class="header {{lc:{{{type}}}}}" colspan="2" | '''Personal Information'''
| class="header {{lc:{{{order}}}}}" colspan="2" | '''Personal Information'''
|-
|-
{{#if: {{{mother|}}}|
{{#if: {{{mother|}}}|
Line 75: Line 92:
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{father}}} }}
{{{father}}} }}
|-
{{#if: {{{siblings|}}}|
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Siblings:
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{siblings}}} }}
|-
|-
{{#if: {{{children|}}}|
{{#if: {{{children|}}}|
Line 90: Line 112:
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{allies}}} }}
{{{allies}}} }}
|-
{{#if: {{{associates|}}}|
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Associates:
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{associates}}} }}
|-
|-
{{#if: {{{enemies|}}}|
{{#if: {{{enemies|}}}|
Line 95: Line 122:
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{enemies}}} }}
{{{enemies}}} }}
|-
{{#if: {{{custom|}}}|
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} {{#if: {{{customtitle|}}} | {{{customtitle}}}: | Custom: }}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{custom}}} }}
|-
|-
{{#if: {{{saber|}}}|
{{#if: {{{saber|}}}|
Line 116: Line 149:
{{{fightingstyle}}} }}
{{{fightingstyle}}} }}
|-
|-
| class="header {{lc:{{{type}}}}}" colspan="2" | '''Chronology & Political Information'''
| class="header {{lc:{{{order}}}}}" colspan="2" | '''Chronology & Political Information'''
|-
|-
{{#if: {{{profession|}}}|
{{#if: {{{profession|}}}|
Line 158: Line 191:
{{{dossier}}} }}
{{{dossier}}} }}
|-
|-
|class="infoboxfooter {{lc:{{{type}}}}}" colspan="2" | {{Link color|Template:Character|{{#switch:{{{type|}}}
{{#if: {{{sheet|}}}|
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Character Sheet:
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{sheet}}} }}
|-
|class="infoboxfooter {{lc:{{{order}}}}}" colspan="2" | {{Link color|Template:Character|{{#switch:{{{order|}}}
   |Sith
   |Sith
   |sith    =   #90413C
   |sith    =   #90413C
Line 167: Line 205:
   |Mercenary
   |Mercenary
   |mercenary      =   #af732c
   |mercenary      =   #af732c
  |Gray
  |gray      =   #a1a1a1
  |Dark
  |dark      =   #686868
   |npc
   |npc
   |NPC    =   #85614B
   |NPC    =   #85614B
Line 178: Line 212:
{{#ifeq: {{lc:{{{nocat|false}}}}} | false |
{{#ifeq: {{lc:{{{nocat|false}}}}} | false |
{{#if:{{NAMESPACE}}| |
{{#if:{{NAMESPACE}}| |
{{#switch:{{{type|}}}
{{#switch:{{{order|}}}
   |Sith
   |Sith
   |sith = [[Category:Characters]] [[Category:Sith]]
   |sith = [[Category:Characters]] [[Category:Sith]]
Line 187: Line 221:
   |mercenary
   |mercenary
   |Mercenary = [[Category:Characters]] [[Category:Mercenaries]]
   |Mercenary = [[Category:Characters]] [[Category:Mercenaries]]
   |gray
   |force disciple
   |Gray = [[Category:Characters]] [[Category:Gray Jedi]]
   |disciple
   |dark
  |force Disciple
   |Dark = [[Category:Characters]] [[Category:Dark Jedi]]
   |Force disciple
  |npc
   |Force Disciple = [[Category:Characters]] [[Category:Force Disciple]]
|npc
   |NPC = [[Category:NPCs]]
   |NPC = [[Category:NPCs]]
   |[[Category:Character Needs Type]]}}
   |[[Category:Character Needs Order]]}}
{{DEFAULTSORT: {{#if: {{{lastname|}}} | {{{lastname}}} {{{firstname}}} | {{#if: {{{firstname|}}} | {{{firstname}}} | {{{name}}} }} }}  }}
{{DEFAULTSORT: {{#if: {{{lastname|}}} | {{{lastname}}} {{{firstname}}} | {{#if: {{{firstname|}}} | {{{firstname}}} | {{{name}}} }} }}  }}
|<!-- Category suppressed -->}}
|<!-- Category suppressed -->}}
Line 203: Line 238:
<pre>
<pre>
{{Character
{{Character
|type= (Character Type - see below)
|order= (Character Order - see below)
|image=
|image=
|firstname= (include middle name or initial in this variable as well)
|firstname= (include middle name or initial in this variable as well)
Line 209: Line 244:
|homeworld=
|homeworld=
|birth=
|birth=
|placeofbirth= (Don't use this AND homeworld)
|death=
|death=
|placeofdeath=
|causeofdeath=
|species=
|species=
|gender=
|gender=
|hair=
|hair=
|eyes=
|eyes=
|skin=
|height=
|height=
|weight=
|weight=
Line 219: Line 258:
|mother=
|mother=
|father=
|father=
|siblings=
|children=
|children=
|spouse=
|spouse=
|allies=
|allies=
|associates=
|enemies=
|enemies=
|custom= (To use a custom display title for this field, see the below)
|customtitle= (Used for the custom= field, e.g. "Drinking Buddies" or "Ex-Lovers"
|saber=
|saber=
|form=
|form=
Line 235: Line 278:
|apprentices=
|apprentices=
|dossier= [[dossier:IDNUM|IDNUM]]
|dossier= [[dossier:IDNUM|IDNUM]]
|sheet= [[charactersheet:IDNUM|IDNUM]] (for use with owned NPC's and alternate characters)
}}</pre>
}}</pre>
{|
{|
!colspan=3|Character Type Examples
!colspan=4|Character Order Examples
|-
|-
|{{Character |type=Sith |name=Sith}}
|{{Character |order=Sith |name=Sith}}
|{{Character |type=Jedi |name=Jedi}}
|{{Character |order=Jedi |name=Jedi}}
|{{Character |type=Gray |name=Gray}}
|{{Character |order=Force Disciple |name=Force Disciple}}
|{{Character |order=NPC |name=NPC}}
|-
|-
|{{Character |type=Loyalist |name=Loyalist}}
|{{Character |order=Loyalist |name=Loyalist}}
|{{Character |type=Mercenary |name=Mercenary}}
|{{Character |order=Mercenary |name=Mercenary}}
|{{Character |type=Dark |name=Dark}}
|{{Character |name=No Order}}
|-
|{{Character |type=NPC |name=NPC}}
|{{Character |name=No Type}}
|
|}
|}


== Categorization ==
== Categorization ==
This template automatically categorizes articles based on the type variable:
This template automatically categorizes articles based on the order variable:
{|class="fancy"
{|class="fancy"
!class="sub-head"|Type
!class="sub-head"|Order
!class="sub-head"|Category
!class="sub-head"|Category
|-
|-
Line 264: Line 305:
|[[:Category:Jedi]]
|[[:Category:Jedi]]
|-
|-
|Gray
|Force Disciple
|[[:Category:Gray Jedi]]
|[[:Category:Force Disciple]]
|-
|Dark
|[[:Category:Dark Jedi]]
|-
|-
|Loyalist
|Loyalist
Line 279: Line 317:
|[[:Category:NPCs]]
|[[:Category:NPCs]]
|-
|-
|No Type
|No Order
|[[:Category:Character Needs Type]]
|[[:Category:Character Needs Order]]
|-
|-
|colspan=2 class="foot"|&nbsp;
|colspan=2 class="foot"|&nbsp;

Latest revision as of 15:13, 18 September 2025

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
|order= (Character Order - see below)
|image=
|firstname= (include middle name or initial in this variable as well)
|lastname= (Use last name ONLY in order to ensure proper categorization)
|homeworld=
|birth=
|placeofbirth= (Don't use this AND homeworld)
|death=
|placeofdeath=
|causeofdeath=
|species=
|gender=
|hair=
|eyes=
|skin=
|height=
|weight=
|cyber=
|mother=
|father=
|siblings=
|children=
|spouse=
|allies=
|associates=
|enemies=
|custom= (To use a custom display title for this field, see the below)
|customtitle= (Used for the custom= field, e.g. "Drinking Buddies" or "Ex-Lovers"
|saber=
|form=
|weapons=
|fightingstyle=
|profession=
|position=
|era=
|affiliation=
|ship=
|masters=
|apprentices=
|dossier= [[dossier:IDNUM|IDNUM]]
|sheet= [[charactersheet:IDNUM|IDNUM]] (for use with owned NPC's and alternate characters)
}}
Character Order Examples
Sith
Biographical Information
Physical Description
Personal Information
Chronology & Political Information
[ Source ]


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


Force Disciple
Biographical Information
Physical Description
Personal Information
Chronology & Political Information
[ Source ]


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


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


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


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


Categorization

This template automatically categorizes articles based on the order variable:

Order Category
Sith Category:Sith
Jedi Category:Jedi
Force Disciple Category:Force Disciple
Loyalist Category:Loyalists
Mercenary Category:Mercenaries
NPC Category:NPCs
No Order Category:Character Needs Order
 

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