Difference between revisions of "Template:Characterbox"

From Ouroboros Portal
Jump to: navigation, search
m
m (minor tweaks)
 
(129 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{| class="infobox" style="width: 250px; text-align: left; font-size: 70%; background-color: 778FE1; padding: 2px; -moz-border-radius:10px;" cellspacing="2"
+
{| class="infobox" style="width: 250px; text-align: left; font-size: 70%; background-color: #{{#switch: {{{archetype|}}}
 +
| Blaster
 +
| Controller
 +
| Defender
 +
| Scrapper
 +
| Tanker
 +
| Peacebringer
 +
| Warshade = 0087E1
 +
| Brute
 +
| Stalker
 +
| Mastermind
 +
| Dominator
 +
| Corruptor
 +
| Arachnos Widow
 +
| Arachnos Soldier = FF7770
 +
| 676767
 +
}}; padding: 2px; -moz-border-radius:10px;" cellspacing="2"
 
|-
 
|-
|colspan=2 align="center" colspan=2 style="background: cedff2;font-size: 120%; font-family: Verdana, Arial, Helvetica, sans-serif; border: 1px solid ; padding: 2px; -moz-border-radius:10px;" | {{#if: {{{image|}}}
+
| align="center" style="background: #{{#switch: {{{archetype|}}}
|{{{image}}}
+
| Blaster
|[[Image:blankperson.jpg]]
+
| Controller
 +
| Defender
 +
| Scrapper
 +
| Tanker
 +
| Peacebringer
 +
| Warshade = 5AB1FF
 +
| Brute
 +
| Stalker
 +
| Mastermind
 +
| Dominator
 +
| Corruptor
 +
| Arachnos Widow
 +
| Arachnos Soldier = FFBBB5
 +
| B9B9B9
 +
}};font-size: 120%; font-family: Verdana, Arial, Helvetica, sans-serif; border: 1px solid ; padding: 2px; -moz-border-radius:10px;" |
 +
{{#if: {{{name|}}}|
 +
<font style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 24pt;line-height:24pt">{{{name}}}</font>
 
}}
 
}}
 +
{{clr}}
 
<br />
 
<br />
{| style="background: cedff2; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 120%; border: 1px solid #778FE1; padding: 2px; -moz-border-radius:10px;"
+
{{#if: {{{image|}}}
 +
|{{#ifeq: {{{image|}}}|Classified|[[Image:blankperson.png]]|[[Image:{{{image}}}|{{#if:{{{imagesize|}}}|{{#ifexpr:216>={{#expr:{{{imagesize|}}}}}|{{{imagesize|}}}|216}}x432px|150x300px}}]]}}
 +
|[[Image:blankperson.png]]
 +
}}
 +
<br />
 +
{| style="background: #{{#switch: {{{archetype|}}}
 +
| Blaster
 +
| Controller
 +
| Defender
 +
| Scrapper
 +
| Tanker
 +
| Peacebringer
 +
| Warshade = BADEFF
 +
| Brute
 +
| Stalker
 +
| Mastermind
 +
| Dominator
 +
| Corruptor
 +
| Arachnos Widow
 +
| Arachnos Soldier = FFDFDC
 +
| FFFFFF
 +
}}; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 120%; border: 1px solid #{{#switch: {{{archetype|}}}
 +
| Blaster
 +
| Controller
 +
| Defender
 +
| Scrapper
 +
| Tanker
 +
| Peacebringer
 +
| Warshade = 0068B3
 +
| Brute
 +
| Stalker
 +
| Mastermind
 +
| Dominator
 +
| Corruptor
 +
| Arachnos Widow
 +
| Arachnos Soldier = FF2F36
 +
| 000000
 +
}}; padding: 2px; -moz-border-radius:10px;"
 
|-
 
|-
 
|colspan=2 align="center"|'''Character Details'''
 
|colspan=2 align="center"|'''Character Details'''
 
|-
 
|-
 +
|'''Origin'''
 
{{#if: {{{origin|}}}|
 
{{#if: {{{origin|}}}|
{{!}}'''Origin'''{{!}}{{!}}{{{origin}}}
+
{{!}}{{OriginIcon|{{{origin}}}|32px}} [[paragonwiki:{{{origin}}}|{{{origin}}}]]|
}}
+
{{!}}''Classified.''}}
 
|-
 
|-
 +
|'''Archetype'''
 
{{#if: {{{archetype|}}}|
 
{{#if: {{{archetype|}}}|
{{!}}'''Archetype'''{{!}}{{!}}{{{archetype}}}
+
{{!}}{{ArchetypeIcon|{{{archetype}}}|32px}} [[paragonwiki:{{{archetype}}}|{{{archetype}}}]]|
}}
+
{{!}}''Classified.''}}
 
