Template:Wu
Interwiki link to uk:Wikipedia
Short form for {{W|{{{1}}}|{{{2|}}}|uk}}
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.
- The default template name is simply
W
which creates a link to the English Wikipedia.
- However any language code (>400 templates) instead of
uk
can be specified in the third parameter.
- However any language code (>400 templates) instead of
It is also possible to categorize using the (first or second) parameter.
Usage
{{Wu |1= }}
Template parameters
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 | uk | 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 option | can change the intended usage of the template to create a link:
| empty | 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 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>
|
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
See also
{{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:위키백과
{{Wky}} links to ky:Википедия
{{വി}} 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.
- More W× templates are elsewhere in use:
- {{Wso}} links to Wikisource
- {{Ws}} for a linkbox to Wikispecies, {{WS}} to WikispeciesCompact,
- {{Wt}} for the link to Wiktionary,
- {{Wa}} for Walloon language, {{Wo}} for Wolof language, and {{War}} and {{Wuu}}.
- but there are no other language codes starting with "w", so plenty of "W×" templates may be created.
Localization
This template is not intended to be localized.
Recommendation
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].
Category option
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".
- Modification of the "cat" parameter:
When it is not the correct category name, it can be modified:
- with " =" a number of characters can be specified to strip on the left of the parameter,
- with "-=" to strip from the end of the parameter.
- To perform the " " and/or "-" stripping a module is invoked. When no ( /-)-stripping is needed, use ' ' instead of 'c' for less effort.
- With "h=" or "t=" text can be specified to prefix and/or trail the parameter.
Example: {{W|Toronto| }} categorizes to Toronto;
{{W|Toronto| |t=_in_art}} categorizes to Toronto in art
Examples
- All parameter combinations
Numbers at line beginning indicate parameter use (0=parameter without value)
- 020
{{W||Main Page}}
→ Main Page - 020
{{W||en:Main Page}}
→ en:Main Page
- 023
{{W||Ĉefpaĝo|eo}}
→ Ĉefpaĝo - 023
{{W||pt:Wikipedia|pt}}
→ pt:Wikipedia {{Wp}}: {{ Wp }} → pt:Wp - 023
{{W||pt:Wp|pt}}
→ pt:Wp (preferred style of a link to a national mainpage) - 023
{{W||de:Wp|de}}
→ de:Wp {{Wd}}: {{ Wd }} → de:Wp
- 103
{{W|Page name||it}}
→ Page name {{Wi}}: {{ Wi }} → it:Wp - 103
{{W|Page name||fr}}
→ Page name {{Wf}}: {{ Wf }} → fr:Wp - 103
{{W|{{FULLPAGENAME}}|3=pl}}
→ Template:Wu
- 120
{{W|Page name|Display name}}
→ Display name
- 123
{{W|Page name|Display name|nl}}
→ Display name {{Wn}}: {{ Wn }} → nl:Wp - 123
{{W|Page name|Display name|hu}}
→ Display name {{Wh}}: {{ Wh }} → hu:Wp
- ↑ a b c It is recommended to use parameter #2 giving an explaining text, as shown in the “023” Main Page examples.
- Complex page name examples
[ subpage]
General Interwiki link
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.