- 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 |
m (replaced "Empty Equipment Card" file) |
||
(One intermediate revision by the same user not shown) | |||
Line 5: | Line 5: | ||
<pre> | <pre> | ||
{{ItemStack | {{ItemStack | ||
− | |item = [[File:Improvement | + | |item = [[File:Item Icon Improvement Material.png{{!}}50px{{!}}link=]] |
|text = x7 | |text = x7 | ||
}} | }} | ||
</pre> | </pre> | ||
{{ItemStack | {{ItemStack | ||
− | |item = [[File:Improvement | + | |item = [[File:Item Icon Improvement Material.png{{!}}50px{{!}}link=]] |
|text = x7 | |text = x7 | ||
}} | }} | ||
;Main arguments | ;Main arguments | ||
:<code><nowiki>item</nowiki></code> | :<code><nowiki>item</nowiki></code> | ||
− | ::The background image. Default value is [[File:Empty | + | ::The background image. Default value is [[File:Empty Equipment Card.png|50px|link=]] |
:<code><nowiki>text</nowiki></code> | :<code><nowiki>text</nowiki></code> | ||
::The overlay text (images and audio also work). Defaults to <code>default-text</code> or empty string. | ::The overlay text (images and audio also work). Defaults to <code>default-text</code> or empty string. | ||
Line 42: | Line 42: | ||
::Set the position of the clickbox | ::Set the position of the clickbox | ||
− | ;Custom usage with [[Template: | + | ;Custom usage with [[Template:Equipment/Card]] |
<pre> | <pre> | ||
{{ItemStack | {{ItemStack | ||
− | |item = {{ | + | |item = {{Equipment/Card|Prototype 51cm Twin Gun Mount|size=100px}} |
|text-position = bottom:-40px;right:6px; | |text-position = bottom:-40px;right:6px; | ||
|font-size = 18px | |font-size = 18px | ||
Line 55: | Line 55: | ||
</pre> | </pre> | ||
{{ItemStack | {{ItemStack | ||
− | |item = {{ | + | |item = {{Equipment/Card|Prototype 51cm Twin Gun Mount|size=100px}} |
|text-position = bottom:-40px;right:6px; | |text-position = bottom:-40px;right:6px; | ||
|font-size = 18px | |font-size = 18px | ||
Line 66: | Line 66: | ||
<pre> | <pre> | ||
{{ItemStack | {{ItemStack | ||
− | |item = {{ | + | |item = {{Ship/Card|Ikazuchi/Kai|size=218px}} |
|position = left:130px; | |position = left:130px; | ||
|{{ItemStack | |{{ItemStack | ||
− | |item = {{ | + | |item = {{Ship/Card|Hibiki/Kai|size=218px}} |
|position = left:130px; | |position = left:130px; | ||
|{{ItemStack | |{{ItemStack | ||
− | |item = {{ | + | |item = {{Ship/Card|Akatsuki/Kai|size=218px}} |
|position = left:130px; | |position = left:130px; | ||
|{{ItemStack | |{{ItemStack | ||
− | |item = {{ | + | |item = {{Ship/Card|Inazuma/Kai|size=218px}} |
|text = DesDiv6 | |text = DesDiv6 | ||
|text-position = bottom:-130px;right:5px | |text-position = bottom:-130px;right:5px | ||
Line 82: | Line 82: | ||
</pre> | </pre> | ||
{{ItemStack | {{ItemStack | ||
− | |item = {{ | + | |item = {{Ship/Card|Ikazuchi/Kai|size=218px}} |
|position = left:130px; | |position = left:130px; | ||
|{{ItemStack | |{{ItemStack | ||
− | |item = {{ | + | |item = {{Ship/Card|Hibiki/Kai|size=218px}} |
|position = left:130px; | |position = left:130px; | ||
|{{ItemStack | |{{ItemStack | ||
− | |item = {{ | + | |item = {{Ship/Card|Akatsuki/Kai|size=218px}} |
|position = left:130px; | |position = left:130px; | ||
|{{ItemStack | |{{ItemStack | ||
− | |item = {{ | + | |item = {{Ship/Card|Inazuma/Kai|size=218px}} |
|text = DesDiv6 | |text = DesDiv6 | ||
|text-position = bottom:-130px;right:5px | |text-position = bottom:-130px;right:5px | ||
Line 99: | Line 99: | ||
<pre> | <pre> | ||
{{ItemStack | {{ItemStack | ||
− | |item = {{ | + | |item = {{Ship/Card|Ikazuchi/Kai|size=218px}} |
|text-position = bottom:-135px;right:5px | |text-position = bottom:-135px;right:5px | ||
|text = [[File:Marriage Ring Icon.png]] | |text = [[File:Marriage Ring Icon.png]] | ||
Line 105: | Line 105: | ||
</pre> | </pre> | ||
{{ItemStack | {{ItemStack | ||
− | |item = {{ | + | |item = {{Ship/Card|Ikazuchi/Kai|size=218px}} |
|text-position = bottom:-135px;right:5px | |text-position = bottom:-135px;right:5px | ||
|text = [[File:Marriage Ring Icon.png]] | |text = [[File:Marriage Ring Icon.png]] | ||
}} | }} |
Latest revision as of 08:50, 17 October 2021
- 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:Item Icon Improvement Material.png{{!}}50px{{!}}link=]] |text = x7 }}
x7
- Main arguments
item
- The background image. Default value is
text
- The overlay text (images and audio also work). Defaults to
default-text
or empty string.
- The overlay text (images and audio also work). Defaults to
link
- Embedded link using clickbox overlay.
[1]
- Used for nested
ItemStack
calls, the generated element will be block-level.
- Used for 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 overlay generated by nested
ItemStack
call.
- Set the position of the overlay generated by nested
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
clickbox-opacity
- Set the opacity of clickbox from 0 to 1 (used for aligning clickbox). Default value is 0.
clickbox-size
- Set the size of the clickbox
clickbox-pos
- Set the position of the clickbox
- Custom usage with Template:Equipment/Card
{{ItemStack |item = {{Equipment/Card|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 = {{Ship/Card|Ikazuchi/Kai|size=218px}} |position = left:130px; |{{ItemStack |item = {{Ship/Card|Hibiki/Kai|size=218px}} |position = left:130px; |{{ItemStack |item = {{Ship/Card|Akatsuki/Kai|size=218px}} |position = left:130px; |{{ItemStack |item = {{Ship/Card|Inazuma/Kai|size=218px}} |text = DesDiv6 |text-position = bottom:-130px;right:5px |font-size = 20px }}}}}}}}
- Image overlay
{{ItemStack |item = {{Ship/Card|Ikazuchi/Kai|size=218px}} |text-position = bottom:-135px;right:5px |text = [[File:Marriage Ring Icon.png]] }}