This wiki is a XML full dump clone of "Heroes Wiki", the main wiki about the Heroes saga that has been shut down permanently since June 1, 2020. The purpose of this wiki is to keep online an exhaustive and accurate database about the franchise.

Template:Infobox power: Difference between revisions

From Heroes Wiki
Jump to navigation Jump to search
Content deleted Content added
imported>Ryangibsonstewart
I don't fully understand the "default" mechanism used here, but we do it everywhere else the variable is listed first in the code, so we may as well do it here too
imported>Piemanmoo
see talk page for edit info
Line 2: Line 2:
{| class="infobox" style="width: 270px; text-align: left; font-size: 90%; background-color: #{{#ifeq:{{{spoiler|}}}|true|F4D5CC|FFCC99}}; font-family: Verdana, Arial, Helvetica, sans-serif; border: 1px solid #{{#ifeq:{{{spoiler|}}}|true|E18F77|CC6600}}; padding: 2px; -moz-border-radius:10px;" cellspacing="2"
{| class="infobox" style="width: 270px; text-align: left; font-size: 90%; background-color: #{{#ifeq:{{{spoiler|}}}|true|F4D5CC|FFCC99}}; font-family: Verdana, Arial, Helvetica, sans-serif; border: 1px solid #{{#ifeq:{{{spoiler|}}}|true|E18F77|CC6600}}; padding: 2px; -moz-border-radius:10px;" cellspacing="2"
|-
|-
! style="background: #{{#ifeq:{{{spoiler|}}}|true|8B0000|FF9966}}; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 120%; border: 1px solid #{{#ifeq:{{{spoiler|}}}|true|E18F77|CC6600}}; padding: 2px; -moz-border-radius:10px; text-align: center; font-size: 120%;" align="center" colspan="2" | {{#ifeq:{{{spoiler|}}}|true|<font color=white>{{PAGENAME}}</font>|{{PAGENAME}}}}
! style="background: #{{#ifeq:{{{spoiler|}}}|true|8B0000|FF9966}}; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 120%; border: 1px solid #{{#ifeq:{{{spoiler|}}}|true|E18F77|CC6600}}; padding: 2px; -moz-border-radius:10px; text-align: center; font-size: 120%;" align="center" colspan="2" | {{#ifeq:{{{spoiler|}}}|true|<font color=white>{{SUBPAGENAME}}</font>|{{SUBPAGENAME}}}}
|-
|-
{{#if: {{{image|}}} | <tr> <td align="center" colspan="2">[[Image:{{{image}}}|250px]] {{#if: {{{caption|}}} | <br>{{{caption}}}}}</td> </tr>}}<!--
{{#if: {{{image|}}} | <tr> <td align="center" colspan="2">[[Image:{{{image}}}|250px]] {{#if: {{{caption|}}} | <br>{{{caption}}}}}</td> </tr>}}<!--
Line 8: Line 8:
-->{{#if: {{{absorbed by||}}} | <tr> <th>Absorbed by:</th> <td>{{{absorbed by}}}</td> </tr>}}<!--
-->{{#if: {{{absorbed by||}}} | <tr> <th>Absorbed by:</th> <td>{{{absorbed by}}}</td> </tr>}}<!--
-->{{#if: {{{ability to|}}} | <tr> <th>Ability to:</th> <td>{{{ability to}}}</td> </tr>}}<!--
-->{{#if: {{{ability to|}}} | <tr> <th>Ability to:</th> <td>{{{ability to}}}</td> </tr>}}<!--
-->{{#ifexist: Examples of {{lcfirst:{{PAGENAME}}}} | <tr> <td colspan=2 align=center> ''[[Examples of {{lcfirst:{{PAGENAME}}}}]]''</td> </tr>|}}
-->{{#ifexist: Examples of {{lcfirst:{{SUBPAGENAME}}}} | <tr> <td colspan=2 align=center> ''[[Examples of {{lcfirst:{{SUBPAGENAME}}}}]]''</td> </tr>|}}
|}<includeonly>{{#ifeq: {{NAMESPACE}} | User |[[Category:User subpages]] | {{#ifeq:{{{spoiler|}}}|true|[[Category:Spoilers]]|[[Category:{{#if:{{{GN|}}}|Graphic Novel}} Abilities{{#if:{{{sort|}}}|{{pipe}}{{{sort}}}}}]]}}}}</includeonly><noinclude>
|}<includeonly>{{#ifeq: {{NAMESPACE}} | User |[[Category:User subpages]] | {{#ifeq:{{{spoiler|}}}|true|[[Category:Spoilers]]|[[Category:{{#if:{{{GN|}}}|Graphic Novel}} Abilities{{#if:{{{sort|}}}|{{pipe}}{{{sort}}}}}]]}}}}</includeonly><noinclude>



Revision as of 06:10, 27 November 2008

Infobox power

Usage

Produces a right-floated infobox for powers and adds category: powers. Will auto-add {{noimage}} if image= is left blank. Automatically adds Category:Abilities or Category:Graphic Novel Abilities is GN is set true.

{{Infobox power
| image = <!-- Image link -->
| caption = <!-- Caption for image -->
| held by = <!-- Unlinked space for who holds the power -->
| absorbed by = <!-- Unlinked space for who has absorbed the power -->
| ability to = <!-- Insert power's definition here -->
| spoiler = <!--true for spoiler colors -->
| GN = <!--anything if this is a GN-specific ability-->
| sort = <!--optional sortkey for category-->
}}