Difference between revisions of "Template:Damagetype"

From EVE University Wiki
Jump to: navigation, search
(Removed /)
(Offsets back in)
Line 1: Line 1:
<includeonly><span style="width:50px;display:inline-block">{{#switch: {{{1}}}
+
<includeonly><span style="width:50;display:inline-block;background:#191616">{{#switch: {{{1}}}
 
|Em
 
|Em
 
|EM
 
|EM
|em={{icon|em damage|16|Electromagnetic damage}} EM
+
|em<span style="position:relative;top:-2px;left:3px">={{icon|em damage|16|Electromagnetic damage}}</span> EM
 
|Ex
 
|Ex
 
|EX
 
|EX
|ex={{icon|ex damage|16|Explosive damage}} Ex
+
|ex<span style="position:relative;top:-2px;left:3px">={{icon|ex damage|16|Explosive damage}}</span> Ex
 
|Th
 
|Th
 
|TH
 
|TH
|th={{icon|th damage|16|Thermal damage}} Th
+
|th<span style="position:relative;top:-2px;left:3px">={{icon|th damage|16|Thermal damage}}</span> Th
 
|Kin
 
|Kin
 
|KIN
 
|KIN
Line 14: Line 14:
 
|KI
 
|KI
 
|Ki
 
|Ki
|ki={{icon|ki damage|16|Kinetic damage}} Kin
+
|ki<span style="position:relative;top:-2px;left:3px">={{icon|ki damage|16|Kinetic damage}}</span> Kin
 
|omni
 
|omni
 
|Omni
 
|Omni
 
|All
 
|All
 
|all=&nbsp;Omni}}</span>{{#if:{{{2|}}}
 
|all=&nbsp;Omni}}</span>{{#if:{{{2|}}}
|<span style="width:50px;display:inline-block">{{#switch: {{{2}}}
+
|<span style="width:50px;display:inline-block;background:#291616">{{#switch: {{{2}}}
 
|Em
 
|Em
 
|EM
 
|EM
|em={{icon|em damage|16|Electromagnetic damage}} EM
+
|em<span style="position:relative;top:-2px;left:3px">={{icon|em damage|16|Electromagnetic damage}}</span> EM
 
|Ex
 
|Ex
 
|EX
 
|EX
|ex={{icon|ex damage|16|Explosive damage}} Ex
+
|ex<span style="position:relative;top:-2px;left:3px">={{icon|ex damage|16|Explosive damage}}</span> Ex
 
|Th
 
|Th
 
|TH
 
|TH
|th={{icon|th damage|16|Thermal damage}} Th
+
|th<span style="position:relative;top:-2px;left:3px">={{icon|th damage|16|Thermal damage}}</span> Th
 
|Kin
 
|Kin
 
|KIN
 
|KIN
Line 34: Line 34:
 
|KI
 
|KI
 
|Ki
 
|Ki
|ki={{icon|ki damage|16|Kinetic damage}} Kin
+
|ki<span style="position:relative;top:-1px;left:3px">={{icon|ki damage|16|Kinetic damage}}</span> Kin
 
|omni
 
|omni
 
|Omni
 
|Omni
 
|All
 
|All
 
|all=&nbsp;Omni}}</span>}}{{#if:{{{3|}}}
 
|all=&nbsp;Omni}}</span>}}{{#if:{{{3|}}}
|<span style="width:50px;display:inline-block">{{#switch: {{{3}}}
+
|<span style="width:50px;display:inline-block;background:#391616">{{#switch: {{{3}}}
 
|Em
 
|Em
 
|EM
 
|EM
|em={{icon|em damage|16|Electromagnetic damage}} EM
+
|em<span style="position:relative;top:-2px;left:3px">={{icon|em damage|16|Electromagnetic damage}}</span> EM
 
|Ex
 
|Ex
 
|EX
 
|EX
|ex={{icon|ex damage|16|Explosive damage}} Ex
+
|ex<span style="position:relative;top:-2px;left:3px">={{icon|ex damage|16|Explosive damage}}</span> Ex
 
|Th
 
|Th
 
|TH
 
|TH
|th={{icon|th damage|16|Thermal damage}} Th
+
|th<span style="position:relative;top:-2px;left:3px">={{icon|th damage|16|Thermal damage}}</span> Th
 
|Kin
 
|Kin
 
|KIN
 
|KIN
Line 54: Line 54:
 
|KI
 
|KI
 
|Ki
 
|Ki
|ki={{icon|ki damage|16|Kinetic damage}} Kin
+
|ki<span style="position:relative;top:-1px;left:3px">={{icon|ki damage|16|Kinetic damage}}</span> Kin
 
|omni
 
|omni
 
|Omni
 
|Omni

Revision as of 18:09, 18 October 2017

Template documentation (for the above template, sometimes hidden or invisible)
Description
This template is used to show a graphic representation of one or more damage types.
Dependencies
uses
{{Damagetype subtemplate}}
Used by
{{Damage to deal}}
{{Damage to resist}}
Syntax
{{Damagetype|<damage type>|<damage type>|<damage type>|<damage type>|<damage type>}}
Parameters
damage type
The code for the damage type to show. One or more of the following em for electromagnetic, ex for explosive, ki for kinetic, th for thermal or omni/all for all damage types. Up to five separate damage types can be specified at once.
Sample output
{{Damagetype|ki|th|em}}
gives...
Visit Template:Damagetype/doc to edit this text! (How does this work?) (Refresh this text - why?)