Template:W: Difference between revisions
(Added special parameter to the template for certain links to work.) |
m (Added some missing underscores...) |
||
Line 25: | Line 25: | ||
In the case the template breaks a link, use the parameter called <code>destination</code> in the following way: | In the case the template breaks a link, use the parameter called <code>destination</code> in the following way: | ||
* {{w|destination = | * {{w|destination = April_Fools'_Day}} | ||
<nowiki>{{w|destination = | <nowiki>{{w|destination = April_Fools'_Day}}</nowiki> | ||
* {{w|destination = | * {{w|destination = April_Fools'_Day|2=hello}} | ||
<nowiki>{{w|destination = | <nowiki>{{w|destination = April_Fools'_Day|2=hello}}</nowiki> | ||
Note that in case this parameter is used, the parameter <nowiki>{{{1}}}</nowiki> is ignored when used. | Note that in case this parameter is used, the parameter <nowiki>{{{1}}}</nowiki> is ignored when used. | ||
Revision as of 00:00, 6 August 2010
Template
Motivation
This template is thought to replace all links to the English Wikipedia. This makes it more easy to control external links in our Wiki.
- See WikiProjects.Links.
Syntax
{{wiki|*page name in the English Wikipedia*|*link text*}}
Note that neither parameter is necessary. If the second one misses, the linked to page title is used as link name, if both miss however, the template creates a link to the English Wikipedia. If only the first one misses, the second one can be used to precise a different name for the link to the English Wikipedia.
Examples
{{w|Shareaza|Shareazas Wikipedia article}}
{{w|Shareaza}}
{{w|2=Wiki}}
{{w}}
Note that the template corrects the text for use in URLs, which means that for example, URI scheme will become URI_scheme. However, this beaks some links, for example if a '/' is included, it will be transformed into /. Example:
{{w|URI scheme}}
In the case the template breaks a link, use the parameter called destination
in the following way:
{{w|destination = April_Fools'_Day}}
{{w|destination = April_Fools'_Day|2=hello}}
Note that in case this parameter is used, the parameter {{{1}}} is ignored when used.
See also
- Template:G2 - used for links to the G2 Developer Network.
- Template:Trac - used for links to the Trac Wiki.