Difference between revisions of "Template:Damagetype subtemplate"

From EVE University Wiki
Jump to: navigation, search
(Created page with "<includeonly>{{#switch: {{{1}}} |Em |EM |em= <span style="width:50px;display:inline-block;background:#1b1f29"><span style="position:relative;top:-2px;left:3px">{{icon|em damag...")
 
m (Make switch case insensitive)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<includeonly>{{#switch: {{{1}}}
+
<includeonly>{{#switch: {{lc: {{{1}}} }}
|Em
+
| 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
+
| 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>
|em= <span style="width:50px;display:inline-block;background:#1b1f29"><span style="position:relative;top:-2px;left:3px">{{icon|em damage|16|Electromagnetic damage}}</span> EM</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>
|Ex
+
| ki
|EX
+
| 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>
|ex= <span style="width:50px;display:inline-block;background:#262519"><span style="position:relative;top:-2px;left:3px">{{icon|ex damage|16|Explosive damage}}</span> Ex</span>
+
| omni
|Th
+
| 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>
|TH
 
|th= <span style="width:50px;display:inline-block;background:#291616"><span style="position:relative;top:-2px;left:3px">{{icon|th damage|16|Thermal damage}}</span> Th</span>
 
|Kin
 
|KIN
 
|kin
 
|KI
 
|Ki
 
|ki= <span style="width:50px;display:inline-block;background:#201f1f"><span style="position:relative;top:-2px;left:3px">{{icon|ki damage|16|Kinetic damage}}</span> Kin</span>
 
|omni
 
|Omni
 
|All
 
|all=<span style="width:100px;display:inline-block;background:#191616"><span style="position:relative;top:-2px;left:3px">{{icon|em damage|16|Electromagnetic damage}}{{icon|th damage|16|Thermal damage}}{{icon|ki damage|16|Kinetic damage}}{{icon|ex damage|16|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 17:31, 19 April 2022

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?)