This template has been protected from editing to prevent vandalism. Please discuss changes on the talk pageorrequest unprotection. |
Note: This template is used on a great lot of pages. In order not to put too much load on the servers, edits should be kept to a bare minimum. Please discuss proposed changes on the talk page first.
Afterwards, changes can initially be done at and tested with Template:W/sandbox.
|
This template is used to help create interwiki links without displaying the prefix, and without the need for repetition if the same page name is to display; understroke characters in the page name are replaced by space characters.
W
which creates a link to the English Wikipedia.en
can be specified in the third parameter.It is also possible to categorize using the (first or second) parameter.
{{W |1= }}
Parameter | Description | Default | Status | |
---|---|---|---|---|
1 | Page Name | Also specific [sub]pages or name spaces as user, category, talk ... | main page of the wiki | suggested |
2 | Display Text | {{{1}}} | optional | |
3 | Interwiki Prefix | language code (ISO 639-1), and/or sisterproject prefix | en | optional |
4 | category request | + or c: categorizes using parameter 1 ("+" or "c" can also be specified with parm 2 or 3) C: categorizes using parameter 2 (only when it exists; "C" can also be specified with parm 3); c and C enables modification of the parameter | empty | optional |
link | link otion | can change the intended usage of the template to create a link:
| empty | optional |
Template data | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
<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 template is used to help create interwiki links without displaying the prefix, <span style="font-weight:normal">and without the need for [[User talk:Perhelion/simpleSVGcheck.js#Link templates|repetition]] if the same page name is to display; understroke characters in the page name are ''replaced'' by space characters.</span>
|
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
{{Ud}} and other Interwiki link templates;
{{WA}}or{{وك}} links to ar:العربية
{{Wb}} links to bn:Wikipedia
{{Wc}} links to cs:Wikipedie
{{WC}} links to ca:Viquipèdia
{{Wd}} links to de:Wikipedia
{{Wda}} links to da:Wikipedia
{{We}} links to es:Wikipedia
{{Wet}} links to et:Vikipeedia
{{Weu}} links to eu:Wikipedia
{{WE}} links to eo:Wikipedia
{{Wf}} links to fr:Wikipédia
{{Wfa}} links to fa:ویکیپدیا
{{Wfi}} links to fi:Wikipedia
{{Wg}} links to gl:Wikipedia
{{Wh}} links to hu:Wikipédiá
{{Whe}} links to he:ויקיפדיה
{{Whi}} links to hi:विकिपीडिया
{{Wi}} links to it:Wikipedia
{{Wid}} links to id:Wikipedia
{{Wja}}or{{W日}} links to ja:ウィキペディア
{{Wka}} links to ka:ვიკიპედია
{{ವಿ}} links to kn:ವಿಕಿಪೀಡಿಯ
{{Wko}}or{{W말}} links to ko:위키백과
{{വി}} links to ml:വിക്കിപീഡിയ
{{Wlt}} links to lt:Vikipedija
{{Wlv}} links to lv:Vikipēdija
{{Wm}} links to mk:Википедија
{{Wn}} links to nl:Wikipedia
{{Wp}} links to pt:Wikipédia
{{WP}} links to pl:Wikipedia
{{Wr}} links to ru:Википедия
{{වි}} links to si:විකිපීඩියා
{{Wsk}} links to sk:Wikipédia
{{Wsl}} links to sl:Wikipedija
{{Wsr}} links to sr:Википедија
{{Wsu}} links to su:Wikipédia
{{Wsv}} links to sv:Wikipedia
{{Wth}}or{{ว}} links to th:วิกิพีเดีย
{{Wtr}} links to tr:Vikipedi
{{Wu}} links to uk:Вікіпедія
{{Wz}} links to zh:維基百科
The『W××』templates are shortcuts of the main template {{W}}, setting the language code with parameter 3: {{ W×× | link }} is just {{ W | link | 3 = ×× }}
the『W×』templates are abbreviated shortcuts for some very often used languages.
This template is not intended to be localized.
For linking to a sister project, an internal link such as {{W||en.wikipedia}}) is preferred over an external one as e.g. [http://en.wikipedia.org en.wikipedia].
Very often one (or more) of the names linked with a W
-template are also used for categorizing. As a simplification, the W
-template can care for both: the page name or the display text of the Template:W can be also used for this categorizing, by just adding the parameter "+", "c" or "C".
When it is not the correct category name, it can be modified:
Example: {{W|Toronto|+}} categorizes to Toronto;
{{W|Toronto|+|t=_in_art}} categorizes to Toronto in art
Numbers at line beginning indicate parameter use (0=parameter without value)
{{W}}
→ Wikipedia [1]{{W|3=es}}
→ Wikipedia [1] {{We}}: {{ We }} → es:Wp{{W|3=pt}}
→ Wikipedia [1]{{W||Main Page}}
→ Main Page{{W||en:Main Page}}
→ en:Main Page{{W||Ĉefpaĝo|eo}}
→ Ĉefpaĝo{{W||pt:Wikipedia|pt}}
→ pt:Wikipedia {{Wp}}: {{ Wp }} → pt:Wp{{W||pt:Wp|pt}}
→ pt:Wp (preferred style of a link to a national mainpage){{W||de:Wp|de}}
→ de:Wp {{Wd}}: {{ Wd }} → de:Wp{{W|Page name}}
→ Page name{{Wf|Paris|c}}
→ Paris + [[Category:Paris]]
{{W|Page name||it}}
→ Page name {{Wi}}: {{ Wi }} → it:Wp{{W|Page name||fr}}
→ Page name {{Wf}}: {{ Wf }} → fr:Wp{{W|{{FULLPAGENAME}}|3=pl}}
→ Template:W{{W|Page name|Display name}}
→ Display name{{W|Page name|Display name|nl}}
→ Display name {{Wn}}: {{ Wn }} → nl:Wp{{W|Page name|Display name|hu}}
→ Display name {{Wh}}: {{ Wh }} → hu:Wp
[edit subpage]
Template {{W}} - examples | short | Result | links to |
---|---|---|---|
{{w||en:WP}} | {{W}} | en:WP | en:Main page |
{{w|Braille#Lletres i nombres||ca)}} | Braille#Lletres i nombres | ca:article page | |
{{w|template:Commonscat||de}} | {{Wd|template:Commonscat}} | template:Commonscat | de:Vorlage:Commonscat |
{{w|category:Liste d'artistes||fr}} | {{Wf|category:Liste d'artistes}} | category:Liste d'artistes | fr:Catégorie:Liste d'artistes |
{{w|file:Coverkill.jpg||pt}} | {{Wp|file:Coverkill.jpg}} | file:Coverkill.jpg | pt:Ficheiro:Coverkill.jpg |
{{w|user:Feketetomi||hu}} | {{Wh|user:Feketetomi}} | user:Feketetomi | hu:Szerkesztő:Feketetomi |
{{w|talk:Merano#Rino Gaetano e Merano|3=it)}} | {{Wi|talk:Merano#Rino Gaetano e Merano)}} | talk:Merano#Rino Gaetano e Merano | it:Discussione:Merano |
{{w|Carnivora||wikispecies)}} | {{W|Carnivora||species)}} | Carnivora | Wikispecies:Carnivora |
In all Wikis, the English namespaces (e.g. file, user) work as well as the different national ones.
{{Multilingual link}}
creates a link to Wikipedia article in user's interface language.