Template:W/doc: Difference between revisions
Template page
More actions
m expansion |
m -link |
||
| Line 1: | Line 1: | ||
{{TemplateBox | {{TemplateBox | ||
|1=1 | |1=1 | ||
Revision as of 17:57, 27 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; may also specify 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
- ↑ It is recommended to give an explaining text with parameter #2, as shown in the other Main Page examples