Template:ItemLink/sandbox

From ARK: Survival Evolved Wiki
< Template:ItemLink
Revision as of 13:47, 19 July 2015 by @DeletedUser40526905 (talk | contribs) (Added another non-breaking space)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

[[Image:{{{1}}}.png|20px|link={{{1}}}]] [[{{{1}}}|{{{1}}}]]

Template-info.png Documentation

Link to an item page with an item image in front: Stone

Also supports an optional quantity in front: 5 ×  Stone

Usage

{{ItemLink|Stone}}
Parameters
Name Type Required Default
0 string true
text string false The value of the first positional parameter
link string false The value of the first positional parameter
image string false The value of the first positional parameter suffixed with .png
size integer false 20px
quantity integer false 0

Examples

Both lines produce the same output:

{{ItemLink|Stone}} = Stone

{{ItemLink|Stone|text=Stone|link=Stone|image=Stone.png|size=20px|quantity=0}} = Stone

Lowercase link:

{{ItemLink|Stone|text=stone}} = stone

Plural link:

{{ItemLink|Stone|text=Stones}} = Stones

Quantity:

{{ItemLink|Stone|quantity=5}} = 5 ×  Stone