Changes

Add documentation
;Description
:A template to generate stack counter for item icons.
:Interestingly, the two main arguments of this template will work with most (if not all) existing viewer templates and can be used as a generic way to overlay text.
;Standard usage with 50px item images
<pre>
{{ItemStack
|item = [[File:Improvement material.png{{!}}50px{{!}}link=]]
|text = x7
}}
</pre>
{{ItemStack
|item = [[File:Improvement material.png{{!}}50px{{!}}link=]]
|text = x7
}}
;Main arguments
:<code><nowiki>item</nowiki></code>
::The background image. Default value is [[File:Empty equipment card slot.png|50px|link=]]
:<code><nowiki>text</nowiki></code>
::The overlay text. Default value is なのです!
;Styling arguments
:<code><nowiki>font-size</nowiki></code>
::Set the size of the overlay text. Default value is 12px
:<code><nowiki>text-position</nowiki></code>
::Set the position of the overlay text. Default value is right:4px;bottom:-18px
:<code><nowiki>text-color</nowiki></code>
::Set the color of the text. Default value is f61
:<code><nowiki>glow-size</nowiki></code>
::Set the glow size of the text. Default value is 5px
:<code><nowiki>glow-color</nowiki></code>
::Set the color of the glow. Default value is fff

;Custom usage with [[Template:EquipmentCardKai]]
<pre>
{{ItemStack
|item = {{EquipmentCardKai|Prototype 51cm Twin Gun Mount|size=100px}}
|text-position = bottom:-40px;right:6px;
|font-size = 18px
|text = x9000
|glow-size = 15px
|text-color = fff
|glow-color = f00
}}
</pre>
{{ItemStack
|item = {{EquipmentCardKai|Prototype 51cm Twin Gun Mount|size=100px}}
|text-position = bottom:-40px;right:6px;
|font-size = 18px
|text = x9000
|glow-size = 8px
|text-color = fff
|glow-color = f00
}}
;Outside-of-the-box usage
<pre>
{{ItemStack
|item = {{ShipCardKai|Inazuma/Kai|layers=status_light_damage}}
|text = {{EquipmentGraphicKai|Prototype 51cm Twin Gun Mount}}
|text-position = bottom:-]130px
|font-size = 20px
}}
</pre>
{{ItemStack
|item = {{{ShipCardKai|Inazuma/Kai|layers=status_light_damage}}
|text = {{EquipmentGraphicKai|Prototype 51cm Twin Gun Mount}}
|text-position = bottom:-130px
|font-size = 20px
}}
cssedit, gkautomate
7,064

edits