Difference between revisions of "Template:Characterbox"
From Ouroboros Portal
m (minor tweaks) |
|||
(159 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
− | {| class="infobox" style="width: 250px; text-align: left; font-size: 70%; background-color: | + | {| 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: #{{#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|}}}| | ||
+ | <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;" | ||
|- | |- | ||
− | + | |colspan=2 align="center"|'''Character Details''' | |
− | + | ||
|- | |- | ||
− | + | |'''Origin''' | |
− | {{#if: {{{ | + | {{#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 /> | |
− | <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. | ||
− | + | '''Basic paramaters''' | |
− | + | * '''name''' = Registered hero/villain name | |
− | | name = | + | * '''image''' = JUST the image name, no formatting |
− | | image = | + | * '''origin''' = Registered origin. Will link to Paragon Wiki. |
− | | | + | * '''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 | + | * '''formal''' = Aliases, birth name, etc. |
− | | formal | + | * '''gender''' = 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 | ||
+ | }} | ||
− | </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
|
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 }}