Template:ItemCard: Difference between revisions

From Blue Archive Wiki
Jump to navigation Jump to search
Content added Content deleted
mNo edit summary
mNo edit summary
Line 2: Line 2:
tables=items
tables=items
|fields= CONCAT(Icon, '{{!}}', NameEN, '{{!}}', _pageName)=Item
|fields= CONCAT(Icon, '{{!}}', NameEN, '{{!}}', _pageName)=Item
|where=items.NameEN = '{{{1|}}}'
|where=items.NameEN = "{{{1|}}}"
|limit=1
|limit=1
|intro=
|intro=
Line 21: Line 21:
==Examples==
==Examples==
{{ItemCard|Teddy Bear with Bow|90px|block}}
{{ItemCard|Teddy Bear with Bow|90px|block}}

{{ItemCard|Wavecat Pillow|64px}}{{ItemCard|Wavecat Pillow|48px|text=AltName}}{{ItemCard|Wavecat Pillow}}
{{ItemCard|Wavecat Pillow|64px}}{{ItemCard|Wavecat Pillow|48px|text=AltName}}{{ItemCard|Wavecat Pillow}}
</noinclude>
</noinclude>

Revision as of 08:22, 7 May 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 using block output
  • text: alternative item name to display. Use text= to disable text output entirely
  • 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