Template:Wg
Wikipédia
Interwiki link to gl:Wikipédia
This template is used to help create interwiki links without displaying the prefix, and without the need for repetition if the page name is to display; in this case 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 the language can be specified in the third parameter instead of
gl
.
Usage
{{Wg |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 | optional | |
2 | display text | parameter #1 | optional | |
3 | language code (ISO 639-1), and/or sisterproject prefix | gl | optional | |
link | 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, and without the need for repetition if the page name is to display; in this case understroke characters in the page name are ''replaced'' by space characters.
|
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
⧼Seealso⧽
{{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
{{We}} links to es:Wikipedia
{{Wf}} links to fr:Wikipédia
{{Wfa}} links to fa:ویکیپدیا
{{Wg}} links to gl:Wikipedia
{{Wh}} links to hu:Wikipédiá
{{Whe}} links to he:ויקיפדיה
{{Wi}} links to it:Wikipedia
{{W日}} or {{Wja}} links to ja:ウィキペディア
{{ವಿ}} links to kn:ವಿಕಿಪೀಡಿಯ
{{W말}} or {{Wko}} links to ko:위키백과
{{വി}} links to ml:വിക്കിപീടിയ
{{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:විකිපීඩියා
{{Wsl}} links to sl:Wikipedija
{{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:維基百科
All these "W×" templates are shortcuts of the main template {{W}}, setting the language code with parameter 3: {{ W× | link }} is just {{ W | link | 3 = × }}
- More W× templates are elsewhere in use:
- {{Ws}} for a linkbox to Wikispecies,
- {{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 (e.g. [http://en.wikipedia.org en.wikipedia]).
Examples
- All parameter combinations
Numbers at line beginning indicate parameter use (0=parameter without value)
- 000
{{W}}
→ [[:w:Lua error in Module:Wikidata_label at line 271: attempt to index field 'wikibase' (a nil value).|Lua error in Module:Wikidata_label at line 271: attempt to index field 'wikibase' (a nil value).]] [1]
- 003
{{W|3=es}}
→ [[:es:Lua error in Module:Wikidata_label at line 271: attempt to index field 'wikibase' (a nil value).|Lua error in Module:Wikidata_label at line 271: attempt to index field 'wikibase' (a nil value).]] [1] {{We}}: {{ We }} → es:Wp - 003
{{W|3=pt}}
→ [[:pt:Lua error in Module:Wikidata_label at line 271: attempt to index field 'wikibase' (a nil value).|Lua error in Module:Wikidata_label at line 271: attempt to index field 'wikibase' (a nil value).]] [1]
- 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
- 100
{{W|Page name}}
→ Page name
- 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:Wg
- 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
- Complex page name examples
3=de | de:Wikipedia | Benutzer Diskussion:Andreas_06/Spielwiese/Stadien_der_Fußball-Bundesliga |
3=fr | fr:Wikipédia | Discussion aide:Catégorie/Archive3#Appels à volontaires pour Aide à la conception de l'arborescence |
3=yi | yi:Wikipedia | ענדערן הילף:אינהאלט |
3=pt | pt:Wikipedia | Categoria:Cidades fantasmas da Califórnia • Predefinição Discussão:!Info pessoal |
3= | en:Wikipedia | Template talk:Welcome/fr#Pas assez informatif |
3=nl:b | nl:Wikibooks | Scalable Vector Graphics/Stijl |
3=en:d | en:Wikidata | Project chat |
3=en:n | en:Wikinews | Egyptian MP calls for web porn ban |
3=fi:q | fi:Wikiquote | Elizabeth II |
3=es:s | es:Wikisource | Archivo:Las Maravillas Del Cielo pg 7.jpg |
3=sv:v | sv:Wikiversity | Surdegsbakning för hemmabagaren |
3=pl:voy | pl:Wikivoyage | San Francisco |
3=lt:wikt | lt:Wiktionary | Sąrašas:Kinų hieroglifų raktai |
3=d | Wikidata | Property:P4896 |
3=m | Metawiki | VisualEditor/Newsletter/2014/November/ka |
3=mw | Mediawiki | Extension:ParserFunctions/it |
3=species | Wikispecies | Verrucaria halizoa |
3=en:commons | en:Commons | Template:W |
{{Commons:Link templates/Interwiki links}}