Template:Item/doc

From wizzypedia
Revision as of 18:50, 5 July 2022 by Mwazir (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

An all-in-one template for display item name/icon/link.

By default, displays a link to the item and adds an item icon in front of it.

Usage

All parameters are optional. Despite this, some combinations are invalid and may cause errors, e.g. {{item|icons=no|mode=image}}

See examples below for more details.

unnamed parameter 1

Default item display name, link target, and image file name. If unspecified, will try to retrieve it from {{{id}}}.

unnamed Parameter 2

Custom link text, which can include line breaks (<br />) and other wikitext. If an 's', 'es', 'ies' or 'ves' is passed as the custom text, it will be appended to the end of the item name. Pluralism is partially intuitive - adding 's' to Butterfly will return Butterflies. For non-english language, auto translation will be applied.

t

Custom link text, it will override unnamed Parameter 2, and it will be displayed as-is, without plural processing and auto translation.

mode

Display mode. It can be:

  • image(Preferred) or imageonly or onlyimage means only image will be displayed;
  • text(Preferred) or noimage means no image will be displayed;
  • table(Preferred) or 2-cell will output 2 cells code for table. This is roughly a shortcut for {{item|mode=image|itemname}} || {{item|mode=text|itemname}}

Use preferred values as much as possible to get the best performance.

image

image filename, no brackets nor "File:"(must include file extension, eg. Parrot.png).

You can specify multiple images, just separate filenames with slashes(eg. Parrot.png/Parrot (placed).png).

size

Custom graphic size (Read Extended image syntax for details).

You can specify multiple sizes, just separated with slashes(eg. 32px/24x24px).

When multiple images specified:

    • If only one size specified, it will apply to all images
    • if size is less then image, extra images will be displayed as if they don't have size argument
    • if size is more then image, extra sizes will simply be ignored.

And you can append it with *[factor] to scale image, e.g. 24x24px*0.5, 24px*0.5/24px*2 ...

scale

Image(s) will be scaled based on size and scale. e.g. |size=32x32px|scale=0.5 is equal to |size=16x16px. This will multiply with scale factor in size parameter, |size=32x32px*0.5|scale=0.5 is equal to |size=8x8px. scale can be set by options.

maxsize

Image size limit. Using standard image size syntax, eg. 32px/24x24px. will be applied after scale.

ext

image file extension, default is png. Only valid when there is no image input.

link

Custom link target. If blank given(i.e. |link=|), it will be no link(See example below). Note: eicons also will base on link first.

nolink = y/yes

Same as |link=|, only valid when there is no link input. If you use |link=somelink|nolink=y, it will be ignored.

anchor = y/yes

If set, will create an anchor for {{{1}}}.

note

Extra note text. By default, it will be displayed as smaller and gray text between item name and platform icons , and without link on it.

note2

Another note text. By default, it will be displayed as gray txt in normal size, without link, and always take a single line.

bignote

Another note text. It will always be displayed after all other text block.

wrap = y/yes

Only valid when there is no id= or note2= input. If set, platform icons and/or note will be displayed in new line.

icons = n/no/y/yes/<icons content>

n/no=suppresses the platform icons; default is yes; other values will completely override platform icons part, in this case, the value of this parameter should/must usually be {{eicons}}, see examples below.

small = y/yes

Reduces the size of the platform icons (useful when space is an issue).

id

Number, will display items(or other type) ID information.

type

the type of ID, case-insensitive, default is item, only valid when id is specified. can be tile, wall, npc, mount, buff, debuff, projectile, or armor. All other values are treated as item.

showid = y/yes/n/no

Explicitly turn on/off id display. Default is on when id is set, off when id is not set. If showid is turned on and id is not set, will auto retrieve id from database (using data templates such as {{itemIdFromName}}, according to value of type).

class

Custom Css class(es). There're some predefined classes for certain formatting purpose(see examples below). You can add yours if needed.

css or style

Custom css style rules.

Examples

Basic

Result Code Note
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Bed}} Basic usage.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Format:C}} ":" in item name.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Weapon Imbue: Venom}} ": " in item name.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Bed|Any Bed}} Custom text.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Bed|Any [[Beds|Bed]]}} Custom text with link. Note the difference between link target of image and link target of text.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{#vardefine:__lang|{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Psycho Knife|s}} {{item|Butterfly|s}} plural.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|id=24}} auto retrieve name from id.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|id=24|showid=no}} auto retrieve name from id but don't display id.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|id=24|t=My Best Weapon}} auto retrieve name from id.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|id=31|type=buff}} auto retrieve buff name from id.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Wall of Flesh|size=32px}} custom image size. (Read Extended image syntax for details).
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Wall of Flesh|size=32px|Wall of<br/>Flesh}} Custom text in multiple lines.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Wall of Flesh|size=32px|Wall of<br/>Flesh|class=multi-line}} Multiple lines need "multi-line" class for middle vertical align.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Treasure Bag|s|ext=gif}} Custom image file extension.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Treasure Bag|s|note={{small|(Expert Mode)}}|ext=gif}} Note text.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Pet Parrot|image=Parrot.png|Parrot Pet}} Custom image file name.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Pet Parrot|image=Parrot.png|Parrot Pet|ext=jpg}} Will display Parrot.png, ext is ignored when image specified.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Beeswax|image=<div style="background:yellow">[[File:Guide.png]]×[[File:Nurse.png]]</div>}} Custom image code. The code must include at least one [[File: (case insenstive).
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Parrot|link=Pet Parrot|Parrot Pet}} Custom link target.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Beeswax|link=}} Unlinked.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Beeswax|nolink=y}} Unlinked.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Beeswax|nolink=y|link=Bee}} if link is specified, it will override unlink=y.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Beeswax|small=y}} Small platform icons.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Beeswax|icons=no}} Don't display platform icons.(Will be faster)
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Beeswax|id=5019}} With Item ID infomation
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Beeswax|showid=y}} Auto Item ID.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Pet Tiphia|id=204|type=buff}} Other type of ID, in this case, Buff ID.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Guide|id=22|type=npc}} NPC ID.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Confused|showid=y|type=buff}} Auto Buff ID
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found.
{{item|Beeswax|id=5019|anchor=y}} Create an anchor. Now {{PAGENAME}}#Beeswax will link to here.

