Template:ItemLink: Difference between revisions

From Ymirheim Wiki
No edit summary
No edit summary
Line 1: Line 1:
<templatestyles src="Template:ItemLink/styles.css"/><span class="item-link"><!--
<includeonly><templatestyles src="Template:ItemLink/styles.css"/><span class="item-link"><!--


Icon:
Icon:
Line 5: Line 5:


Name:
Name:
-->[[{{#yh_data:item_prototypes|{{{1}}}|Name}}|{{#yh_data:item_prototypes|{{{1}}}|Name}}]]</span>
-->[[{{#yh_data:item_prototypes|{{{1}}}|Name}}|{{#yh_data:item_prototypes|{{{1}}}|Name}}]]</span><!--
--></includeonly><noinclude>
[[Category:Game Data Templates]]
This template can be used to display link with an icon to a specific game item on a page.
 
 
== Usage ==
 
<nowiki>{{ItemLink|ITEM_ID}}</nowiki>
 
You have to supply the specific item ID, not the item name.
 
 
[[File:Item ID Search On Ymirheim Translate.png|thumb|How to find Item ID]]
You can find the item ID by searching the item in [https://translate.ymirheim.org/browse/ymirheim/item_prototypes/en/'''Ymirheim Translate'''] (item_prototypes component).
 
The item ID is contained in the string key.
 
For example, if you look up [https://translate.ymirheim.org/browse/ymirheim/item_prototypes/en/?q=Pukui+Peel&sort_by=-priority%2Cposition&checksum= "Pukui Peel"] in Ymirheim Translate, you will see the item ID in the "Key" column (the portion before the forward slash).
 
 
 
== Examples ==
<nowiki>{{ItemLink|1330000004}}</nowiki>
 
</noinclude>

Revision as of 10:49, 30 June 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}}