Template:W: Difference between revisions

From Shareaza Wiki
Jump to navigation Jump to search
No edit summary
(I gave the template more possible ways of using.)
Line 1: Line 1:
== Template ==
== Template ==
<onlyinclude>[[Image:Wikipedia Icon.PNG|15px]] [http://en.wikipedia.org/wiki/{{{1}}} {{{2}}}][[Category:External Links]]</onlyinclude>
<onlyinclude>[[Image:Wikipedia Icon.PNG|15px]] [http://en.wikipedia.org/wiki/{{{1|}}} {{{2|{{{1|Wikipedia}}}}}}][[Category:External Links]]</onlyinclude>


== Motivation ==
== Motivation ==
Line 9: Line 9:
== 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.


== Example ==
== Example ==
  <nowiki>{{wiki|Shareaza|Shareaza}}</nowiki>
  <nowiki>{{wiki|Shareaza|Shareazas Wikipedia article}}</nowiki>
{{wiki|Shareaza|Shareaza}}
{{wiki|Shareaza|Shareazas Wikipedia article}}
<nowiki>{{wiki|Shareaza}}</nowiki>
{{wiki|Shareaza}}
<nowiki>{{wiki|2=Wiki}}</nowiki>
{{wiki|2=Wiki}}
<nowiki>{{wiki}}</nowiki>
{{wiki}}

Revision as of 23:31, 31 July 2010

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

Example

{{wiki|Shareaza|Shareazas Wikipedia article}}

Template:Wiki

{{wiki|Shareaza}}

Template:Wiki

{{wiki|2=Wiki}}

Template:Wiki

{{wiki}}

Template:Wiki