Template:ItemLink: Difference between revisions
m Changed protection level for "Template:ItemLink": Lower edit protection ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only administrators] (indefinite)) |
No edit summary |
||
| Line 1: | Line 1: | ||
{{documentation}} | |||
<includeonly>{{#invoke: Sprite | link | <includeonly>{{#invoke: Sprite | link | ||
| data = ItemSprite | | data = ItemSprite | ||
Revision as of 02:38, 7 June 2022
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}} |
Template loop detected: Template:Documentation
Lua error in package.lua at line 80: module 'Module:ItemSprite' not found. |
{{ItemLink|Bread}} |
Template loop detected: Template:Documentation
Lua error in package.lua at line 80: module 'Module:ItemSprite' not found. |
{{ItemLink|Apple}} |
Template loop detected: Template:Documentation
Lua error in package.lua at line 80: module 'Module:ItemSprite' not found. |
{{ItemLink|Sugar}} |
Template loop detected: Template:Documentation
Lua error in package.lua at line 80: module 'Module:ItemSprite' not found. |
{{ItemLink|id=raw-fish|Fish}} |
Template loop detected: Template:Documentation
Lua error in package.lua at line 80: module 'Module:ItemSprite' not found. |
Full list
Here is a full list of entities:
See also
{{ItemSprite}}{{Item}}(infobox){{Items}}(navbox)
- Minecraft
{{BiomeLink}}{{BlockLink}}{{EffectLink}}{{EntityLink}}{{EnvLink}}{{ItemLink}}{{PersonaLink}}{{InvLink}}
- Minecraft (legacy)
{{LegacyBlockLink}}
- Minecraft Dungeons
{{DungeonsLevelLink}}{{DungeonsEnchantmentLink}}{{DungeonsEffectLink}}{{DungeonsEntityLink}}{{DungeonsItemLink}}{{DungeonsMiscellaneousLink}}
- Minecraft Legends
- Minecraft Story Mode
{{StoryModeAreaLink}}{{StoryModeEntityLink}}{{StoryModeItemLink}}
- A Minecraft Movie
{{MovieLink}}
- Other
de:Vorlage:GegenstandLink es:Plantilla:EnlaceObjeto fr:Modèle:LienObjet it:Template:CollegamentoOggetto ja:テンプレート:ItemLink ko:틀:ItemLink lzh:模板:ItemLink nl:Sjabloon:VoorwerpLink pl:Szablon:ItemLink pt:Predefinição:ItemLink ru:Шаблон:Ссылка/Предмет th:แม่แบบ:ItemLink uk:Шаблон:Посилання/Предмет zh:Template:ItemLink
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}} |
Template loop detected: Template:Documentation
Lua error in package.lua at line 80: module 'Module:ItemSprite' not found. |
{{ItemLink|Bread}} |
Template loop detected: Template:Documentation
Lua error in package.lua at line 80: module 'Module:ItemSprite' not found. |
{{ItemLink|Apple}} |
Template loop detected: Template:Documentation
Lua error in package.lua at line 80: module 'Module:ItemSprite' not found. |
{{ItemLink|Sugar}} |
Template loop detected: Template:Documentation
Lua error in package.lua at line 80: module 'Module:ItemSprite' not found. |
{{ItemLink|id=raw-fish|Fish}} |
Template loop detected: Template:Documentation
Lua error in package.lua at line 80: module 'Module:ItemSprite' not found. |
Full list
Here is a full list of entities:
See also
{{ItemSprite}}{{Item}}(infobox){{Items}}(navbox)
- Minecraft
{{BiomeLink}}{{BlockLink}}{{EffectLink}}{{EntityLink}}{{EnvLink}}{{ItemLink}}{{PersonaLink}}{{InvLink}}
- Minecraft (legacy)
{{LegacyBlockLink}}
- Minecraft Dungeons
{{DungeonsLevelLink}}{{DungeonsEnchantmentLink}}{{DungeonsEffectLink}}{{DungeonsEntityLink}}{{DungeonsItemLink}}{{DungeonsMiscellaneousLink}}
- Minecraft Legends
- Minecraft Story Mode
{{StoryModeAreaLink}}{{StoryModeEntityLink}}{{StoryModeItemLink}}
- A Minecraft Movie
{{MovieLink}}
- Other
de:Vorlage:GegenstandLink es:Plantilla:EnlaceObjeto fr:Modèle:LienObjet it:Template:CollegamentoOggetto ja:テンプレート:ItemLink ko:틀:ItemLink lzh:模板:ItemLink nl:Sjabloon:VoorwerpLink pl:Szablon:ItemLink pt:Predefinição:ItemLink ru:Шаблон:Ссылка/Предмет th:แม่แบบ:ItemLink uk:Шаблон:Посилання/Предмет zh:Template:ItemLink