|-
 
|-
 +
|'''Primary'''
 
{{#if: {{{primary|}}}|
 
{{#if: {{{primary|}}}|
{{!}}'''Primary'''{{!}}{{!}}{{{primary}}}
+
{{!}}[[paragonwiki:{{{primary}}}|{{{primary}}}]]|
}}
+
{{!}}''Classified.''}}
 
|-
 
|-
 +
|'''Secondary'''
 
{{#if: {{{secondary|}}}|
 
{{#if: {{{secondary|}}}|
{{!}}'''Secondary'''{{!}}{{!}}{{{secondary}}}
+
{{!}}[[paragonwiki:{{{secondary}}}|{{{secondary}}}]]|
}}
+
{{!}}''Classified.''}}
 
|-
 
|-
 +
|'''Other Powers'''
 
{{#if: {{{other|}}}|
 
{{#if: {{{other|}}}|
{{!}}'''Other'''{{!}}{{!}}{{{other}}}
+
{{!}}{{{other}}}|
}}
+
{{!}}''Classified.''}}
 +
|-
 +
|'''{{#switch: {{{archetype|}}}
 +
| Blaster
 +
| Controller
 +
| Defender
 +
| Scrapper
 +
| Tanker
 +
| Peacebringer
 +
| Warshade = Security Level
 +
| Brute
 +
| Stalker
 +
| Mastermind
 +
| Dominator
 +
| Corruptor
 +
| Arachnos Widow
 +
| Arachnos Soldier = Threat Level
 +
| Level
 +
}}'''
 +
{{#if: {{{level|}}}|
 +
{{!}}{{{level|}}}|
 +
{{!}}''Classified.''}}
 
|-
 
|-
 +
|'''Formal Name'''
 
{{#if: {{{formal|}}}|
 
{{#if: {{{formal|}}}|
{{!}}'''Formal Name'''{{!}}{{!}}{{{formal}}}
+
{{!}}{{{formal}}}|
}}
+
{{!}}''Classified.''}}
 
|-
 
|-
 +
|'''Gender'''
 
{{#if: {{{gender|}}}|
 
{{#if: {{{gender|}}}|
{{!}}'''Gender'''{{!}}{{!}}{{{gender}}}
+
{{!}}{{GenderIcon|{{{gender}}}|20px}}|
}}
+
{{!}}''Classified.''}}
 
|-
 
|-
 +
|'''Supergroup'''
 
{{#if: {{{supergroup|}}}|
 
{{#if: {{{supergroup|}}}|
{{!}}'''Supergroup'''{{!}}{{!}}{{{supergroup}}}
+
{{!}}{{{supergroup}}}|
 +
{{!}}''Classified.''}}
 +
|-
 +
{{#if: {{{CIT2|}}}|{{!}}colspan=2 align="center"{{!}}<small>Additional information available at [http://cit.cohtitan.com/character/{{{CIT2|}}} City Info Tracker]</small>
 
}}
 
}}
 
|}
 
|}
|}
+
{{#if: {{{battlecry|}}}|
 +
<br />
 +
{{{!}} style="background: #{{#switch: {{{archetype|}}}
 +
| Blaster
 +
| Controller
 +
| Defender
 +
| Scrapper
 +
| Tanker
 +
| Peacebringer
 +
| Warshade = BADEFF
 +
| Brute
 +
| Stalker
 +
| Mastermind
 +
| Dominator
 +
| Corruptor
 +
| Arachnos Widow
 +
| Arachnos Soldier = FFDFDC
 +
| FFFFFF
 +
}}; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 120%; border: 1px solid #{{#switch: {{{archetype|}}}
 +
| Blaster
 +
| Controller
 +
| Defender
 +
| Scrapper
 +
| Tanker
 +
| Peacebringer
 +
| Warshade = 0068B3
 +
| Brute
 +
| Stalker
 +
| Mastermind
 +
| Dominator
 +
| Corruptor
 +
| Arachnos Widow
 +
| Arachnos Soldier = FF2F36
 +
| 000000
 +
}}; padding: 2px; -moz-border-radius:10px;"
 +
{{!}}-
 +
{{!}} align="center" {{!}}'''Battle Cry'''
 +
{{!}}-
 +
{{!}}{{#ifeq: {{{battlecry|}}}|Classified|''Classified.''|''"{{{battlecry}}}"''}}
 +
{{!}}} }}
 +
|}<noinclude>
 +
==Usage==
 +
Produces a formatted sidebar for character pages.  See the formatted box below for a blank template for use in articles.
 +
 
 +
'''NOTE:''' Technically, all fields are optional.
 +
 
 +