Size and scale

Result Code Note
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Beeswax}} Default size, this image is 32px in height.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Beeswax|size=16px}} Custom absolute size.(x16px)
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Beeswax|size=*0.5}} Custom scaled size.(x16px)
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Beeswax|size=x40px*0.5}} Scaled absolute size.(x20px)
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Beeswax|scale=0.5}} Scale. (x16px)
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Beeswax|size=40px*0.5|scale=2}} combine scaled size and scale. (40px)
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Beeswax|maxsize=12px}} maxsize
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Beeswax|maxsize=40px}} maxsize, no effect
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Beeswax|maxsize=12x16px}} maxsize
$key|$value|{{#vardefine:options:item:{{#var:optionsAlias:item:{{#var:$key}}}}| {{#var:optionsValueAlias:item:{{#var:optionsAlias:item:{{#var:$key}}}}:{{#var:$value}}|{{#var:$value}}}}}}}}{{#vardefine:__lang|{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found.{{#arrayprint:optionsKeys:item {{#forargs:|$key|$value|{{#vardefine:options:item:{{#var:optionsAlias:item:{{#var:$key}}}}| {{#var:optionsValueAlias:item:{{#var:optionsAlias:item:{{#var:$key}}}}:{{#var:$value}}|{{#var:$value}}}}}}}}}} {{options/set|item|scale=0.5}}{{item|Beeswax}}{{options/reset|item}} change scale via option.
$key|$value|{{#vardefine:options:item:{{#var:optionsAlias:item:{{#var:$key}}}}| {{#var:optionsValueAlias:item:{{#var:optionsAlias:item:{{#var:$key}}}}:{{#var:$value}}|{{#var:$value}}}}}}}}{{#vardefine:__lang|{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found.{{#arrayprint:optionsKeys:item {{#forargs:|$key|$value|{{#vardefine:options:item:{{#var:optionsAlias:item:{{#var:$key}}}}| {{#var:optionsValueAlias:item:{{#var:optionsAlias:item:{{#var:$key}}}}:{{#var:$value}}|{{#var:$value}}}}}}}}}} {{options/set|item|scale=0.55}}{{item|Beeswax|size=*0.5}}{{options/reset|item}} double scale.

Note: Due to the way of [[File:]]'s size option works, if you want to set a size(after scale) larger then origin image size, you need to set it in DDpx or DDxDDpx, and xDDpx will be no effect. e.g. for Beeswax, {{item|Beeswax|size=x40px}} will be no effect.

Multiple images

Result Code Note
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Furnace|image=Furnace.png/Furnace_(placed).gif}} Multiple images with auto size.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Furnace|image=Furnace.png/Furnace_(placed).gif|size=20px}} Only one size specified, all images will use this size.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Furnace|image=Furnace.png/Furnace_(placed).gif|size=30px/20px}} Multiple images with multiple sizes.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Furnace|image=Furnace.png/Furnace_(placed).gif|size=30px/20px/300px}} Size is more them images, extra size is ignored.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Furnace|image=Furnace.png/Furnace_(placed).gif/Hellforge.png|size=16px/50px}} Size is less then image, extra image will use auto size.

