From Gentoo Wiki
Jump to:navigation Jump to:search
This page is a template. It contains some standardized, often used text, which can be transcluded inside other pages. As this template is widely used in our wiki, it may be protected in which case only staff members can change it. Use the discussion page to propose enhancements or fixes, or to voice your opinion.

This template provides a convenient way of referring to the wiki markup necessary to create a wikilink — i.e., the [[double-brackets]] syntax — without having to use a <nowiki> element or HTML entities like &#91; to suppress parsing of the link.

While such "fake" wikilinks are useful in Help pages or on talk pages, they should not appear in articles (in the main namespace).

The resulting text is not displayed using any special formatting. Other similar templates that do provide additional formatting are listed below.

The name of this template is based on the fact that it displays the markup necessary to make a Wikilink.

Note that a template is not necessary to produce an active wikilink with surrounding brackets:

[[[[Main Page]]]] → [[Main Page]]


Parameter name Required? Default value Description
Anonymous parameter 1 No (n/a) Text to "link".
Anonymous parameter 2 No (n/a) Optional "pipe" text.

Note that calling this template with no parameters is fine, as shown below.


{{Wl|Title|Link text}}

See the template's testcases:


No parameter
Wiki code
Main version
Sandbox version

One unnamed parameter
Wiki code
{{Wl|Page title}}
Main version
[[Page title]]
Sandbox version

Two unnamed parameters
Wiki code
{{Wl|Page title|link text}}
Main version
[[Page title|link text]]
Sandbox version


Three unnamed parameters (not supported)
Wiki code
{{Wl|Page title|link text|something else?}}
Main version
[[Page title|link text]]
Sandbox version

See also[edit]

The complete family of templates similar to this one (with example output for each):

  • {{Wl}} – show markup for Wikilink → [[fubar]]
  • {{Wlc}} – show markup for Wikilink using <code> element → [[fubar]]
  • {{Wlm}} – show markup for Wikilink using a monospace font → [[fubar]]