Template:Wp

From Gentoo Wiki
Jump to:navigation Jump to:search
[edit

Documentation

Note
This page is a template. It contains some standardized, often used text, which can be transcluded inside other pages. As this template is widely used in our wiki, it may be protected in which case only staff members can change it. Use the discussion page to propose enhancements or fixes, or to voice your opinion.

Allow linking to a Wikipedia article while indicating to the reader an external Wikipedia link.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
article name1

Name of Wikipedia article to link to

Example
DEC Alpha
Stringrequired
label2

Optional label if the article name is not appropriate to be shown as the link text.

Example
Alpha architecture
Stringoptional

Usage

See the template's testcases:


Correct

One anonymous parameter:
Wiki code
{{Wp|DEC Alpha}}
Main version
Sandbox version


anonymous parameters
Wiki code
{{Wp|DEC Alpha|Alpha architecture}}
Main version
Sandbox version


Incorrect

No parameter (error message)
Wiki code
{{Wp}}
Main version
{{Package template error}}
Parameter 1 not defined. For correct usage see Package template's documentation on the 1 parameter.
Sandbox version
{{Package template error}}
Parameter 1 not defined. For correct usage see Package template's documentation on the 1 parameter.


See also

Note
The above documentation is transcluded from Template:Wp/doc. (edit | history)
Editors can experiment in this template's sandbox (edit) and testcases (edit) pages.
Please add categories and interwikis to the /doc subpage. (See the subpages of this template.)