Platform icons

Result Code Note
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Beeswax}} Default behavior, generate platform icons from unnamed parameter 1.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Beeswax|icons=no}} Don't display platform icons.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Beeswax|epage=Bee Minecart}} Use Bee Minecart to generate platform icons.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Beeswax|icons= {{eicons|1.4.0.1|3ds=y|small=y}} }} Override platform icons.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Beeswax| small=y | icons= {{eicons|1.4.0.1|3ds=y}} }} Size setting of {{item}} will override size setting of {{eicons}} in {{{icons}}} input.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Beeswax|icons= {{eicons|1.4.0.1|3ds=y|small=y}} }}

Wrap, id, note, note2 and bignote

wrap is valid only when id and note2 are not specified.

Result Code Note
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Beeswax|wrap=y}} If there are platform icons and no note, platform icons will wrap to next line. note that platform icons are displayed in reduced size.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|bed|wrap=y|note=(some note)}} If there are some note, note will wrap next line.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Beeswax|wrap=y|note=(some note)}} If there are some note, note will display in next line, and platform icons will display in same line.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Beeswax|wrap=y|note=(some note)|id=234}} If id is specified, note and eicons will displayed in same line, even if wrap=y.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Beeswax|wrap=y|note2=some other notes.}} note2 is similar.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Beeswax|id=2384|note2=some other notes.}} id and note2 will always take a single line.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found.
{{#vardefine:__lang|{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found.
{{item|Beeswax||bignote=(BIG note)}}
{{item|Beeswax|wrap=y|note=(some note)}}|bignote=(bignote)
Bignote will always be displayed after all other contents.

Display mode

Result Code Note
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Beeswax|id=2384}} By default, it will display image and text info.
$key|$value|{{#vardefine:options:item:{{#var:optionsAlias:item:{{#var:$key}}}}| {{#var:optionsValueAlias:item:{{#var:optionsAlias:item:{{#var:$key}}}}:{{#var:$value}}|{{#var:$value}}}}}}}}{{#vardefine:__lang|{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found.{{#forargs:|$key|$value|{{#vardefine:options:item:{{#var:optionsAlias:item:{{#var:$key}}}}| {{#var:optionsValueAlias:item:{{#var:optionsAlias:item:{{#var:$key}}}}:{{#var:$value}}|{{#var:$value}}}}}}}} {{options/set|item|mode=table}}{{item|Beeswax|mode=|id=2384}}{{options/set|item|mode=}} Force to use default mode .
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Beeswax|mode=image|id=2384}} mode=image: Only image will be displayed, no text, no note, no id, and no platform icons.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Beeswax|mode=text|wrap=y|note=(some note)}} mode=text: image won't be displayed.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found.
{| class="terraria lined"
|{{item|Beeswax|mode=table}}
|-
|{{item|Butterfly|ies|note=(some note)|mode=table}}
|}
mode=table: output as two adjacent cells for table.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. text
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. row 1
row 2
{| class="terraria lined"
|{{item|Beeswax|mode=table}} || text
|-
|{{item|Butterfly|ies|note=(some note)|mode=table|rowspan=2}} || row 1
|-
| row 2
|}
mode=table: rowspan
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found.
{| class="terraria lined item-noborder"
|{{item|Beeswax|mode=table}}
|-
|{{item|Butterfly|ies|note=(some note)|mode=table}}
|}
table with "item-noborder" class: hide border between 2 cells.

Css and predefined classes

