Link to an item page with an item image in front: File:Stone Icon.png Stone
Also supports an optional quantity in front: 5 × File:Stone Icon.png Stone
Usage[]
{{ItemLink|Stone}}
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|Stone}}
= File:Stone Icon.png Stone
{{ItemLink|Stone|text=Stone|link=Stone|image=Stone.png|size=20px|quantity=}}
= File:Stone.png Stone
Lowercase link:
{{ItemLink|Stone|text=stone}}
= File:Stone Icon.png stone
Plural link:
{{ItemLink|Stone|text=Stones}}
= File:Stone Icon.png Stones
Quantity:
{{ItemLink|Stone|quantity=5}}
= 5 × File:Stone Icon.png Stone
{{ItemLink|Stone|quantity=5-10}}
= 5-10 × File:Stone Icon.png Stone
This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.