Template:ItemLink: Difference between revisions

From Create: Minecraft Mod Wiki
Jump to navigation Jump to search
Create: Minecraft Mod Wiki>Joker876
No edit summary
Create: Minecraft Mod Wiki>Joker876
No edit summary
Line 1: Line 1:
<includeonly><span title="{{#if:{{{mc|}}}|Minecraft Wiki:&#32;}}{{{1|{{{item|{{{i|}}}}}}}}}">[[File:{{{image|{{{img|{{{1|{{{item|{{{i|}}}}}}}}}}}}}}}.png|{{{size|21px}}}|link={{#if:{{{mc|}}}|w:c:minecraft:}}{{{1|{{{item|{{{i|}}}}}}}}}]]&nbsp;[[{{#if:{{{mc|}}}|w:c:minecraft:}}{{{1|{{{item|{{{i|}}}}}}}}}|<span title="{{#if:{{{mc|}}}|Minecraft Wiki:&#32;}}{{{1|{{{item|{{{i|}}}}}}}}}">{{{2|{{{1|{{{item|{{{i|}}}}}}}}}}}}</span>]]</includeonly><noinclude>{{Documentation}}</noinclude>
<includeonly>{{#invoke:Item|item}}</includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 14:02, 30 April 2021

[view | edit | history | purge]Documentation

This template is used to create a link and a clickable image that sends the user to the link.

Usage

{{ItemLink|Andesite Casing}}
Produces

 Andesite Casing

Selected Image

{{ItemLink|Train|img1=Train Casing}}
Produces

 Train

Multiple Images

{{ItemLink|Mechanical Piston|img2=Sticky Mechanical Piston}}
Produces

 Mechanical Piston

Vanilla Items

To link to the Minecraft wiki, add mc=1 to the template.

{{ItemLink|Slime Block|mc=1}}
Produces

 Slime Block

[view | edit | history | purge]The above documentation is transcluded from Template:ItemLink/doc.