Result Code Note
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Beeswax|link=|id=2384|css=color:red;border: 2px solid blue;padding: 3px; background:#ccc}} Custom css rules.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Beeswax|id=2384|class=boldname}} Predefined class: boldname, item name will displayed in bold.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found.
{{#vardefine:__lang|{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found.
{{#vardefine:__lang|{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found.
{{item|Beeswax|id=2384|note=note|note2=note2|class=notecolor}}
{{item|Beeswax|id=2384|note=note|note2=note2|class=note2color}}
{{item|Beeswax|id=2384|note=note|note2=note2|css=color:red|class=note2color}}
Predefined class: notecolor and note2color, note or note2 will display in normal(inherited) text color, respectively .
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found.
{{#vardefine:__lang|{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found.
{{item|Beeswax|id=2384|note=note|note2=note2|class=notecolor}}
{{item|Beeswax|id=2384|note=note|note2=note2|class=note2color}}
Predefined class: notesize and note2size, note will display in normal size, or note2 will display in reduced size, respectively.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found.
{{#vardefine:__lang|{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found.
{{#vardefine:__lang|{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found.
{{item|Beeswax|id=2384|note=note|note2=note2|class=textleft}}<br/>{{item|Beeswax|id=2384|note=note|note2=note2|class=textcenter}}<br/>{{item|Beeswax|id=2384|note=note|note2=note2|class=textright}} Predefined class: textleft, textcenter, and textright, Similar to alignleft/aligncenter/alignright, but only applied to text part.alignleft/center/right can use with text/align/center/right at same time.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Beeswax|id=2384|class=block|mode=text}} Predefined class: block, main item element and text element will display as block element(default is inline-block). It is usually only practical when mode=text.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|Beeswax|id=2384|note=note|note2=note2|class=notesize notecolor boldname|css=color:red}} You can specify multiple classes, seperate with space, and can specify custom css rules at the same time.
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. <div style="width: 5em">{{item|Wall of Flesh|size=32px|class=break}}</div> Wrap item name for long text when there is no enough space.

Transform

You can transform item image via these CSS classes.

The transformation happens at the center of the image and its effective dimensions will retain the original values of the object as if untransformed. So be careful with rotate90 and rotate270.

Result Code
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|guide}}
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|guide|class=mirror}}
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|guide|class=flip}}
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|guide|class=rotate90}}
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|guide|class=rotate180}}
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{item|guide|class=rotate270}}

Change default options

