Template:projectlink

Definition from Wiktionary, the free dictionary
Jump to: navigation, search

{{Template:PL:{{{1}}}|||lang=en|sc=|dab=}}


The following documentation is located at Template:projectlink/documentation. [edit]

This template is used in a Wiktionary entry to link to a page on an affiliated project. It's intended for "External links" sections.

For "References" sections use {{R:W}}.

Usage[edit]

This template requires only one parameter, the name of the project. By default, it links to the identically-titled article (except with an initial capital letter) on the English language project, with a message like this one:

Wikipedia-logo.png cloud on Wikipedia.en.Wikipedia:cloud

In addition, it puts a link to that article in the sidebar at left, assuming the reader is using the Monobook skin.

However, a few optional parameters are accepted:

  • The lang parameter is used to link to an article in a non-English project; if provided, it should be set to the language code used in interwiki links, which is usually (or always?) the first part of the article's domain name. For example, a link to an article on the French Wikipedia (fr.wikipedia.org) would set lang=fr.
  • The first parameter is used to link to page whose name isn't identical to that of the Wiktionary entry. This can be left empty to use the pagename. Alternatively, the dab parameter can be used to indicate that the target is a disambiguation page.
  • The second parameter is used to have different link text from the name of the linked article.

So, for example, {{projectlink|pedia|lang=fr|pétanque|la pétanque}} would produce the message:

Wikipedia-logo.png la pétanque on the French Wikipedia.fr.Wikipedia:pétanque

(though that's not necessarily a good idea; {{projectlink|pedia|lang=fr}} should quite suffice in this case).

As before, the link will appear in the sidebar as well.

Subtemplates[edit]

Wikipedia documentation