Difference between revisions of "Template:ItemLink"

From Conan Exiles Wiki
Jump to: navigation, search
(change what var we're looking for)
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#if:{{#var:ITEMLINK_OUTPUT_{{{1}}}<!-- end var -->}}|{{#var:ITEMLINK_OUTPUT_{{{1}}}}}|{{#invoke:ItemLink|Main|{{{1}}}|{{{2|}}}}}<!-- end if -->}}</includeonly><noinclude>This template is designed to output the linked name of an ITEM along with its icon. It does this by querying the name of the item from the ITEMS cargo table.
+
<includeonly>{{#if:{{#var:IL_x_{{{1}}}_{{{2|}}}_{{{3|}}}<!-- end var -->}}|{{#var:IL_O_{{{1}}}_{{{2|}}}_{{{3|}}}}}|{{#invoke:ItemLink|Main|{{{1}}}|{{{2|}}}|{{{3|}}}}}<!-- end if -->}}</includeonly><noinclude>This template is designed to output the linked name of an ITEM along with its icon. It does this by querying the name of the item from the ITEMS cargo table.
   
 
Usage example:
 
Usage example:
   
 
<pre><nowiki>{{ItemLink|Flawless Reptilian Gauntlets}}</nowiki></pre>
 
<pre><nowiki>{{ItemLink|Flawless Reptilian Gauntlets}}</nowiki></pre>
{{ItemLink|Flawless Reptilian Gauntlets}}<br/>
+
{{ItemLink|Flawless Reptilian Gauntlets}} - not dlc, not epic<br/>
{{ItemLink|Aquilonian Artisan Table}}
+
{{ItemLink|Aquilonian Artisan Table}} - dlc, not epic<br/>
  +
{{ItemLink|Zingaran Freebooter Vest}} - epic<br/>
  +
{{ItemLink|Argossean Mariner's Harness (Epic)}} - dlc, epic<br/>
  +
{{ItemLink|Argossean Mariner's Harness (Epic)|Argossean Mariner's Harness}} - dlc, epic
   
 
To change the text of the link according to your grammatical context, you can use a second parameter
 
To change the text of the link according to your grammatical context, you can use a second parameter

Latest revision as of 13:45, 4 November 2020

This template is designed to output the linked name of an ITEM along with its icon. It does this by querying the name of the item from the ITEMS cargo table.

Usage example:

{{ItemLink|Flawless Reptilian Gauntlets}}

Icon crocodile armor gauntlets.png Flawless Reptilian Gauntlets - not dlc, not epic
Icon aquilonian Workstation.png Aquilonian Artisan Table - dlc, not epic
Epic icon zingarianLight chest.png Zingaran Freebooter Vest - epic
Icon argossean light chest.png Argossean Mariner's Harness (Epic) - dlc, epic
Icon argossean light chest.png Argossean Mariner's Harness - dlc, epic

To change the text of the link according to your grammatical context, you can use a second parameter

{{ItemLink|Stone|Stones}}

This Example contains 10 Icon stone-1.png Stones