Template:W: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 1: | Line 1: | ||
== Template == | == Template == | ||
<onlyinclude>[[Image:Wikipedia Icon.PNG]] [http://en.wikipedia.org/wiki/{{ | <onlyinclude>[[Image:Wikipedia Icon.PNG]] [http://en.wikipedia.org/wiki/{{urlencode:{{{1|}}}}} {{{2|{{{1|Wikipedia}}}}}}][[Category:External Links]]</onlyinclude> | ||
== Motivation == | == Motivation == | ||
Line 12: | Line 12: | ||
== Examples == | == Examples == | ||
* {{ | * {{w|Shareaza|Shareazas Wikipedia article}} | ||
<nowiki>{{ | <nowiki>{{w|Shareaza|Shareazas Wikipedia article}}</nowiki> | ||
* {{ | * {{w|Shareaza}} | ||
<nowiki>{{ | <nowiki>{{w|Shareaza}}</nowiki> | ||
* {{ | * {{w|2=Wiki}} | ||
<nowiki>{{ | <nowiki>{{w|2=Wiki}}</nowiki> | ||
* {{ | * {{w}} | ||
<nowiki>{{ | <nowiki>{{w}}</nowiki> | ||
Note that the template corrects the text for use in URLs, which means that for example, ''URI scheme'' will become ''{{ | Note that the template corrects the text for use in URLs, which means that for example, ''URI scheme'' will become ''{{urlencode:URI scheme}}''. However, this beaks some links, for example if a '/' is included, it will be transformed into ''{{urlencode:/}}''. Example: | ||
* {{ | * {{w|URI scheme}} | ||
<nowiki>{{ | <nowiki>{{w|URI scheme}}</nowiki> | ||
== See also == | == See also == | ||
* [[Template:G2]] - used for links to the {{g2}}. | * [[Template:G2]] - used for links to the {{g2}}. | ||
* [[Template:Trac]] - used for links to the {{trac}}. | * [[Template:Trac]] - used for links to the {{trac}}. |
Revision as of 23:42, 5 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 %2F. Example:
{{w|URI scheme}}
See also
- Template:G2 - used for links to the G2 Developer Network.
- Template:Trac - used for links to the Trac Wiki.