β

Template:W

This template is used to help create interwiki links without displaying the prefix, and without the need for repetition if the page name is to display; in this case understroke characters in the page name are replaced by space characters.

The default prefix is simply w: which creates a link to the English Wikipedia. However the language can be specified in the third parameter.

TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.

Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either useTemplateData=1 or useTemplateData=only on the /doc subpage and transcluding it with {{Documentation}} into the template. <nowiki>-tags can be wrapped around the the arguments, if required, to avoid templates being expanded.

Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw <templatedata>-tags into the Wikitext or the template as described in various Wikipediae.

This template is used to help create interwiki links without displaying the prefix, and without the need for repetition if the page name is to display; in this case understroke characters in the page name are replaced by space characters.

The default prefix is simply <tt>w:</tt> which creates a link to the English Wikipedia. However the language can be specified in the third parameter.

Template parameters

Parameter

Description

Type

Status

1

page name; also specific [sub]pages (e.g: user, category, talk, ...)

Default

main page of the wiki

Example

empty

Auto value

empty

Unknown

required

2

display text

Default

parameter #1

Example

empty

Auto value

empty

Unknown

optional

3

language code (ISO 639), or sisterproject prefix

Default

en

Example

empty

Auto value

empty

Unknown

optional

link

returns plain text instead of a link when set to link=no

Default

empty

Example

empty

Auto value

empty

Unknown

optional

Additional information

The template is intended to be used in the following namespaces: all namespaces

The template is intended to be used by the following user groups: all users