Template:ItemLink

From Mechanic Miner Wiki
Jump to: navigation, search

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

Template-info.png Documentation

Link to an item page with an item image in front: Materials Icon.png Materials

Also supports an optional quantity in front: 5 × Materials Icon.png Materials

Usage

{{ItemLink|Materials}}
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 string false 20px
quantity string false

Examples

Both lines produce the same output:

{{ItemLink|Materials}} = Materials Icon.png Materials

{{ItemLink|Materials|text=Materials|link=Materials|image=Icon Bullet.png|size=20px|quantity=}} = Icon Bullet.png Materials

Lowercase link:

{{ItemLink|Materials|text=Materials}} = Materials Icon.png Materials

Plural link:

{{ItemLink|Materials|text=Materials}} = Materials Icon.png Materials

Quantity:

{{ItemLink|Materials|quantity=5}} = 5 × Materials Icon.png Materials

{{ItemLink|Materials|quantity=5-10}} = 5-10 × Materials Icon.png Materials