Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:MC/Tagged piped link/doc

Template page
Revision as of 01:50, 27 February 2026 by imported>Outrowed (rename)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:Documentation header Template:Shortcut 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, Template:W links, and other external links.

Usage

{{tpl|1=<link>|2=<pipe name>|3=<link tag>}}
{{tpl|1=<link tag>}} (if Template:P and Template:P are omitted)

  • Template:P – the link to a page in the Minecraft Wiki. It may also be a https:// link to an external website.
  • Template:P – the name that appears instead of the link.
  • Template:P – the short link tag, see Template:Slink.
    • If there is only one argument passed, then Template:P is used to produce a link tag. This is intended to be placed after an existing link, see Template:Slink.

Examples

For example, a reader may think this link leads to another mainspace article named "Data generator":

Template:Produces

But when we view from the wikitext markup, it turns out it leads to an unfinished article in the wiki.vg merge project:

<syntaxhighlight lang="wikitext"> There are tools that can be used to generate data, that is, data generator, which can be accessed from server.jar. </syntaxhighlight>

In order to avoid this "surprise", we can use the template to hint the reader that it's a cross-namespace link:

<syntaxhighlight lang="wikitext"> There are tools that can be used to generate data, that is, Template:Tpl, which can be accessed from server.jar. </syntaxhighlight>

Template:Produces

The "vg" argument at the end tells the template that it's a wiki.vg merge link and shows the "<vg></vg>" tag.

Link tag only

If there is only one argument passed, then Template:P 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

<syntaxhighlight lang="wikitext"> List of game concepts found in Minecraft community:

</syntaxhighlight>

Template:Produces

List of link tags