Difference between revisions of "Template:Characterbox"
From Ouroboros Portal
m (Layout) |
(Inage tweak) |
||
Line 8: | Line 8: | ||
<br /> | <br /> | ||
{{#if: {{{image|}}} | {{#if: {{{image|}}} | ||
− | |{{#ifeq: {{{image|}}}|Classified|[[Image:blankperson.png]]|[[Image:{{{image}}}| | + | |{{#ifeq: {{{image|}}}|Classified|[[Image:blankperson.png]]|[[Image:{{{image}}}|{{#ifexpr:216>={{#expr:{{{imagesize|}}}}}|{{{imagesize|}}}|216}}x432px|150x300px}}]]}} |
|[[Image:blankperson.png]] | |[[Image:blankperson.png]] | ||
}} | }} | ||
Line 70: | Line 70: | ||
'''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 | ||
Line 81: | Line 82: | ||
* '''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. | ||
+ | |||
<br clear="all" /> | <br clear="all" /> | ||
===Example=== | ===Example=== |
Revision as of 17:36, 1 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.
- 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.
Example
Example Girl
|
{{Characterbox | name = Example Girl | image = OliviaDarque1.jpg | origin = Magic | archetype = Scrapper | 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! }}