Template:ItemLink/doc

From TibiaCraft
Revision as of 19:19, 4 October 2025 by Root (talk | contribs) (Created page with "{{documentation header}} {{lua|SpriteFile}} This template creates a page link with an associated sprite image on the left side using the format from Template:ItemSprite. {{Sprite/LinkParameters}} == Examples == {| class="wikitable" ! Code ! Result |- | <code><nowiki>{{ItemLink|Pickaxe}}</nowiki></code> || {{ItemLink|Pickaxe}} |- | <code><nowiki>{{ItemLink|Bread}}</nowiki></code> || {{ItemLink|Bread}} |- | <code><nowiki>{{ItemLink|Apple}}</nowiki></code> || {{ItemL...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
This is the documentation page. It should be transcluded into Template:ItemLink. See Template:Documentation for more information.
This template uses Module:SpriteFile, a script written in Lua.

This template creates a page link with an associated sprite image on the left side using the format from Template:ItemSprite.

Parameters

Name Usage
|1= Set the defaults for all other parameters
|id= Sets the sprite. Spaces within this parameter are replaced with dashes and letters are made lowercase.
Value may be a name or a number, though names are preferred
|link= Set the page to link, supports internal and external links
If set to none, no link will be added
|text= or |2= Sets the text to be displayed

Word-ending links such as {{EntityLink|Creeper}}s will not include the suffix as part of the link text, unlike normal links. The text= or second unnamed argument should be used instead; i.e. {{EntityLink|Creeper|Creepers}}

Examples

Code Result
{{ItemLink|Pickaxe}} File:ItemSprite pickaxe.pngPickaxe
{{ItemLink|Bread}} File:ItemSprite bread.pngBread
{{ItemLink|Apple}} File:ItemSprite apple.pngApple
{{ItemLink|Sugar}} File:ItemSprite sugar.pngSugar
{{ItemLink|id=raw-fish|Fish}} File:ItemSprite raw-fish.pngFish

Full list

Here is a full list of entities:

See also

Template:Link see also