VOOZH about

URL: https://minecraft.wiki/w/Template:Tpl

⇱ Template:Tagged piped link – Minecraft Wiki


Template:Tagged piped link

From Minecraft Wiki
(Redirected from Template:Tpl)
Jump to navigation Jump to search
Documentation[view] [edit] [history] [purge]
Redirect

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.
    • If there is only one argument passed, then |1= is used to produce a link tag. This is intended to be placed after an existing link, see § Link tag only.

Examples

[edit source]

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

There are tools that can be used to generate data, that is, data generator, which can be accessed from server.jar.

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

There are tools that can be used to generate data, that is, data generator[vg], which can be accessed from server.jar.

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

Link tag only

[edit source]

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

List of game concepts found in Minecraft community:

List of link tags

[edit source]
[view] [edit] [history] [purge]The above documentation is transcluded from Template:Tagged piped link/doc.
Retrieved from "https://minecraft.wiki/w/Template:Tagged_piped_link?oldid=3529662"

Navigation menu