Difference between revisions of "Template:Characterbox"
From Ouroboros Portal
m |
m (minor tweaks) |
||
(99 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {| 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" | ||
|- | |- | ||
− | | align="center" style="background: | + | | align="center" style="background: #{{#switch: {{{archetype|}}} |
+ | | 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|}}}| | {{#if: {{{name|}}}| | ||
− | <font style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 24pt;">{{{name}}}</font> | + | <font style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 24pt;line-height:24pt">{{{name}}}</font> |
}} | }} | ||
{{clr}} | {{clr}} | ||
<br /> | <br /> | ||
{{#if: {{{image|}}} | {{#if: {{{image|}}} | ||
− | |[[Image:{{{image}}}| | + | |{{#ifeq: {{{image|}}}|Classified|[[Image:blankperson.png]]|[[Image:{{{image}}}|{{#if:{{{imagesize|}}}|{{#ifexpr:216>={{#expr:{{{imagesize|}}}}}|{{{imagesize|}}}|216}}x432px|150x300px}}]]}} |
− | |[[Image:blankperson. | + | |[[Image:blankperson.png]] |
}} | }} | ||
<br /> | <br /> | ||
− | {| style="background: | + | {| 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|}}}| |
− | {{ | + | {{!}}{{OriginIcon|{{{origin}}}|32px}} [[paragonwiki:{{{origin}}}|{{{origin}}}]]| |
+ | {{!}}''Classified.''}} | ||
|- | |- | ||
− | + | |'''Archetype''' | |
− | {{# | + | {{#if: {{{archetype|}}}| |
− | {{ | + | {{!}}{{ArchetypeIcon|{{{archetype}}}|32px}} [[paragonwiki:{{{archetype}}}|{{{archetype}}}]]| |
+ | {{!}}''Classified.''}} | ||
|- | |- | ||
− | + | |'''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 /> | <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}}}"''}} | {{!}}{{#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. | ||
Line 76: | Line 190: | ||
'''NOTE:''' Technically, all fields are optional. | '''NOTE:''' Technically, all fields are optional. | ||
+ | '''Basic paramaters''' | ||
* '''name''' = Registered hero/villain name | * '''name''' = Registered hero/villain name | ||
* '''image''' = JUST the image name, no formatting | * '''image''' = JUST the image name, no formatting | ||
* '''origin''' = Registered origin. Will link to Paragon Wiki. | * '''origin''' = Registered origin. Will link to Paragon Wiki. | ||
* '''archetype''' = Registered archetype. 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. | * '''primary''' = Registered primary powerset. Will link to Paragon Wiki. | ||
* '''secondary''' = Registered secondary powerset. Will link to Paragon Wiki. | * '''secondary''' = Registered secondary powerset. Will link to Paragon Wiki. | ||
Line 86: | Line 202: | ||
* '''gender''' = Gender. | * '''gender''' = Gender. | ||
* '''supergroup''' = Supergroup name. | * '''supergroup''' = Supergroup name. | ||
− | * '''battlecry''' = The character's battle cry. | + | * '''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 | <nowiki>{{</nowiki>Characterbox | ||
| name = Example Girl | | name = Example Girl | ||
| image = OliviaDarque1.jpg | | image = OliviaDarque1.jpg | ||
+ | | imagesize = 100 | ||
| origin = Magic | | origin = Magic | ||
| archetype = Scrapper | | archetype = Scrapper | ||
+ | | level = 10 | ||
| primary = Dark Blast | | primary = Dark Blast | ||
| secondary = Dark Melee | | secondary = Dark Melee | ||
Line 100: | Line 241: | ||
| supergroup = The Supergroup name | | supergroup = The Supergroup name | ||
| battlecry = I'm the example for this template! | | battlecry = I'm the example for this template! | ||
+ | | CIT2 = 1 | ||
}} | }} | ||
[[Category:Character templates|Characterbox]]</noinclude> | [[Category:Character templates|Characterbox]]</noinclude> |
Latest revision as of 01:00, 4 August 2009
|
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
|
{{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 }}