Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Damagetype subtemplate: Difference between revisions

Template page
m Make switch case insensitive
Comment out background (color) to increase readability in light mode.
 
Line 1: Line 1:
<includeonly>{{#switch: {{lc: {{{1}}} }}
<includeonly>{{#switch: {{lc: {{{1}}} }}
| em = <span style="width:50px;display:inline-block;background:#1b1f29"><span style="position:relative;top:-2px;left:3px">[[File:Icon damage em.png|16px|Electromagnetic damage]]</span> EM</span>
| em = <span style="width:50px;display:inline-block;<!--background:#1b1f29-->"><span style="position:relative;top:-2px;left:3px">[[File:Icon damage em.png|16px|Electromagnetic damage]]</span> EM</span>
| ex = <span style="width:50px;display:inline-block;background:#262519"><span style="position:relative;top:-2px;left:3px">[[File:Icon damage exp.png|16px|Explosive damage]]</span> Ex</span>
| ex = <span style="width:50px;display:inline-block;<!--background:#262519-->"><span style="position:relative;top:-2px;left:3px">[[File:Icon damage exp.png|16px|Explosive damage]]</span> Ex</span>
| th = <span style="width:50px;display:inline-block;background:#291616"><span style="position:relative;top:-2px;left:3px">[[File:Icon damage therm.png|16px|Thermal damage]]</span> Th</span>
| th = <span style="width:50px;display:inline-block;<!--background:#291616-->"><span style="position:relative;top:-2px;left:3px">[[File:Icon damage therm.png|16px|Thermal damage]]</span> Th</span>
| ki
| ki
| kin = <span style="width:50px;display:inline-block;background:#201f1f"><span style="position:relative;top:-2px;left:3px">[[File:Icon damage kin.png|16px|Kinetic damage]]</span> Kin</span>
| kin = <span style="width:50px;display:inline-block;<!--background:#201f1f-->"><span style="position:relative;top:-2px;left:3px">[[File:Icon damage kin.png|16px|Kinetic damage]]</span> Kin</span>
| omni
| omni
| all = <span style="width:100px;display:inline-block;background:#191616"><span style="position:relative;top:-2px;left:3px">[[File:Icon damage em.png|16px|Electromagnetic damage]][[File:Icon damage therm.png|16px|Thermal damage]][[File:Icon damage kin.png|16px|Kinetic damage]][[File:Icon damage exp.png|16px|Explosive damage]]</span> Omni</span>
| all = <span style="width:100px;display:inline-block;<!--background:#191616-->"><span style="position:relative;top:-2px;left:3px">[[File:Icon damage em.png|16px|Electromagnetic damage]][[File:Icon damage therm.png|16px|Thermal damage]][[File:Icon damage kin.png|16px|Kinetic damage]][[File:Icon damage exp.png|16px|Explosive damage]]</span> Omni</span>
|<span style="width:50px;display:inline-block;background:#191616">{{{1}}}</span> }}</includeonly><noinclude>
|<span style="width:50px;display:inline-block;<!--background:#191616-->">{{{1}}}</span> }}</includeonly><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Latest revision as of 07:59, 14 May 2025

Template documentation (for the above template, sometimes hidden or invisible)
Description
This template provides the contents for {{Damagetype}}. This should not be used alone.
Dependencies
Used by:
{{Damagetype}}
Syntax
{{Damagetype subtemplate|<damage type>}}
Parameters
damage type
The code for the damage to show. One of the following em for electromagnetic, ex for explosive, ki for kinetic or th for thermal.
Sample output
{{Damagetype subtemplate|Em}}
gives...
Electromagnetic damage EM
Visit Template:Damagetype subtemplate/doc to edit this text! (How does this work?) (Refresh this text - why?)