Template:Tag link

From PZwiki
Notebook.pngTemplate Documentation
PlushSpiffo.pngThis template is about creating a link to an item tag. For creating a template link, see Template:tlx.

{{Tag link}}, often abbreviated as {{tl}}, is a metatemplate (or macro template) used to quickly create a link to a tag in Item tags.

Usage

Use the following syntax, replacing 1 and 2. 2 is optional text for the link.

{{tl|1|2}}

Parameters

1Required
The value of the tag, this should be identical to the Tags value found in the files.
2
This is an optional parameter, that customizes the text of the link. If empty, the value of 1 will be used instead.

Examples

{{tl|Hammer}} = Hammer

{{tl|Hammer|This is a hammer.}} = This is a hammer.

How to translate

This template doesn't need to/shouldn't be translated, but you can translate the documentation of this template with the following steps:

  1. Create a subpage of this template with the language code of the language you want to translate to.
  2. Copy the code wrapped in the <noinclude> tag in this template into the page you created.
    {{Translation guide}} template should be removed from the translated documentation.
  3. Translate the page according to the translation requirements of normal pages.

See also

Editors can experiment in this template's sandbox.