- Welcome to the Kancolle Wiki!
- If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord
Difference between revisions of "Template:ItemStack/doc"
Jump to navigation
Jump to search
m |
|||
Line 18: | Line 18: | ||
:<code><nowiki>text</nowiki></code> | :<code><nowiki>text</nowiki></code> | ||
::The overlay text. Default value is なのです! | ::The overlay text. Default value is なのです! | ||
+ | :<code><nowiki>[1]</nowiki></code> | ||
+ | ::The non-text overlay (e.g. image or nested <code><nowiki>ItemStack</nowiki></code> call). | ||
;Styling arguments | ;Styling arguments | ||
:<code><nowiki>font-size</nowiki></code> | :<code><nowiki>font-size</nowiki></code> | ||
Line 23: | Line 25: | ||
:<code><nowiki>text-position</nowiki></code> | :<code><nowiki>text-position</nowiki></code> | ||
::Set the position of the overlay text. Default value is right:4px;bottom:-18px | ::Set the position of the overlay text. Default value is right:4px;bottom:-18px | ||
+ | :<code><nowiki>position</nowiki></code> | ||
+ | ::Set the position of the non-text overlay. | ||
:<code><nowiki>text-color</nowiki></code> | :<code><nowiki>text-color</nowiki></code> | ||
::Set the color of the text. Default value is f61 | ::Set the color of the text. Default value is f61 | ||
Line 55: | Line 59: | ||
{{ItemStack | {{ItemStack | ||
|item = {{ShipCardKai|Ikazuchi/Kai}} | |item = {{ShipCardKai|Ikazuchi/Kai}} | ||
− | | | + | |position = left:130px; |
− | |item = {{ShipCardKai|Hibiki/Kai}} | + | |{{ItemStack |
− | | | + | |item = {{ShipCardKai|Hibiki/Kai}} |
− | |item = {{ShipCardKai|Akatsuki/Kai}} | + | |position = left:130px; |
− | | | + | |{{ItemStack |
− | |item = {{ShipCardKai|Inazuma/Kai}} | + | |item = {{ShipCardKai|Akatsuki/Kai}} |
− | |text = DesDiv6 | + | |position = left:130px; |
− | |text-position = bottom:-130px;right:5px | + | |{{ItemStack |
− | |font-size = 20px | + | |item = {{ShipCardKai|Inazuma/Kai}} |
− | }} | + | |text = DesDiv6 |
− | + | |text-position = bottom:-130px;right:5px | |
− | + | |font-size = 20px | |
− | }} | + | }} |
− | + | }} | |
− | + | }} | |
− | }} | ||
− | |||
− | |||
}} | }} | ||
</pre> | </pre> | ||
{{ItemStack | {{ItemStack | ||
|item = {{ShipCardKai|Ikazuchi/Kai}} | |item = {{ShipCardKai|Ikazuchi/Kai}} | ||
− | | | + | |position = left:130px; |
− | |item = {{ShipCardKai|Hibiki/Kai}} | + | |{{ItemStack |
− | | | + | |item = {{ShipCardKai|Hibiki/Kai}} |
− | |item = {{ShipCardKai|Akatsuki/Kai}} | + | |position = left:130px; |
− | | | + | |{{ItemStack |
− | |item = {{ShipCardKai|Inazuma/Kai}} | + | |item = {{ShipCardKai|Akatsuki/Kai}} |
− | |text = DesDiv6 | + | |position = left:130px; |
− | |text-position = bottom:-130px;right:5px | + | |{{ItemStack |
− | |font-size = 20px | + | |item = {{ShipCardKai|Inazuma/Kai}} |
− | }} | + | |text = DesDiv6 |
− | + | |text-position = bottom:-130px;right:5px | |
− | + | |font-size = 20px | |
− | }} | + | }} |
− | + | }} | |
− | + | }} | |
− | }} | ||
− | |||
− | |||
}} | }} |
Revision as of 15:53, 19 October 2015
- 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
{{ItemStack |item = [[File:Improvement material.png{{!}}50px{{!}}link=]] |text = x7 }}
50pxx7
- Main arguments
item
- The background image. Default value is 50px
text
- The overlay text. Default value is なのです!
[1]
- The non-text overlay (e.g. image or nested
ItemStack
call).
- The non-text overlay (e.g. image or nested
- Styling arguments
font-size
- Set the size of the overlay text. Default value is 12px
text-position
- Set the position of the overlay text. Default value is right:4px;bottom:-18px
position
- Set the position of the non-text overlay.
text-color
- Set the color of the text. Default value is f61
glow-size
- Set the glow size of the text. Default value is 5px
glow-color
- Set the color of the glow. Default value is fff
- Custom usage with Template:EquipmentCardKai
{{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 }}
- Nesting template usage
{{ItemStack |item = {{ShipCardKai|Ikazuchi/Kai}} |position = left:130px; |{{ItemStack |item = {{ShipCardKai|Hibiki/Kai}} |position = left:130px; |{{ItemStack |item = {{ShipCardKai|Akatsuki/Kai}} |position = left:130px; |{{ItemStack |item = {{ShipCardKai|Inazuma/Kai}} |text = DesDiv6 |text-position = bottom:-130px;right:5px |font-size = 20px }} }} }} }}
Template:ShipCardKaiTemplate:ShipCardKaiTemplate:ShipCardKaiTemplate:ShipCardKaiDesDiv6