Difference between revisions of "Template:Damagetype"

From Underrail Wiki
Jump to navigation Jump to search
m
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<span style="color:{{
+
<span style="cursor:help; opacity:0.7; text-shadow:1px 1px #000, 0 1px #000, -1px 1px #000, 1px 0 #000, 0 0 #000, -1px 0 #000, 1px -1px #000, 0 -1px #000, -1px -1px #000, 0 0 #000; color:{{
#switch:{{{1}}}
+
#switch: {{{1}}}
| #default    = white
+
| #default    = inherit
| Mechanical  = white
+
| Mechanical  = {{TimelapseColors|DamageColors.DamageType.Mechanical}}
| Heat        = orangered
+
| Heat        = {{TimelapseColors|DamageColors.DamageType.Heat}}
| Cold        = lightblue
+
| Cold        = {{TimelapseColors|DamageColors.DamageType.Cold}}
| Electricity = yellow
+
| Electricity = {{TimelapseColors|DamageColors.DamageType.Electricity}}
| Acid        = green
+
| Acid        = {{TimelapseColors|DamageColors.DamageType.Acid}}
| Energy      = aqua
+
| Energy      = {{TimelapseColors|DamageColors.DamageType.Energy}}
| Bio        = olive
+
| Bio        = {{TimelapseColors|DamageColors.DamageType.Bio}}
}}; opacity:0.6;" title="Damage type: {{{1}}}">{{{1}}}{{#if:{{{2|}}}|&#58; {{{2}}}}}</span><noinclude>
+
}};" title="Damage type: {{{1}}}">{{
 +
#switch: {{{3|}}}
 +
| #default              = {{{1|damagetype}}}{{#if: {{{2|}}} | &#58; {{{2|number}}} | }}
 +
| number only | no affix = {{{2|damage number}}}
 +
| number first | prefix  = {{{2|damage number}}} {{{1|damagetype}}}
 +
| number last  | suffix  = {{{1|damagetype}}}: {{{2|damage number}}}
 +
}}</span><noinclude>
  
 
{{documentation}}</noinclude>
 
{{documentation}}</noinclude>

Latest revision as of 04:03, 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?)
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)