Template:ItemLink
Jump to navigation
Jump to search
Documentation
[purge]
Link to an item page with an item image in front: Stone
Also supports an optional quantity in front: 5 × Stone
Usage
{{ItemLink|Stone}}
Name | Type | Required | Default |
---|---|---|---|
0
|
string
|
true
|
|
text
|
string
|
false
|
The value of the first positional parameter, or the second if given |
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
|
16x16px |
quantity
|
string
|
false
|
Examples
Both lines produce the same output:
{{ItemLink|Stone}}
= Stone
{{ItemLink|Stone|text=Stone|link=Stone|image=Stone.png|size=20px|quantity=}}
= Stone
Lowercase link:
{{ItemLink|Stone|text=stone}}
= stone
{{ItemLink|Stone|stone}}
= stone
Plural link:
{{ItemLink|Stone|text=Stones}}
= Stones
Alternative: {{ItemLink|Stone}}s
= Stones
Quantity:
{{ItemLink|Stone|quantity=5}}
= 5 × Stone
{{ItemLink|Stone|quantity=5-10}}
= 5-10 × Stone