Verdant Skies Wiki
(new template)
 
m (optional 2)
Line 1: Line 1:
<includeonly><span class="item">[[File:{{{1}}}.png|64x64px|link={{{1}}}]] [[{{{1}}}]] x{{{2}}}</span></includeonly><noinclude>{{Doc}}</noinclude>
+
<includeonly><span class="item">[[File:{{{1}}}.png|64x64px|link={{{1}}}]] [[{{{1}}}]]{{#if:{{{2|}}}| x{{{2}}}}}</span></includeonly><noinclude>{{Doc}}</noinclude>

Revision as of 19:56, 22 January 2018

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.png Butter
{{Item|Milk|15}} Milk.png Milkx15
{{Item|Milk|link=Butter}} Milk.png Milk
{{Item|Milk|link=none}} Milk.png Milk
{{Item|Painting 1|name=Painting #1}} Painting 1.png Painting 1