Template:Wikipedia/doc
< Template:Wikipedia
Jump to navigation
Jump to search
Revision as of 19:19, 18 September 2022 by Gwyneth Llewelyn (talk | contribs) (→Examples: Add some real examples from Wikipedia.org)
This is a documentation subpage for Template:Wikipedia. It contains usage information, categories and other content or metadata that is not part of the original template. |
This template is useful to simply create a link to Wikipedia.
Usage
This template is in flux; currently, a small Wikipedia icon is always shown to explain that the link is external to the SL Wiki. This might change in the future |
- First parameter (mandatory): the actual pagename on Wikipedia (or in the target wiki of the interwiki code specified in the first parameter)
- it is the Pagename in URL "//xx.wikipedia.org/wiki/Pagename");
- note however that this parameter should not be URL-encoded (with overlong
%NN%NN
sequences) but should readable (in native UTF-8), also preferably with spaces rather than underscores between words.
- Second parameter: the text to display with the link. If unset, the template displays the title of the page (first parameter).
There are also three named parameters which define whether some parts of the link are shown:
lang
: language for the destination page (default: current language)icon
: if set tono
, the template doesn't display the Wikipedia icon;- any other value (or if the parameter is not specified) will display this icon.
Examples
{{Markup2|m={{Wikipedia|Second Life|Second Life}}|r= Second Life |m1={{Wikipedia|lang=it|OpenStreetMap|OSM}}|r1= [https://it.wikipedia.org/wiki/OpenStreetMap OSM} ]
See also
- The other, similar Template:WikiIcon, by default, does exactly what it says: draws an icon.
- Template:Wiki does approximately the same thing as this template (may be merged in the future)