Template:Tag

From The Battle for Wesnoth Wiki

[[[{{{1}}}#.5B{{{2}}}.5D|{{{2}}}]]]

Usage

This template can be used to insert tags with links to their articles, nicely surrounded by square brackets. This template assumes that the tag is defined in a section whose name is of the form [tag2]. (For other types of links, see {{tag2}}.) If the tag in the section name is the same as the tag to be displayed, this template is used as

{{tag|SomethingWML|tag1}}

where "SomethingWML" is replaced by the name of the destination article and "tag1" is replaced by the name of the tag. If the section name and displayed tag differ, the section name gets specified before the displayed tag, as in the following:

{{tag|SomethingWML|tag2|tag1}}

where "SomethingWML" is replaced by the name of the destination article, "tag2" is replaced by the tag in the section link, and "tag1" is replaced by the tag to be shown on the current page (as the link text).

Examples

For example, "[set_variables]", can be produced by

{{tag|InternalActionsWML|set_variables}}

while "[literal]" can be produced by

{{tag|InternalActionsWML|set_variables|literal}}
This page was last edited on 7 April 2012, at 12:36.