Difference between revisions of "Template:InfoCard"
From Ouroboros Portal
m (Attempting a new template format) |
m |
||
Line 1: | Line 1: | ||
− | <includeonly>{| border=0 width=99% | + | <includeonly> |
+ | {| border=0 width=99% | ||
| width=75% valign="top" | | | width=75% valign="top" | | ||
− | {| border=0 style="background-color: {{#switch: {{{align|}}}|Hero|hero|blue= | + | {| border=0 style="background-color: #{{#switch: {{{align|}}}|Hero|hero|blue=CFF|Villain|villain|red=FCC|Rogue|rogue=FFC|Vigilante|vigilante=F93|Loyalist|loyalist|Resistance|resistance=9F9|#default=CCC}}; border:medium double #{{#switch: {{{align|}}}|Hero|hero|blue=00C|Villain|villain|red=600|Rogue|rogue=990|Vigilante|vigilante=630|Loyalist|loyalist|Resistance|resistance=060|#default=333}};" |
− | |align=left style="color:white; background=color: {{#switch: {{{align|}}}|Hero|hero|blue= | + | |align=left style="color:white; background=color: #{{#switch: {{{align|}}}|Hero|hero|blue=00C|Villain|villain|red=600|Rogue|rogue=990|Vigilante|vigilante=630|Loyalist|loyalist|Resistance|resistance=060|#default=333}};" colspan=2 | [[Image:{{#switch: {{{align|}}}|Hero|hero|blue=Align Status Hero|Villain|villain|red=Align Status Villain|Rogue|rogue=Align Status Rogue|Vigilante|vigilante=Align Status Vigilante|Loyalist|loyalist=Align Status Loyalist|Resistance|resistance=Align Status Resistance|#default=Icon clue generic}}.png|18px]] '''{{{name|Name}}}''' {{#if:{{{realname|}}}|({{{realname}}})}} |
|- | |- | ||
− | | rowspan=3 width=2% | <div style="border:medium ridge {{#switch: {{{align|}}}|Hero|hero|blue= | + | | rowspan=3 width=2% | <div style="border:medium ridge #{{#switch: {{{align|}}}|Hero|hero|blue=00C|Villain|villain|red=600|Rogue|rogue=990|Vigilante|vigilante630|Loyalist|loyalist|Resistance|resistance=#060|#default=333}};">{{#if:{{{image|}}}|{{{image|[[Image:Icon clue generic.png|80px]]}}}|[[Image:Icon clue generic.png|80px]]}}</div> |
|| Level {{{level|?}}} • {{OriginIcon|{{#switch: {{{archetype|}}}|Peacebringer|Warshade|Widow|Soldier=Natural|#default={{{origin}}}}}|18px}} • {{ArchetypeIcon|{{{archetype}}}|18px}} | || Level {{{level|?}}} • {{OriginIcon|{{#switch: {{{archetype|}}}|Peacebringer|Warshade|Widow|Soldier=Natural|#default={{{origin}}}}}|18px}} • {{ArchetypeIcon|{{{archetype}}}|18px}} | ||
|- | |- | ||
− | || [[paragonwiki:{{#switch: {{{archetype|}}}|Peacebringer=Luminous Blast|Warshade=Umbral Blast|#default={{{primary}}}}}]] / [[paragonwiki:{{#switch: {{{archetype|}}}|Peacebringer=Luminous Aura|Warshade=Umbral Aura|#default={{{secondary}}}}}]]<br/> {{#if:{{{epic|}}}|'''[[paragonwiki:{{{epic}}}| | + | || [[paragonwiki:{{#switch: {{{archetype|}}}|Peacebringer=Luminous Blast|Warshade=Umbral Blast|#default={{{primary}}}}}|]] / [[paragonwiki:{{#switch: {{{archetype|}}}|Peacebringer=Luminous Aura|Warshade=Umbral Aura|#default={{{secondary}}}}}|]]<br/> {{#if:{{{epic|}}}|'''[[paragonwiki:{{{epic}}}|]]'''}} |
|- | |- | ||
− | || {{#if:{{{pool1|}}}|[[paragonwiki:{{{pool1}}}| | + | || {{#if:{{{pool1|}}}|[[paragonwiki:{{{pool1}}}|]] }} {{#if:{{{pool2|}}}| • [[paragonwiki:{{{pool2}}}|]] }} {{#if:{{{pool3|}}}| • [[paragonwiki:{{{pool3}}}|]] }} {{#if:{{{pool4|}}}| • [[paragonwiki:{{{pool4}}}|]]}} |
|} | |} | ||
| width=25% valign="middle" align="center" | | | width=25% valign="middle" align="center" | | ||
− | {| border=0 style="background-color:white; border:medium inset {{#switch: {{{align|}}}|Hero|hero|blue= | + | {| border=0 style="background-color:white; border:medium inset #{{#switch: {{{align|}}}|Hero|hero|blue=CFF|Villain|villain|red=FCC|Rogue|rogue=FFC|Vigilante|vigilante=F93|Loyalist|loyalist|Resistance|resistance=9F9|#default=CCC}};" |
| {{#if:{{{portrait|}}}|{{{portrait}}}|[[Image:{{#switch: {{{align|}}}|Hero|hero|blue=Align Status Hero|Villain|villain|red=Align Status Villain|Rogue|rogue=Align Status Rogue|Vigilante|vigilante=Align Status Vigilante|Loyalist|loyalist=Align Status Loyalist|Resistance|resistance=Align Status Resistance|#default=Icon clue generic}}.png]]}} | | {{#if:{{{portrait|}}}|{{{portrait}}}|[[Image:{{#switch: {{{align|}}}|Hero|hero|blue=Align Status Hero|Villain|villain|red=Align Status Villain|Rogue|rogue=Align Status Rogue|Vigilante|vigilante=Align Status Vigilante|Loyalist|loyalist=Align Status Loyalist|Resistance|resistance=Align Status Resistance|#default=Icon clue generic}}.png]]}} | ||
|} | |} |
Revision as of 08:47, 8 January 2011
Overview
A switch-based template that detects your archetype and changes color accordingly.
Kheldians need specify only their archetype; the template will automatically fill in their origin and powersets. However, if they wish to specify a different origin, they may do so.
VEATs may specify only their archetype; the template will automatically fill in their origin. If they wish to specify a different origin, they may do so. Due to the branching nature of VEAT powersets, they must be specified manually.
How to use
Fill in the following parameters:
{{InfoCard | name = | realname = (optional) | portrait = (optional, use full URL or image syntax) | image = (optional, use full URL or image syntax) | level = | origin = | archetype = (REQUIRED) | align = (REQUIRED) | primary = | secondary = | epic = (optional) | pool1 = (optional) | pool2 = (optional) | pool3 = (optional) | pool4 = (optional) }}
Examples
{{InfoCard | name = Henry Hero | realname = Henry Sterling | portrait = | image = | level = 44 | origin = Mutation | archetype = Blaster | align = Hero | primary = Energy Blast | secondary = Energy Manipulation | epic = Flame Mastery | pool1 = Fighting | pool2 = Medicine | pool3 = Speed | pool4 = Presence }}
|
|
{{InfoCard | name = Victor Villain | realname = Victor Black | portrait = | image = | level = 41 | origin = Magic | archetype = Mastermind | align = Villain | primary = Ninjas | secondary = Force Field | epic = Mu Mastery | pool1 = Concealment | pool2 = Medicine | pool3 = Speed | pool4 = Presence }}
|
|
{{InfoCard | name = Robert Rogue | realname = Robert Chance | portrait = | image = | level = 44 | origin = Technology | archetype = Stalker | align = Rogue | primary = Ninja Blade | secondary = Ninjutsu | epic = Mace Mastery | pool1 = Fighting | pool2 = Medicine | pool3 = Teleportation | pool4 = Presence }}
|
|
{{InfoCard | name = Vivian Vigilante | realname = Vivian Best | portrait = | image = | level = 41 | origin = Science | archetype = Controller | align = Vigilante | primary = Plant Control | secondary = Empathy | epic = Energy Mastery | pool1 = Fighting | pool2 = Medicine | pool3 = Flight | pool4 = Presence }}
|
|
{{InfoCard | name = Linda Loyalist | realname = Linda Peters | portrait = | image = | level = 41 | origin = Natural | archetype = Dominator | align = Loyalist | primary = Electric Control | secondary = Energy Assault | epic = Psionic Mastery | pool1 = Fighting | pool2 = Medicine | pool3 = Flight | pool4 = Presence }}
|
|
{{InfoCard | name = Roy Resistance | realname = Roy Wilde | portrait = | image = | level = 41 | origin = Natural | archetype = Defender | align = Resistance | primary = Trick Arrow | secondary = Archery | epic = Soul Mastery | pool1 = Leadership | pool2 = Medicine | pool3 = Teleportation | pool4 = Presence }}
|
|