Template:w

Hello, you have come here looking for the meaning of the word Template:w. In DICTIOUS you will not only get to know all the dictionary meanings for the word Template:w, but we will also tell you about its etymology, its characteristics and you will know how to say Template:w in singular and plural. Everything you need to know about the word Template:w you have here. The definition of the word Template:w will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofTemplate:w, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.

]


This template is for having shorter links to an English Wikipedia article when the link is identical to its label. It takes the following parameters:

  • |1= (required) – the page title on Wikipedia to which you wish to link
  • |2= – the text that the template displays. Default is the value entered in |1=
  • |lang= – the ISO language code of the target Wikipedia. Default is en, for English.

A similar effect can be accomplished using the pipe trick: ] is converted to ] during the pre-save transform, which renders as Chicken. Only one interwiki prefix can be stripped in this way. ] transforms to ].

See also Template:wikipedia, which inserts a box with a link to the Wikipedia article, and has no required parameters.

Examples

Notes

Because of its simplicity, the template can be substituted using subst:

  • {{subst:w|William Shakespeare|Shakespeare}} gives: ]

However, substituting {{subst:w|The History of the Decline and Fall of the Roman Empire}} gives an unwieldy duplication of content the template is here to avoid in the first place: ]

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools.

TemplateData for w

This template is for having shorter links to an English Wikipedia article when the link is identical to its label. It had one mandatory parameter. There is a similar one without any mandatory parameter {{wikipedia}}

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
article1

Page to link on Wikipedia

Example
Cursive script (East Asia)
Linerequired
label2

Text displayed on the link

Example
cursive script
Linesuggested
language codelang

the ISO language code of the target Wikipedia.

Default
en
Example
es
Stringoptional