Template:ItemLink: Difference between revisions

From Ymirheim Wiki
No edit summary
No edit summary
Tag: Reverted
Line 5: Line 5:


Name:
Name:
-->{{#ifeq:{{ROOTPAGENAME}}|{{#yh_data_eng:item_prototypes|{{{1}}}|Name}}
-->{{ROOTPAGENAME}}{{#ifeq:{{ROOTPAGENAME}}|{{#yh_data_eng:item_prototypes|{{{1}}}|Name}}
|<strong>{{#yh_data:item_prototypes|{{{1}}}|Name}}</strong>
|<strong>{{#yh_data:item_prototypes|{{{1}}}|Name}}</strong>
|[[{{#ifexpr:{{{1}}} > 1380000000 and {{{1}}} < 1390000000 | Special:MyLanguage/{{#yh_data_eng:skills|{{#expr: {{{1}}} - 380000000 }}|Name}} | Special:MyLanguage/{{#yh_data_eng:item_prototypes|{{{1}}}|Name}} }}|{{#yh_data:item_prototypes|{{{1}}}|Name}}]]
|[[{{#ifexpr:{{{1}}} > 1380000000 and {{{1}}} < 1390000000 | Special:MyLanguage/{{#yh_data_eng:skills|{{#expr: {{{1}}} - 380000000 }}|Name}} | Special:MyLanguage/{{#yh_data_eng:item_prototypes|{{{1}}}|Name}} }}|{{#yh_data:item_prototypes|{{{1}}}|Name}}]]

Revision as of 19:46, 9 July 2024

This template can be used to display link with an icon to a specific game item on a page.


Usage

{{ItemLink|ITEM_ID}}

You have to supply the specific item ID, not the item name.


How to find Item ID

You can find the item ID by searching the item in Ymirheim Translate (item_prototypes component).

The item ID is contained in the string key.

For example, if you look up "Pukui Peel" in Ymirheim Translate, you will see the item ID in the "Key" column (the portion before the forward slash).


Examples

{{ItemLink|1330000004}}

Will produce: icon ItemLinkPukui Slice.

{{ItemLink|1380800901}}

Will produce: icon ItemLinkSkill: Sharpened Blades Lv.1.