![]() |
VOOZH | about |
This template adds a short tag to a link that hints the user where it could potentially lead to. It's usually used to tag cross-namespace links (a link that leads to a page in another namespace outside its own namespace), cross-namespace redirect links, Wikipedia links, and other external links.
{{tpl|1=<link>|2=<pipe name>|3=<link tag>}}
{{tpl|1=<link tag>}} (if |2= and |3= are omitted)
|1=<link> – the link to a page in the Minecraft Wiki. It may also be a https:// link to an external website.|2=<pipe name> – the name that appears instead of the link.|3=<link tag> – the short link tag, see § List of link tags.
|1= is used to produce a link tag. This is intended to be placed after an existing link, see § Link tag only.For example, a reader may think this link leads to another mainspace article named "Data generator":
But when we view from the wikitext markup, it turns out it leads to an unfinished article in the wiki.vg merge project:
There are tools that can be used to generate data, that is, [[MCW:Projects/wiki.vg merge/Data Generators|data generator]], which can be accessed from [[server.jar]].
In order to avoid this "surprise", we can use the template to hint the reader that it's a cross-namespace link:
There are tools that can be used to generate data, that is, {{tpl|MCW:Projects/wiki.vg merge/Data Generators|data generator|vg}}, which can be accessed from [[server.jar]].
Produces
The "vg" argument at the end tells the template that it's a wiki.vg merge link and shows the "[vg]" tag.
If there is only one argument passed, then |1= is used for link tag instead, and the template only produces a link tag. This is intended to be placed after an existing link.
Example
List of game concepts found in ''Minecraft'' community: * {{ItemLink|id=iron-axe|Manhunt}}{{tpl|tt}} * {{EnvLink|id=Overworld|Skyblock}} * {{ItemLink|id=bow|SkyWars}}{{tpl|tt}} * {{EffectLink|id=speed|Speedrun}}{{tpl|tt}}
Produces
main – mainspacedungeons du – Minecraft Dungeonslegends le – Minecraft Legendstutorial tt – user-created tutorialswiki.vg merge wiki.vg vg – wiki.vg mergewikipedia wp – Wikipedia