Template:W/doc: Difference between revisions
More actions
use TemplateData |
m +expl |
||
| Line 51: | Line 51: | ||
103 <nowiki>{{</nowiki>W|Page name||it}} → {{w|Page name||it}}<br> | 103 <nowiki>{{</nowiki>W|Page name||it}} → {{w|Page name||it}}<br> | ||
103 <nowiki>{{</nowiki>W|Page name||fr}} → {{w|Page name||fr}} | 103 <nowiki>{{</nowiki>W|Page name||fr}} → {{w|Page name||fr}}<br> | ||
103 <nowiki>{{W|{{FULLPAGENAME}}|3=pl}}</nowiki> → {{W|{{FULLPAGENAME}}||pl}} | |||
120 <nowiki>{{</nowiki>W|Page name|Display name}} → {{w|Page name|Display name}} | 120 <nowiki>{{</nowiki>W|Page name|Display name}} → {{w|Page name|Display name}} | ||
Revision as of 07:15, 14 March 2014
This is used to help create interwiki links, without displaying the prefix, and without the need for repetition if the link text is the same as target page name.
- The default prefix is simply w: which creates a link to the English Wikipedia. However the language can be specified in the third parameter.
Usage
{{W |1= |2= |3= }}
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | page name; also specific [sub]pages (e.g: user, category, talk, ...) | main page of the wiki | required | |
2 | display text | parameter #1 | optional | |
3 | language code (ISO 639), or sisterproject prefix | en | optional | |
|
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
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 Newly created template documentation and imports Wikipedia's help about TemplateData • Commons-specific information This is used to help create interwiki links, without displaying the prefix, and without the need for repetition if the link text is the same as target page name.
| ||||||||||||||||||||
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
Localization
This template is not intended to be localized.
Examples
- All parameter combinations
003 {{W|3=es}} → Wikipedia [1]
003 {{W|3=pt}} → Wikipedia [1]
020 {{W||Main Page}} → Main Page
020 {{W||en:Main Page}} → en:Main Page
023 {{W||Ĉefpaĝo|eo}} → Ĉefpaĝo
100 {{W|Page name}} → Page name
103 {{W|Page name||it}} → Page name
103 {{W|Page name||fr}} → Page name
103 {{W|{{FULLPAGENAME}}|3=pl}} → Template:W/doc
120 {{W|Page name|Display name}} → Display name
123 {{W|Page name|Display name|nl}} → Display name
123 {{W|Page name|Display name|hu}} → Display name
- Complex page name examples
- de Benutzer Diskussion:Andreas 06/Spielwiese/Stadien der Fußball-Bundesliga
- fr Discussion aide:Catégorie/Archive3#Appels à volontaires pour Aide à la conception de l'arborescence
- he ענדערן הילף:אינהאלט
- pt Categoria:Cidades fantasmas da Califórnia • Predefinição Discussão:!Info pessoal
- 3= Template talk:Welcome/fr#Pas assez informatif
- es:s Archivo:Las Maravillas Del Cielo pg 7.jpg
- en:n Egyptian MP calls for web porn ban
- sv:v Surdegsbakning för hemmabagaren