ARK: Survival Evolved Wiki
Register
(added Mod:Caballus)
No edit summary
Line 2: Line 2:
 
-->{{#vardefine:dlc|}}<!--
 
-->{{#vardefine:dlc|}}<!--
 
-->{{#vardefine:linktext|{{{1|}}}}}<!--
 
-->{{#vardefine:linktext|{{{1|}}}}}<!--
-->{{#vardefine:filename|{{{image|{{#replace:{{#replace:{{{1}}}|:|_}}|+|-}}.png}}}}}<!--
+
-->{{#vardefine:filename|{{{image|{{#replace:{{#replace:{{#replace:{{{1}}}|:|_}}|+|-}}|/|_}}.png}}}}}<!--
 
-->{{#if:{{{text|{{{2|}}}}}}||<!-- else
 
-->{{#if:{{{text|{{{2|}}}}}}||<!-- else
 
-->{{#if:{{#pos:{{{1}}}|(The Center)}}|{{#vardefine:linktext|{{#sub:{{{1}}}|0|-13}}}}{{#vardefine:dlc|&nbsp;[[File:The Center Icon.png|link=The Center]]}}}}<!--
 
-->{{#if:{{#pos:{{{1}}}|(The Center)}}|{{#vardefine:linktext|{{#sub:{{{1}}}|0|-13}}}}{{#vardefine:dlc|&nbsp;[[File:The Center Icon.png|link=The Center]]}}}}<!--
Line 20: Line 20:
 
-->{{#if:{{#pos:{{{1}}}|Mod:S+}}|{{#vardefine:linktext|{{#sub:{{{1}}}|4}}}}{{#vardefine:dlc|&nbsp;[[File:Structures Plus Icon.png|link=Mod:Structures Plus]]}}{{#vardefine:filename|{{#replace:{{#var:filename}}|:|_}}}}}}<!--
 
-->{{#if:{{#pos:{{{1}}}|Mod:S+}}|{{#vardefine:linktext|{{#sub:{{{1}}}|4}}}}{{#vardefine:dlc|&nbsp;[[File:Structures Plus Icon.png|link=Mod:Structures Plus]]}}{{#vardefine:filename|{{#replace:{{#var:filename}}|:|_}}}}}}<!--
 
-->{{#if:{{#pos:{{{1}}}|Mod:Platforms Plus}}|{{#vardefine:linktext|{{#sub:{{{1}}}|19}}}}{{#vardefine:dlc|&nbsp;[[File:Platforms Plus Icon.png|link=Mod:Platforms Plus]]}}{{#vardefine:filename|{{#replace:{{#var:filename}}|:|_}}}}}}<!--
 
-->{{#if:{{#pos:{{{1}}}|Mod:Platforms Plus}}|{{#vardefine:linktext|{{#sub:{{{1}}}|19}}}}{{#vardefine:dlc|&nbsp;[[File:Platforms Plus Icon.png|link=Mod:Platforms Plus]]}}{{#vardefine:filename|{{#replace:{{#var:filename}}|:|_}}}}}}<!--
-->{{#if:{{#pos:{{{1}}}|Mod:Ark Eternal}}|{{#vardefine:linktext|{{#sub:{{{1}}}|16}}}}{{#vardefine:dlc|&nbsp;[[File:Mod Ark Eternal Icon.png|link=Mod:Ark Eternal]]}}{{#vardefine:filename|{{#replace:{{#var:filename}}|:|_}}}}}}<!--
+
-->{{#if:{{#pos:{{{1}}}|Mod:Ark Eternal/}}|{{#vardefine:linktext|{{#sub:{{{1}}}|16}}}}{{#vardefine:dlc|&nbsp;[[File:Mod Ark Eternal Icon.png|link=Mod:Ark Eternal]]}}{{#vardefine:filename|{{#replace:{{#var:filename}}|:|_}}}}}}<!--
 
-->{{#if:{{#pos:{{{1}}}|Mod:Archaic Ascension}}|{{#vardefine:linktext|{{#sub:{{{1}}}|22}}}}{{#vardefine:dlc|&nbsp;[[File:Mod Archaic Ascension Icon.png|link=Mod:Archaic Ascension]]}}{{#vardefine:filename|{{#replace:{{#var:filename}}|:|_}}}}}}<!--
 
-->{{#if:{{#pos:{{{1}}}|Mod:Archaic Ascension}}|{{#vardefine:linktext|{{#sub:{{{1}}}|22}}}}{{#vardefine:dlc|&nbsp;[[File:Mod Archaic Ascension Icon.png|link=Mod:Archaic Ascension]]}}{{#vardefine:filename|{{#replace:{{#var:filename}}|:|_}}}}}}<!--
 
-->{{#if:{{#pos:{{{1}}}|Mod:Steampunk}}|{{#vardefine:linktext|{{#sub:{{{1}}}|14}}}}{{#vardefine:dlc|&nbsp;[[File:Mod Steampunk Icon.png|link=Mod:Steampunk]]}}{{#vardefine:filename|{{#replace:{{#var:filename}}|:|_}}}}}}<!--
 
-->{{#if:{{#pos:{{{1}}}|Mod:Steampunk}}|{{#vardefine:linktext|{{#sub:{{{1}}}|14}}}}{{#vardefine:dlc|&nbsp;[[File:Mod Steampunk Icon.png|link=Mod:Steampunk]]}}{{#vardefine:filename|{{#replace:{{#var:filename}}|:|_}}}}}}<!--

Revision as of 22:24, 3 January 2020

Template-info Documentation

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

Also supports an optional quantity in front: 5 × Stone 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
noDlcIcon bool false
mod string false

Examples

Both lines produce the same output:

{{ItemLink|Stone}} = Stone Stone

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

Lowercase link:

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

Plural link:

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

Quantity:

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

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

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

Mods that are supported will have the mod-part replaced with their icon

{{ItemLink|Mod:Ark Eternal/Alpha Meat}} = Mod Ark Eternal Alpha Meat Alpha Meat Mod Ark Eternal Icon

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

{{ItemLink|Sand (Scorched Earth)|noDlcIcon=1}} = Sand (Scorched Earth) Sand

Mod and DLC suffices are defined and managed within Module:DissectDlcItemName.