Template:W/doc: Difference between revisions
Template page
More actions
m -link |
m expl |
||
| Line 1: | Line 1: | ||
{{TemplateBox | {{TemplateBox | ||
|1=1 | |1=1 | ||
|1d=page name; | |1d=page name; also specific [sub]pages (e.g: user, category, talk, ...)<br><u>if empty</u>, a link to the main page is created | ||
|1def= | |1def= | ||
|1stat= | |1stat= | ||
| Line 34: | Line 34: | ||
===={{LangSwitch|default={{int:Usage}}|eo=Kiel uzi|ru=Применение}}==== | ===={{LangSwitch|default={{int:Usage}}|eo=Kiel uzi|ru=Применение}}==== | ||
;All possible combinations: | ;All possible combinations: | ||
000 <nowiki>{{</nowiki> | 000 <nowiki>{{</nowiki>W}} → [[:w:]] <ref>It is recommended to give an explaining text with parameter #2, as shown in the other ''Main Page'' examples</ref> | ||
003 <nowiki>{{</nowiki>W|||es}} → [[:es:]]<br> | 003 <nowiki>{{</nowiki>W|||es}} → [[:es:]]<br> | ||
003 <nowiki>{{</nowiki>W|||pt}} → [[:pt | 003 <nowiki>{{</nowiki>W|||pt}} → [[:pt:]] | ||
020 <nowiki>{{</nowiki>W||Main Page}} → {{w||Main Page}}<br> | 020 <nowiki>{{</nowiki>W||Main Page}} → {{w||Main Page}}<br> | ||
| Line 54: | Line 54: | ||
123 <nowiki>{{</nowiki>W|Page name|Display name|hu}} → {{w|Page name|Display name|hu}} | 123 <nowiki>{{</nowiki>W|Page name|Display name|hu}} → {{w|Page name|Display name|hu}} | ||
;Complex page name examples | |||
*de {{W|Benutzer Diskussion:Andreas 06/Spielwiese/Stadien der Fußball-Bundesliga|3=de}} | |||
*fr {{W|Discussion aide:Catégorie/Archive3#Appels à volontaires pour Aide à la conception de l'arborescence|3=fr}} | |||
*he {{W|ענדערן הילף:אינהאלט||he}} | |||
*pt {{W|Categoria:Cidades fantasmas da Califórnia|3=pt}} • {{W|Predefinição Discussão:!Info pessoal|3=pt}} | |||
*3= {{W|Template talk:Welcome/fr#Pas assez informatif||3=}} | |||
---- | ---- | ||
<references/> | <references/> | ||
Revision as of 11:04, 28 February 2012
English: This is used to help create interwiki links to Wikipedia.
- 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, ...) if empty, a link to the main page is created | empty | optional | |
2 | display text if empty, the value passed with parameter #1 is displayed | empty | optional | |
3 | language code (ISO 639), or sisterproject prefix if empty, the link is created to the English Wikipedia | empty | 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
⧼Usage⧽
- All possible combinations
003 {{W|||es}} → es:
003 {{W|||pt}} → pt:
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
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
- ↑ It is recommended to give an explaining text with parameter #2, as shown in the other Main Page examples