Template:ItemLink
[[Image:{{{1}}}_Icon.png|20px|link={{{1}}}]] [[{{{1}}}|{{{1}}}]]
Link to an item page with an item image in front: Materials
Also supports an optional quantity in front: 5 × Materials
Usage
{{ItemLink|Materials}}
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
|
string
|
false
|
20px |
quantity
|
string
|
false
|
Examples
Both lines produce the same output:
{{ItemLink|Materials}}
= Materials
{{ItemLink|Materials|text=Materials|link=Materials|image=Icon Bullet.png|size=20px|quantity=}}
= Materials
Lowercase link:
{{ItemLink|Materials|text=Materials}}
= Materials
Plural link:
{{ItemLink|Materials|text=Materials}}
= Materials
Quantity:
{{ItemLink|Materials|quantity=5}}
= 5 × Materials
{{ItemLink|Materials|quantity=5-10}}
= 5-10 × Materials
The above documentation is transcluded from Template:ItemLink/doc. (edit | history)