Template:w/documentation

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 – 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, 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

 * just using parameter 1 – gives:
 * using parameters 1 and 2 – gives:
 * also using parameter lang – gives:  (linking to the French Wikipedia article)

TemplateData
{	"params": { "1": {			"label": "article", "description": "Page to link on Wikipedia", "example": "Cursive script (East Asia)", "type": "line", "required": true },		"2": {			"label": "label", "description": "Text displayed on the link", "example": "cursive script", "type": "line", "suggested": true },		"lang": { "label": "language code", "type": "string", "example": "es", "description": "the ISO language code of the target Wikipedia.", "default": "en" }	},	"format": "inline", "description": "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 " }