'''Basic paramaters'''
 +
* '''name''' = Registered hero/villain name
 +
* '''image''' = JUST the image name, no formatting
 +
* '''origin''' = Registered origin. Will link to Paragon Wiki.
 +
* '''archetype''' = Registered archetype. Will link to Paragon Wiki.
 +
* '''level''' = Current security or threat level.
 +
* '''primary''' = Registered primary powerset. Will link to Paragon Wiki.
 +
* '''secondary''' = Registered secondary powerset. Will link to Paragon Wiki.
 +
* '''other''' = Other powers (pools, epics, temps, fictional). Can be linked to Paragon Wiki; not forced-linked.
 +
* '''formal''' = Aliases, birth name, etc.
 +
* '''gender''' = Gender.
 +
* '''supergroup''' = Supergroup name.
 +
* '''battlecry''' = The character's battle cry. (This will be hidden if there's no text.)
 +
 
 +
'''Advanced paramaters'''
 +
* '''imagesize''' = The image defaults to 150 pixels across by 300 pixels high. This paramater allows that ''width'' to be changed, up to 216 pixels across.
 +
* '''CIT2''' = City Tracker information page.
 +
 
 +
<br clear="all" />
 +
===Example===
 +
{{Characterbox
 +
| name = Example Girl
 +
| image = OliviaDarque1.jpg
 +
| imagesize = 100
 +
| origin = Magic
 +
| archetype = Scrapper
 +
| level = 10
 +
| primary = Dark Blast
 +
| secondary = Dark Melee
 +
| other = [[paragonwiki:Leaping|Leaping]]
 +
| formal = Olivia Darque
 +
| gender = Female
 +
| supergroup = The Supergroup name
 +
| battlecry = I'm the example for this template!
 +
| CIT2 = 1
 +
}}
 +
 
 +
<nowiki>{{</nowiki>Characterbox
 +
| name = Example Girl
 +
| image = OliviaDarque1.jpg
 +
| imagesize = 100
 +
| origin = Magic
 +
| archetype = Scrapper
 +
| level = 10
 +
| primary = Dark Blast
 +
| secondary = Dark Melee
 +
| other = <nowiki>[[</nowiki>paragonwiki:Leaping|Leaping]]
 +
| formal = Olivia Darque
 +
| gender = Female
 +
| supergroup = The Supergroup name
 +
| battlecry = I'm the example for this template!
 +
| CIT2 = 1
 +
}}
 +
[[Category:Character templates|Characterbox]]</noinclude>

Latest revision as of 01:00, 4 August 2009



Blankperson.png

Character Details
Origin Classified.
Archetype Classified.
Primary Classified.
Secondary Classified.
Other Powers Classified.
Level Classified.
Formal Name Classified.
Gender Classified.
Supergroup Classified.

Usage

Produces a formatted sidebar for character pages. See the formatted box below for a blank template for use in articles.

NOTE: Technically, all fields are optional.

Basic paramaters

  • name = Registered hero/villain name
  • image = JUST the image name, no formatting
  • origin = Registered origin. Will link to Paragon Wiki.
  • archetype = Registered archetype. Will link to Paragon Wiki.
  • level = Current security or threat level.
  • primary = Registered primary powerset. Will link to Paragon Wiki.
  • secondary = Registered secondary powerset. Will link to Paragon Wiki.
  • other = Other powers (pools, epics, temps, fictional). Can be linked to Paragon Wiki; not forced-linked.
  • formal = Aliases, birth name, etc.
  • gender = Gender.
  • supergroup = Supergroup name.
  • battlecry = The character's battle cry. (This will be hidden if there's no text.)

Advanced paramaters

  • imagesize = The image defaults to 150 pixels across by 300 pixels high. This paramater allows that width to be changed, up to 216 pixels across.
  • CIT2 = City Tracker information page.


Example

Example Girl

100x432px

Character Details
Origin Originicon magic.png Magic
Archetype Archetypeicon scrapper.png Scrapper
Primary Dark Blast
Secondary Dark Melee
Other Powers Leaping
Security Level 10
Formal Name Olivia Darque
Gender Gendericon female.png Female
Supergroup The Supergroup name
Additional information available at City Info Tracker


Battle Cry
"I'm the example for this template!"
{{Characterbox
| name = Example Girl
| image = OliviaDarque1.jpg
| imagesize = 100
| origin = Magic
| archetype = Scrapper
| level = 10
| primary = Dark Blast
| secondary = Dark Melee
| other = [[paragonwiki:Leaping|Leaping]]
| formal = Olivia Darque
| gender = Female
| supergroup = The Supergroup name
| battlecry = I'm the example for this template!
| CIT2 = 1
}}