Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!

Template:ItemLink/doc

From Civilization VI Wiki
Jump to: navigation, search
Template-info.png Documentation

Link to an item page with an item image in front: 20px Food

Also supports an optional quantity in front: 5 × 20px Food

Usage[edit source]

{{ItemLink|Food}}
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[edit source]

Both lines produce the same output:

{{ItemLink|Food}} = 20px Food

{{ItemLink|Food|text=Food|link=Food|image=Provisions.png|size=20px|quantity=}} = 20px Food

Lowercase link:

{{ItemLink|Food|text=food}} = 20px food

Plural link:

{{ItemLink|Food|text=Foods}} = 20px Foods

Quantity:

{{ItemLink|Food|quantity=5}} = 5 × 20px Food

{{ItemLink|Food|quantity=5-10}} = 5-10 × 20px Food

This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.