Verdant Skies Wiki
m (add new name parameter for alt link text)
m (fix alt link text param)
 
Line 1: Line 1:
<includeonly><span class="item">[[File:{{{1}}}.png|{{{3|64}}}x{{{3|64}}}px|link={{#ifeq:{{{link}}}|none||{{{link|{{{1}}}}}}|{{{1}}}}}]]{{#ifeq: {{{link}}}|none||[[{{{link|{{{1}}}}}}|{{{1|{{{name}}}}}}]]}} {{#if:{{{2|}}}| x{{{2}}}}}</span></includeonly><noinclude>{{Doc}}[[Category:Formatting templates]]</noinclude>
+
<includeonly><span class="item">[[File:{{{1}}}.png|{{{3|64}}}x{{{3|64}}}px|link={{#ifeq:{{{link}}}|none||{{{link|{{{1}}}}}}|{{{1}}}}}]]{{#ifeq: {{{link}}}|none||[[{{{link|{{{1}}}}}}|{{{name|{{{1|}}}}}}]]}} {{#if:{{{2|}}}| x{{{2}}}}}</span></includeonly><noinclude>{{Doc}}[[Category:Formatting templates]]</noinclude>

Latest revision as of 18:02, 14 June 2020

Template-info.png Documentation

This template is used to display inline items with their icon.

Parameters

  • 1: The name of the item. This is used for the image link, at 1.png.
  • 2: (Optional) The number of this item to display. Omit to not include a quantity.
  • 3: (Optional) The size in pixels. Include only the number. For example, 32.
  • link: (Optional) Set the page that the link will link to. Set to none for no link. The link title will be 1.
  • name: (Optional) Set alternative link text. Defaults to 1.

Examples

You type You get
{{Item|Butter|3=32}} Butter.pngButter
{{Item|Milk|15}} Milk.pngMilk x15
{{Item|Milk|link=Butter}} Milk.pngMilk
{{Item|Milk|link=none}} Milk.png
{{Item|Painting 1|name=Painting #1}} Painting 1.pngPainting #1