{{#vardefine:options_namespace|{{#or:|item}}}}{{#vardefine:__FLAG_OPTIONS_AUTODOC__|yes}}{{{{#var:options_namespace}}/initOptions}}This template supports options through {{options}} template. All valid options are listed below, see {{options}} for usage and other infomation.

See [[Template:{{#var:options_namespace}}/initOptions]] for the initial options setting of this template.

{{#arrayprint:optionsKeys:{{#var:options_namespace}}||@@@@|{{#var:optionsDoc:@@@@}}}}
NameAliasInitial ValueValue Mapping<ref>Values with mapping will be stored and loaded as mapped value. Other values without mapping will be stored and loaded as-is.</ref>Note
<references group=""></references>
NOTE: In order to avoid unwanted influences, it is very important to restore options state as soon as possible, especially in the template. Use {{options/snap}} and {{options/restore}}

See examples below for more details.

Example

Code output
By default: 

{{item|Beeswax|note=(note)}}

turn off platform icons: 
{{options/set|item|icons=no}}
{{item|Beeswax|note=(note)}}

turn on platform icons, and turn on small icons:
{{options/set|item|icons=y|smallicons=y}}
{{item|Beeswax|note=(note)}}

turn on line wrap, and set to text mode: 
{{options/set|item|wrap=y|mode=text}}
{{item|Beeswax|note=(note)}}

turn on no link mode: 
{{options/set|item|nolink=y}}
{{item|Beeswax|note=(note)}}

This will be overridden by '''<code>link=</code>'''

{{item|Beeswax|note=(note)|link=Bee}}

get current setting:

nolink = {{options|item|nolink}} ; 
wrap = {{options|item|wrap}} ;
mode = {{options|item|mode}} ;

reset all options: 
{{options/reset|item}}
{{item|Beeswax|note=(note)}}

custom css and class:
{{options/set|item|css=border:1px solid red;padding:3px}}
{{item|Beeswax|note=(note)}}
{{options/set|item|class=boldname}}
{{item|Beeswax|note=(note)}}

reset all:
{{options/reset|item}}
{{item|Beeswax|note=(note)}}

By default:

{{#vardefine:__lang|{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found.

turn off platform icons: {{#forargs:|$key|$value|{{#vardefine:options:item:{{#var:optionsAlias:item:{{#var:$key}}}}| {{#var:optionsValueAlias:item:{{#var:optionsAlias:item:{{#var:$key}}}}:{{#var:$value}}|{{#var:$value}}}}}}}} {{#vardefine:__lang|{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found.

turn on platform icons, and turn on small icons: {{#forargs:|$key|$value|{{#vardefine:options:item:{{#var:optionsAlias:item:{{#var:$key}}}}| {{#var:optionsValueAlias:item:{{#var:optionsAlias:item:{{#var:$key}}}}:{{#var:$value}}|{{#var:$value}}}}}}}} {{#vardefine:__lang|{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found.

turn on line wrap, and set to text mode: {{#forargs:|$key|$value|{{#vardefine:options:item:{{#var:optionsAlias:item:{{#var:$key}}}}| {{#var:optionsValueAlias:item:{{#var:optionsAlias:item:{{#var:$key}}}}:{{#var:$value}}|{{#var:$value}}}}}}}} {{#vardefine:__lang|{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found.

turn on no link mode: {{#forargs:|$key|$value|{{#vardefine:options:item:{{#var:optionsAlias:item:{{#var:$key}}}}| {{#var:optionsValueAlias:item:{{#var:optionsAlias:item:{{#var:$key}}}}:{{#var:$value}}|{{#var:$value}}}}}}}} {{#vardefine:__lang|{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found.

This will be overridden by link=

{{#vardefine:__lang|{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found.

get current setting:

nolink = {{#var:options:item:{{#var:optionsAlias:item:nolink|<__invalid__>}}}} ; wrap = {{#var:options:item:{{#var:optionsAlias:item:wrap|<__invalid__>}}}} ; mode = {{#var:options:item:{{#var:optionsAlias:item:mode|<__invalid__>}}}} ;

reset all options: {{#arrayprint:optionsKeys:item||@@@@|{{#forargs:|$key|$value|{{#vardefine:options:item:{{#var:optionsAlias:item:{{#var:$key}}}}| {{#var:optionsValueAlias:item:{{#var:optionsAlias:item:{{#var:$key}}}}:{{#var:$value}}|{{#var:$value}}}}}}}}}} {{#vardefine:__lang|{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found.

custom css and class: {{#forargs:|$key|$value|{{#vardefine:options:item:{{#var:optionsAlias:item:{{#var:$key}}}}| {{#var:optionsValueAlias:item:{{#var:optionsAlias:item:{{#var:$key}}}}:{{#var:$value}}|{{#var:$value}}}}}}}} {{#vardefine:__lang|{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. {{#forargs:|$key|$value|{{#vardefine:options:item:{{#var:optionsAlias:item:{{#var:$key}}}}| {{#var:optionsValueAlias:item:{{#var:optionsAlias:item:{{#var:$key}}}}:{{#var:$value}}|{{#var:$value}}}}}}}} {{#vardefine:__lang|{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found.

reset all: {{#arrayprint:optionsKeys:item||@@@@|{{#forargs:|$key|$value|{{#vardefine:options:item:{{#var:optionsAlias:item:{{#var:$key}}}}| {{#var:optionsValueAlias:item:{{#var:optionsAlias:item:{{#var:$key}}}}:{{#var:$value}}|{{#var:$value}}}}}}}}}} {{#vardefine:__lang|{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found.

About Translation

{{item}} is i18n-ready and integrated automatic translation. When translate to other language, It may not require any edit, auto translation will get things done, for example:

Code On English Page On Italian Page
{{item|Golden Chest}} {{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found. it}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found.

if there is still English text, or you want to modify display text, please keep unnamed parameter 1 untouched({{item}} will handle the image and link target), and change unnamed parameter 2, for example:

On English Page On Italian Page Wrong usage
{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}}}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found.
(links to Copper Ore)
it}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found.
(links to Copper Ore/it)
it}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found.
{{item|Minerale di rame|Minerale}}: {{#vardefine:__lang|it}}Lua error in package.lua at line 80: module 'mw.ext.LuaCache' not found.
(image and link are broken.)


[[Category:Template documentation/{{#var:__global__lang|{{#vardefineecho:__global__lang|{{#or:{{#lstfnd:doc|{{#dplvar:_langlist_onWiki_{{#dplvar:_langlist_}}}},{{#dplvar:_langlist_offWiki_{{#dplvar:_langlist_}}}}|,}}|en}}}}}} ]] Template:Translation projects{{#vardefine:_displaytitle|{{#var:__global__trp_displaytitle}}{{#var:__global__trp_displaytitle_suffix}}}}{{#vardefine:_en|Template:Item/doc}}