Template:ItemCard: Difference between revisions

From Blue Archive Wiki
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 using block output
  • text: alternative item name to display. Use text= to disable text output entirely
  • quantity: EXPERIMENTAL prefix the item icon with a quantity, intended for inline use with default size
  • block: display card as a block element the width of the icon, with item name underneath

Examples

Teddy Bear with BowTeddy Bear with Bow

Wavecat PillowWavecat Pillow

AltNameAltName

Wavecat PillowWavecat Pillow

95Teddy Bear with BowTeddy Bear with Bow