Link to an item page with an item image in front: 20px Stone
Also supports an optional quantity in front: 5 × 20px 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}}
= 20px Stone
{{ItemLink|Stone|text=Stone|link=Stone|image=Stone.png|size=20px|quantity=}}
= 20px Stone
Lowercase link:
{{ItemLink|Stone|text=stone}}
= 20px stone
Plural link:
{{ItemLink|Stone|text=Stones}}
= 20px Stones
Alternative: {{ItemLink|Stone}}s
= 20px Stones
Quantity:
{{ItemLink|Stone|quantity=5}}
= 5 × 20px Stone
{{ItemLink|Stone|quantity=5-10}}
= 5-10 × 20px Stone
DLC-suffices are converted automatically to the according icon, if no explicit link-text is given
{{ItemLink|Sand (Scorched Earth)}}
= 20px Sand File:Scorched Earth Icon.png
The above documentation is transcluded from Template:ItemLink/doc. (edit | history)