Template:Tag2

From The Battle for Wesnoth Wiki
Revision as of 00:23, 28 March 2012 by JaMiT (talk | contribs) (A link-formatting template)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

[[[{{{1}}}|{{{2}}}]]]

Usage

This template can be used to insert tags with links to their articles, nicely surrounded by square brackets. The basic format is similar to that used for normal wikilinks:

{{tag2|SomethingWML|tag_name}}
{{tag2|SomethingWML#Section_Name|tag_name}}

where "SomethingWML" is replaced by the name of the destination article, "Section_Name" is replaced by the section name as used in links, and "tag_name" is replaced by the tag to be shown on the current page (as the link text). If the section name is of the form [tag], the {{tag}} template might be more convenient.

Examples

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

{{tag|ScenarioWML#The_.5Bscenario.5D_tag|scenario}}
This page was last edited on 28 March 2012, at 00:23.