Difference between revisions of "Template:Damagetype"
Jump to navigation
Jump to search
WikimanBot (talk | contribs) m |
WikimanBot (talk | contribs) m (using TimelapseColors) |
||
Line 2: | Line 2: | ||
#switch: {{{1}}} | #switch: {{{1}}} | ||
| #default = inherit | | #default = inherit | ||
− | | Mechanical = | + | | Mechanical = {{TimelapseColors|DamageColors.DamageType.Mechanical}} |
− | | Heat = | + | | Heat = {{TimelapseColors|DamageColors.DamageType.Heat}} |
− | | Cold = | + | | Cold = {{TimelapseColors|DamageColors.DamageType.Cold}} |
− | | Electricity = | + | | Electricity = {{TimelapseColors|DamageColors.DamageType.Electricity}} |
− | | Acid = | + | | Acid = {{TimelapseColors|DamageColors.DamageType.Acid}} |
− | | Energy = | + | | Energy = {{TimelapseColors|DamageColors.DamageType.Cyan}} |
− | | Bio = | + | | Bio = {{TimelapseColors|DamageColors.DamageType.Bio}} |
}};" title="Damage type: {{{1}}}">{{ | }};" title="Damage type: {{{1}}}">{{ | ||
#switch: {{{3|}}} | #switch: {{{3|}}} |
Revision as of 03:54, 2 July 2019
damagetype
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: 5-10{{Cold|8-10|number only}}
results in 8-10{{Electricity|127|prefix}}
results in 127 Electricity{{Acid|25-50|suffix}}
results in Acid: 25-50 (same as no second parameter){{Energy|???}}
results in Energy: ??? (first parameter can be anything){{Bio|(biological)|no affix}}
results in (biological) (first parameter can be anything)