Difference between revisions of "Template:Damagetype"
Jump to navigation
Jump to search
WikimanBot (talk | contribs) m (made damage types blend into other text better) |
WikimanBot (talk | contribs) (moved damage type color info to this template for ease of modification) |
||
Line 1: | Line 1: | ||
− | <span style="color:{{{1}}}; opacity:0.6; text-shadow:2px 2px 0px black;" title="Damage type: {{{ | + | <span style="color:{{ |
+ | #switch:{{{1}}} | ||
+ | | #default = white | ||
+ | | Mechanical = white | ||
+ | | Heat = orangered | ||
+ | | Cold = lightblue | ||
+ | | Electricity = yellow | ||
+ | | Acid = green | ||
+ | | Energy = aqua | ||
+ | | Bio = lightgreen | ||
+ | }}; opacity:0.6; text-shadow:2px 2px 0px black;" title="Damage type: {{{1}}}">{{{1}}}</span><noinclude> | ||
{{documentation}}</noinclude> | {{documentation}}</noinclude> |
Revision as of 11:01, 30 October 2014
{{{1}}}
Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit Template:Damagetype/doc to view this documentation. (edit) (How does this work?)
Visit Template:Damagetype/doc to view this documentation. (edit) (How does this work?)
- Description
- This template is used for styling of damage types. It is used by templates {{Mechanical}}, {{Heat}}, {{Cold}}, {{Electricity}}, {{Acid}}, {{Energy}}, {{Bio}}.
- Syntax
- Insert this template using one of the damage type names:
{{Mechanical}}
,{{Heat}}
,{{Cold}}
,{{Electricity}}
,{{Acid}}
,{{Energy}}
,{{Bio}}
- Takes optional first parameter (anything goes)
- Takes optional second parameter (number only / no affix, number first / prefix, number last / suffix)
- Example
{{Mechanical}}
results in Mechanical{{Heat|5-10}}
results in Heat{{Cold|8-10|number only}}
results in Cold{{Electricity|127|prefix}}
results in Electricity{{Acid|25-50|suffix}}
results in Acid (same as no second parameter){{Energy|???}}
results in Energy (first parameter can be anything){{Bio|(biological)|no affix}}
results in Bio (first parameter can be anything)