Template:ItemCard: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(quantity in the millions rounding) |
mNo edit summary |
||
Line 13: | Line 13: | ||
Outputs an image of the item that links back to its page. |
Outputs an image of the item that links back to its page. |
||
==Usage== |
==Usage== |
||
<code><nowiki>{{ItemCard|Name[|32px[|text=AltName][|block]]}}</nowiki></code> |
<code><nowiki>{{ItemCard|Name[|32px[|text=AltName][|block]][|quantity=1]}}</nowiki></code> |
||
==Options== |
==Options== |
||
*<code>32px</code>: image size with statement format corresponding to MediaWiki File size style (''32px'' for set width, ''x32px'' for set height, ''32x32px'' for arbitrary scaling); should be a width only value if using <code>block</code> output |
*<code>32px</code>: image size with statement format corresponding to MediaWiki File size style (''32px'' for set width, ''x32px'' for set height, ''32x32px'' for arbitrary scaling); should be a width only value if using <code>block</code> output |
||
Line 27: | Line 27: | ||
{{ItemCard|Wavecat Pillow}} |
{{ItemCard|Wavecat Pillow}} |
||
{{ItemCard|Teddy Bear with Bow|quantity=95}} |
|||
</noinclude> |
</noinclude> |
Revision as of 11:56, 12 June 2022
Outputs an image of the item that links back to its page.
Usage
{{ItemCard|Name[|32px[|text=AltName][|block]][|quantity=1]}}
Options
32px
: image size with statement format corresponding to MediaWiki File size style (32px for set width, x32px for set height, 32x32px for arbitrary scaling); should be a width only value if usingblock
outputtext
: alternative item name to display. Usetext=
to disable text output entirelyquantity
: EXPERIMENTAL prefix the item icon with a quantity, intended for inline use with default sizeblock
: display card as a block element the width of the icon, with item name underneath