Template:Wl
Documentation
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 [
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]]
Parameters
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.
Usage
{{Wl|Title}} {{Wl|Title|Link text}}
See the template's testcases:
Correct
{{Wl}}
{{Wl|Page title}}
{{Wl|Page title|link text}}
Incorrect
{{Wl|Page title|link text|something else?}}
See also[edit]
The complete family of templates similar to this one (with example output for each):
The above documentation is transcluded from Template:Wl/doc. (edit | history)
Editors can experiment in this template's sandbox (edit) and testcases (edit) pages.
Please add categories and interwikis to the /doc subpage. (See the subpages of this template.)