Difference between revisions of "Template:Characterbox"

From Ouroboros Portal
Jump to: navigation, search
(Created page with '{| class="infobox" style="width: 250px; text-align: left; font-size: 70%; background-color: 778FE1; padding: 2px; -moz-border-radius:10px;" cellspacing="2" |- ! style="background...')
 
m (minor tweaks)
 
(161 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"
 
|-
 
|-
! style="background: cedff2;font-size: 120%; font-family: Verdana, Arial, Helvetica, sans-serif; border: 1px solid ; padding: 2px; -moz-border-radius:10px;" align="center" colspan="2" |{{#if: {{{image|}}} | <tr> <td align="center" colspan="2">{{#if: {{#pos:{{{image}}}|mage:}} |{{{image}}}|[[Image:{{{image}}}]]}} | <tr> <td align="center" colspan="2">[[Image:blankperson.jpg]] }}<!--
+
| align="center" style="background: #{{#switch: {{{archetype|}}}
-->{{#if: {{{caption|}}} | <br>{{{caption}}}</td> </tr>}}
+
| Blaster
 +
| 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 />
 +
{{#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;"
 
|-
 
|-
{{#if: {{{origin|}}} | <tr> <th>Origin</th> <td>''{{#if: {{#pos:{{{origin}}}|pisode:}} |{{{origin}}}|{{#ifexist: {{{origin}}} | [[Origin:{{{origin}}}|{{{origin}}}]] | {{{origin}}} }}}}''</td> </tr>}}<!--
+
|colspan=2 align="center"|'''Character Details'''
-->{{#if: {{{archetype|}}} | <tr> <th>archetype</th> <td>''{{#if: {{#pos:{{{archetype}}}|pisode:}} |{{{archetype}}}|{{#ifexist: {{{archetype}}} | [[Archetype:{{{archetype}}}|{{{archetype}}}]] | {{{archetype}}} }}}}''</td> </tr>}}
+
 
|-
 
|-
! style="background: cedff2; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 120%; border: 1px solid #778FE1; padding: 2px; -moz-border-radius:10px;" align="center" colspan="2" | Character details
+
|'''Origin'''
{{#if: {{{primary|}}} | <tr> <th>{{#if: {{#pos:{{{primary}}}|,}} | Primary&nbsp;Powersets | Primary&nbsp;Powerset }}</th> <td>{{{Primary}}}</td> </tr>}}<!--
+
{{#if: {{{origin|}}}|
-->{{#if: {{{secondary|}}} | <tr> <th>{{#if: {{#pos:{{{secondary}}}|,}} | Secondary&nbsp;Powersets | Secondary&nbsp;Powerset }}</th> <td>{{{secondary}}}</td> </tr>}}<!--
+
{{!}}{{OriginIcon|{{{origin}}}|32px}} [[paragonwiki:{{{origin}}}|{{{origin}}}]]|
-->{{#if: {{{other|}}} | <tr> <th>{{#if: {{#pos:{{{other}}}|,}} | Other&nbsp;Powers | Other&nbsp;Power }}</th> <td>{{{other}}}</td> </tr>}}<!--
+
{{!}}''Classified.''}}
-->{{#if: {{{formal name|}}} | <tr> <th>Formal&nbsp;name</th> <td>{{{formal name}}}</td> </tr>}}<!--
+
|-
-->{{#if: {{{alias|}}} | <tr> <th>{{#if: {{#pos:{{{alias}}}|,}} | Aliases | Alias }}</th> <td>{{{alias}}}</td> </tr>}}<!--
+
|'''Archetype'''
-->{{#if: {{{alias|}}} | <tr> <th>{{#if: {{#pos:{{{alias}}}|,}} | Aliases | Alias }}</th> <td>{{{alias}}}</td> </tr>}}<!--
+
{{#if: {{{archetype|}}}|
-->{{#if: {{{gender|}}} | <tr> <th style="vertical-align:middle">Gender</th> <td>{{#switch:{{lc:{{{gender|}}}}} | f | female=[[Image:Venus_symbol_red.png|Female]] | m | male=[[Image:Mars_symbol_blue.png|Male]] | {{{gender}}} }}</td> </tr>}}
+
{{!}}{{ArchetypeIcon|{{{archetype}}}|32px}} [[paragonwiki:{{{archetype}}}|{{{archetype}}}]]|
<!--
+
{{!}}''Classified.''}}
-->{{#if: {{{supergroup|}}} | <tr> <th>{{#if: {{#pos:{{{supergroup}}}|,}} | Supergroups | Supergroup }}</th> <td>{{{Supergroup}}}</td> </tr>}}
+
|-
 +
|'''Primary'''
 +
{{#if: {{{primary|}}}|
 +
{{!}}[[paragonwiki:{{{primary}}}|{{{primary}}}]]|
 +
{{!}}''Classified.''}}
 +
|-
 +
|'''Secondary'''
 +
{{#if: {{{secondary|}}}|
 +
{{!}}[[paragonwiki:{{{secondary}}}|{{{secondary}}}]]|
 +
{{!}}''Classified.''}}
 +
|-
 +
|'''Other Powers'''
 +
{{#if: {{{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|}}}|
 +
{{!}}{{{formal}}}|
 +
{{!}}''Classified.''}}
 +
|-
 +
|'''Gender'''
 +
{{#if: {{{gender|}}}|
 +
{{!}}{{GenderIcon|{{{gender}}}|20px}}|
 +
{{!}}''Classified.''}}
 +
|-
 +
|'''Supergroup'''
 +
{{#if: {{{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 />
<noinclude>
+
{{{!}} 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==
 
==Usage==
 
Produces a formatted sidebar for character pages.  See the formatted box below for a blank template for use in articles.
 
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.
  
{| style="background: transparent;"
+
'''Basic paramaters'''
|<pre>{{Character box
+
* '''name''' = Registered hero/villain name
| name =  
+
* '''image''' = JUST the image name, no formatting
| image = <!-- Image of the character. -->
+
* '''origin''' = Registered origin. Will link to Paragon Wiki.
| caption = <!-- Caption for the image. -->
+
* '''archetype''' = Registered archetype. Will link to Paragon Wiki.
| origin =  
+
* '''level''' = Current security or threat level.
| archetype =  
+
* '''primary''' = Registered primary powerset. Will link to Paragon Wiki.
| primary =  
+
* '''secondary''' = Registered secondary powerset. Will link to Paragon Wiki.
| secondary =  
+
* '''other''' = Other powers (pools, epics, temps, fictional). Can be linked to Paragon Wiki; not forced-linked.
| other Powers =  
+
* '''formal''' = Aliases, birth name, etc.
| formal name = <!-- Full formal name of the character. -->
+
* '''gender''' = Gender.
| gender = <!-- 'Male' or 'Female' will be replaced by the corresponding icon -->
+
* '''supergroup''' = Supergroup name.
| Supergroup =  
+
* '''battlecry''' = The character's battle cry. (This will be hidden if there's no text.)
}}</pre>
+
 
|}
+
'''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
 +
}}
  
</noinclude>
+
<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
}}