ទំព័រគំរូ:PL:pedia/doc
Usage
[កែប្រែ]This template is used by {{projectlink|pedia}}
, which is used in a Wiktionary entry to link to a Wikipedia article; it's intended for "See also" or "External links" sections (someday we'll decide which, though by that point we might no longer be using it anyway).
For "References" sections use {{R:W}}
.
Parameters
[កែប្រែ]This template does not require any parameters; by default, it links to the identically-titled article (except with an initial capital letter) on the English Wikipedia, with a message like this one:
{{ Script error: The function "lookup_language" does not exist. |cloud|face=bold|lang=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 Wikipedia; 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 setlang=fr
. - The first parameter is used to link to a Wikipedia article 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:
{{ Script error: The function "lookup_language" does not exist. |la pétanque|face=bold|lang=fr}} លើtheវិគីភីឌា ។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.