Difference between revisions of "Template:Damagetype"
From EVE University Wiki
m (colortest) |
(colorcoding) |
||
Line 1: | Line 1: | ||
− | <includeonly | + | <includeonly>{{#switch: {{{1}}} |
|Em | |Em | ||
|EM | |EM | ||
− | |em= <span style="position:relative;top:-2px;left:3px">{{icon|em damage|16|Electromagnetic damage}}</span> EM | + | |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> |
|Ex | |Ex | ||
|EX | |EX | ||
− | |ex= <span style="position:relative;top:-2px;left:3px">{{icon|ex damage|16|Explosive damage}}</span> Ex | + | |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> |
|Th | |Th | ||
|TH | |TH | ||
− | |th= <span style="position:relative;top:-2px;left:3px">{{icon|th damage|16|Thermal damage}}</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 | |KIN | ||
Line 14: | Line 14: | ||
|KI | |KI | ||
|Ki | |Ki | ||
− | |ki= <span style="position:relative;top:-2px;left:3px | + | |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 | ||
|Omni | |Omni | ||
|All | |All | ||
− | |all= Omni | + | |all=<span style="width:50px;display:inline-block;background:#191616"> Omni</span> |
− | |<span style="width:50px;display:inline-block;background:# | + | |<span style="width:50px;display:inline-block;background:#191616">{{{1}}}</span> }}{{#if:{{{2|}}} |
+ | |{{#switch: {{{2}}} | ||
|Em | |Em | ||
|EM | |EM | ||
− | |em= <span style="position:relative;top:-2px;left:3px">{{icon|em damage|16|Electromagnetic damage}}</span> EM | + | |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> |
|Ex | |Ex | ||
|EX | |EX | ||
− | |ex= <span style="position:relative;top:-2px;left:3px">{{icon|ex damage|16|Explosive damage}}</span> Ex | + | |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> |
|Th | |Th | ||
|TH | |TH | ||
− | |th= <span style="position:relative;top:-2px;left:3px">{{icon|th damage|16|Thermal damage}}</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 | |KIN | ||
Line 34: | Line 35: | ||
|KI | |KI | ||
|Ki | |Ki | ||
− | |ki= <span style="position:relative;top:-2px;left:3px">{{icon|ki damage|16|Kinetic damage}}</span> Kin | + | |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 | ||
|Omni | |Omni | ||
|All | |All | ||
− | |all= Omni | + | |all=<span style="width:50px;display:inline-block;background:#0f0f0f"> Omni</span> |
− | |<span style="width:50px;display:inline-block;background:# | + | |<span style="width:50px;display:inline-block;background:#0f0f0f">{{{1}}}</span> }}}}{{#if:{{{3|}}} |
+ | |{{#switch: {{{3}}} | ||
|Em | |Em | ||
|EM | |EM | ||
− | |em= <span style="position:relative;top:-2px;left:3px">{{icon|em damage|16|Electromagnetic damage}}</span> EM | + | |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> |
|Ex | |Ex | ||
|EX | |EX | ||
− | |ex= <span style="position:relative;top:-2px;left:3px">{{icon|ex damage|16|Explosive damage}}</span> Ex | + | |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> |
|Th | |Th | ||
|TH | |TH | ||
− | |th= <span style="position:relative;top:-2px;left:3px">{{icon|th damage|16|Thermal damage}}</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 | |KIN | ||
Line 54: | Line 56: | ||
|KI | |KI | ||
|Ki | |Ki | ||
− | |ki= <span style="position:relative;top:-2px;left:3px">{{icon|ki damage|16|Kinetic damage}}</span> Kin | + | |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 | ||
|Omni | |Omni | ||
|All | |All | ||
− | |all= Omni}}</span>}}</includeonly><noinclude> | + | |all=<span style="width:50px;display:inline-block;background:#0f0f0f"> Omni</span> |
+ | |<span style="width:50px;display:inline-block;background:#0f0f0f">{{{1}}}</span> }}}}</includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 18:34, 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
- 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
gives...{{Damagetype|ki|th|em}}