Template:ItemCard: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
No edit summary |
(documented) |
||
Line 9: | Line 9: | ||
*<code>block</code>: display card as a block element the width of the icon, with item name underneath |
*<code>block</code>: display card as a block element the width of the icon, with item name underneath |
||
==Examples== |
==Examples== |
||
{{ItemCard| |
{{ItemCard|Teddy Bear with Bow|90px|block}} |
||
{{ItemCard|Wavecat Pillow|64px}} |
|||
{{ItemCard|Wavecat Pillow|48px}} |
|||
{{ItemCard|Wavecat Pillow|32px|text=AltName}} |
|||
{{ItemCard|Wavecat Pillow| |
{{ItemCard|Wavecat Pillow|64px}}{{ItemCard|Wavecat Pillow|48px|text=AltName}}{{ItemCard|Wavecat Pillow}} |
||
</noinclude> |
</noinclude> |
Revision as of 12:15, 20 February 2022
Outputs an image of the item that links back to its page.
Usage
{{ItemCard|Name[|32px[|text=AltName][|block]]}}
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 entirelyblock
: display card as a block element the width of the icon, with item name underneath
Examples
Wavecat Pillow
AltName
Wavecat Pillow