Difference between revisions of "Template:Characterbox"
From Ouroboros Portal
m (img change) |
m (minor tweaks) |
||
(34 intermediate revisions by 3 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;line-height:24pt">{{{name}}}</font> | <font style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 24pt;line-height:24pt">{{{name}}}</font> | ||
Line 8: | Line 40: | ||
<br /> | <br /> | ||
{{#if: {{{image|}}} | {{#if: {{{image|}}} | ||
− | |{{#ifeq: {{{image|}}}|Classified|[[Image:blankperson.png]]|[[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''' | ||
Line 39: | Line 103: | ||
{{#if: {{{other|}}}| | {{#if: {{{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.''}} | {{!}}''Classified.''}} | ||
|- | |- | ||
Line 55: | Line 140: | ||
{{!}}{{{supergroup}}}| | {{!}}{{{supergroup}}}| | ||
{{!}}''Classified.''}} | {{!}}''Classified.''}} | ||
+ | |- | ||
+ | {{#if: {{{CIT2|}}}|{{!}}colspan=2 align="center"{{!}}<small>Additional information available at [http://cit.cohtitan.com/character/{{{CIT2|}}} City Info Tracker]</small> | ||
+ | }} | ||
|} | |} | ||
{{#if: {{{battlecry|}}}| | {{#if: {{{battlecry|}}}| | ||
<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;" | ||
{{!}}- | {{!}}- | ||
{{!}} align="center" {{!}}'''Battle Cry''' | {{!}} align="center" {{!}}'''Battle Cry''' | ||
Line 64: | Line 184: | ||
{{!}}{{#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 97: | 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 108: | Line 203: | ||
* '''supergroup''' = Supergroup name. | * '''supergroup''' = Supergroup name. | ||
* '''battlecry''' = The character's battle cry. (This will be hidden if there's no text.) | * '''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 121: | 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 }}