Template:ItemLink/doc

Da ARK: Survival Evolved Wiki.
Template-info.png Documentazione

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

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

Usage

{{ItemLink|Stone}}
Parameters
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 20px
quantity string false
noIcon bool false

Examples

Both lines produce the same output:

{{ItemLink|Stone}} = Stone.png Stone

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

Lowercase link:

{{ItemLink|Stone|text=stone}} = Stone.png stone
{{ItemLink|Stone|stone}} = Stone.png stone

Plural link:

{{ItemLink|Stone|text=Stones}} = Stone.png Stones
Alternative: {{ItemLink|Stone}}s = Stone.png Stones

Quantity:

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

DLC-suffices are converted automatically to the according icon, if no explicit link-text is given

{{ItemLink|Sand (Scorched Earth)}} = Sand (Scorched Earth).png Sand Scorched Earth Icon.png
{{ItemLink|Sand (Scorched Earth)|Sand}} = Sand (Scorched Earth).png Sand

The parameter noIcon hides the extra DLC-/mod-icon

{{ItemLink|Sand (Scorched Earth)|noIcon=1}} = Sand (Scorched Earth).png Sand Scorched Earth Icon.png

Questa è la pagina di documentazione e dovrebbe essere trascritta nella pagina principale del template. Vedi Template:Doc per più informazioni.