Template:W: Difference between revisions

From Shareaza Wiki
Jump to navigation Jump to search
(I gave the template more possible ways of using.)
(Migrated template code improvement from Quazaa wiki.)
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Template ==
== Template ==
<onlyinclude>[[Image:Wikipedia Icon.PNG|15px]] [http://en.wikipedia.org/wiki/{{{1|}}} {{{2|{{{1|Wikipedia}}}}}}][[Category:External Links]]</onlyinclude>
<!-- old code
[[Image:Wikipedia Icon.PNG]]&nbsp;[http://en.wikipedia.org/wiki/{{{destination|{{anchorencode:{{{1|}}}}}}}} {{{2|{{{destination|{{{1|Wikipedia}}}}}}}}}][[Category:External Links]] -->
 
<onlyinclude>[[Image:Wikipedia Icon.PNG]]&nbsp;[[Wikipedia:{{{1|Wikipedia}}}|{{{2|{{{1|Wikipedia}}}}}}]][[Category:External Links]]</onlyinclude>


== Motivation ==
== 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.
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]].'''
: '''See [[WikiProjects.Links]].'''


== Syntax ==
== Syntax ==
  <nowiki>{{wiki|*page name in the English Wikipedia*|*link text*}}</nowiki>
  <nowiki>{{wiki|*page name in the English Wikipedia*|*link text*}}</nowiki>
Note that neither argument 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.
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}}
<nowiki>{{w|Shareaza|Shareazas Wikipedia article}}</nowiki>
* {{w|Shareaza}}
<nowiki>{{w|Shareaza}}</nowiki>
* {{w|2=Wiki}}
<nowiki>{{w|2=Wiki}}</nowiki>
* {{w}}
<nowiki>{{w}}</nowiki>
Note that the template corrects the text for use in URLs, which means that for example, ''URI scheme'' will become ''{{anchorencode:URI scheme}}''.<!-- However, this beaks some links, for example if a '/' is included, it will be transformed into ''{{anchorencode:/}}''.--> Example:
* {{w|URI scheme}}
<nowiki>{{w|URI scheme}}</nowiki>
* {{w|April Fools' Day}}
<nowiki>{{w|April Fools' Day}}</nowiki>
 
<!-- Not necessary anymore
 
In the case the template breaks a link, use the parameter called <code>destination</code> in the following way:
* {{w|destination = April_Fools'_Day}}
<nowiki>{{w|destination = April_Fools'_Day}}</nowiki>
* {{w|destination = April_Fools'_Day|2=hello}}
<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. -->
== See also ==
* [[Template:G2]] - used for links to the {{g2}}.
* [[Template:Trac]] - used for links to the {{trac}}.
 
 
{{InSynkPage|{{Quazaa Wiki|Template:W}}|{{Quazaa Wiki}}}}


== Example ==
[[Category:Templates]]
<nowiki>{{wiki|Shareaza|Shareazas Wikipedia article}}</nowiki>
{{wiki|Shareaza|Shareazas Wikipedia article}}
<nowiki>{{wiki|Shareaza}}</nowiki>
{{wiki|Shareaza}}
<nowiki>{{wiki|2=Wiki}}</nowiki>
{{wiki|2=Wiki}}
<nowiki>{{wiki}}</nowiki>
{{wiki}}

Latest revision as of 20:33, 15 September 2012

Template

 Wikipedia

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. Example:

{{w|URI scheme}}
{{w|April Fools' Day}}

See also


  Wiki Synk

This page is kept in synchronization with the  Template:W page of the  Quazaa Wiki.

e