Template:W/doc: Difference between revisions
More actions
m expansion |
Use existing wikispecies interwiki prefix instead of nonexistent species |
||
| (142 intermediate revisions by 36 users not shown) | |||
| Line 1: | Line 1: | ||
{{ | <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --><!-- | ||
-->{{#switch:{{BASEPAGENAME}}|W|={{Heavily used template|3=✔}}}}<!-- | |||
-->{{TemplateBox | |||
|1=1 | |||
| 1label-en = Page Name | |||
| 1label-de = Seitenname | |||
|1d-en=Also specific [sub]pages or ''name spaces'' as user, category, talk ... | |||
|1d-de=Auch spezifische [Unter]seiten oder Namensräume wie Benutzer, Kategorie, Diskussion … | |||
|1def-en=main page of the wiki | |||
|1def-de=Hauptseite dieser Wikipedia | |||
| 1stat = suggested | |||
| 1type = wiki-page-name | |||
| 2 = 2 | |||
| 2label-en = Display Text | |||
| 2label-de = Angezeigter Text | |||
| 2def = <code><nowiki>{{{1}}}</nowiki></code> | |||
| 2def-td = <nowiki>{{{1}}}</nowiki> | |||
| 2stat = optional- | |||
| 2type = line | |||
|3=3 | |3=3 | ||
|3d=language code (ISO 639), or sisterproject prefix<br>< | | 3label-en = Interwiki Prefix | ||
| | |3d-en=language code ({{w|List of ISO 639-1 codes|ISO 639-1}}), and/or sisterproject prefix | ||
| | |3d-de=Sprachcode ({{Wd|ISO 639}}) (z. B.: it für {{W||italienische Wikipedia|it}}), und/oder Präfix eines Schwesterprojekts (z. B.: <code>d</code> für {{W||Wikidata|d}} oder <code>voy</code> für {{W||Wikivoyage|voy}}) | ||
| | |3d-td-en=language code (ISO 639), and/or sisterproject prefix | ||
| | |3d-td-de=Sprachcode (ISO 639) (z. B.: it für italienische Wikipedia), und/oder Präfix eines Schwesterprojekts (z. B.: <code>d</code> für Wikidata oder <code>voy</code> für Wikivoyage) | ||
* The default | |3def=<code>{{#switch:{{BASEPAGENAME}}<!-- | ||
{{eo | -->|W|=en|WA|وك=ar|Wb=bn|Wc=cs|WC=ca|Wd=de|We=es|Wf=fr|Wg=gl|Wh=hu<!-- | ||
* La prefikso sen specifo estas simple < | -->|Wi=it|W日a|Wಿ|ಿ=kn>|Wky=ky|വി=ml|Wm=mk|Wn=nl|Wnb|Wnn|Wno=nn|W말=ko|Wp=pt|WP=pl<!-- | ||
-->|Wr=ru|Wවි=si|Wu=uk|Wz=zh|{{Str right|{{BASEPAGENAME}}|1}}}}</code> | |||
|3stat=optional- | |||
|3type = string | |||
| 4=4 | |||
| 4label-en = category request | |||
| 4label-de = Kategorie code | |||
|4d-en=+ or c: categorizes using parameter 1 ("+" or "c" can also be specified with parm 2 or 3)<br>C: categorizes using parameter 2 (only when it exists; "C" can also be specified with parm 3); c and C enables [[#Mod|modification]] of the parameter | |||
|4d-de= + oder c: kategorisiert mit Parameter 1 ("+" oder "c" auch als Parameter 2 oder 3)<br>C: kategorisiert mit Parameter 2 (nur wenn dieser vorhanden ist; "C" auch als Parameter 3); bei c und C kann der Parameter [[#Mod|modifiziert]] werden | |||
|4stat=optional- | |||
|4type = code | |||
|5=link | |||
|5label-en = link option | |||
|5label-de = link Option | |||
|5d-de=ändert den ursprünglichen Zweck dieser Link-Vorlage | |||
*<code>link=no</code>, <code>link=n</code>, <code>link=-</code> oder nur <code>link=</code>: gibt Parameter 2 oder 1 als nur-Text anstelle eines Link aus | |||
*<code>link=none</code>: macht den Einsatz der Vorlage an dieser Stelle fragwürdig (Platzhalter?), denn es wird gar nichts gemacht (eine eventuelle Kategoriserung erfolgt jedoch jedoch gemäß Parameter 4) | |||
*jeder andere Wert: wird genau so ausgegeben; kann ein Link (<nowiki>{{...}}, [[...]]</nowiki>) sein, oder sonst was. | |||
|5d-en=can change the intended usage of the template to create a link: | |||
*<code>link=no</code>, <code>link=n</code>, <code>link=-</code> or just <code>link=</code>: returns parameter 2 or 1 as plain text instead of the link | |||
: may be useful when the thought page does not (yet) exist | |||
*<code>link=none</code>: no transclusion - does nothing (but categorization is possible) | |||
*any other value: is displayed as-it-is; may be a link (<nowiki>{{...}}, [[...]]</nowiki>) or not. | |||
| 5av = no | |||
| 5stat=optional- | |||
| 5type = string | |||
|name={{BASEPAGENAME}} | |||
|desc-en=This template is used to help create interwiki links without displaying the prefix, {{Nobold|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.}} | |||
* {{Nobold|The default template name is simply <code>{{T0|W}}</code> which creates a link to the {{W||English Wikipedia}}.}} | |||
:* {{Nobold|However any {{w|List of ISO 639-1 codes|language code}} (>400 {{C|Language templates|templates}}) instead of <code>{{#switch:{{BASEPAGENAME}}<!-- | |||
-->|W|=en|WA|وك=ar|Wb=bn|Wc=cs|WC=ca|Wd=de|We=es|Weu|Wf=fr|Wg=gl|Wh=hu<!-- | |||
-->|Wi=it|W日a|Wಿ|ಿ=kn>|Wky=ky|വി=ml|Wm=mk|Wn=nl|Wnb|Wnn|Wno=nn|W말=ko|Wp=pt|WP=pl<!-- | |||
-->|Wr=ru|Wවි=si|Wu=uk|Wz=zh|{{Str right|{{BASEPAGENAME}}|1}}}}</code> can be specified in the third parameter.}} | |||
It is also possible to categorize {{Nobold|using the (first or second) parameter.}} | |||
|desc-de=Diese Vorlage wird verwendet, um Interwiki-Links ohne Präfix zu erzeugen, {{Nobold|und dies ohne die [[User talk:Perhelion/simpleSVGcheck.js#Link templates|Wiederholung]] des Link-Textes, wenn dieser mit dem Zielseitennamen identisch ist.}} | |||
* {{Nobold|Die Standard-Vorlage ist {{T0|W}}, sie erstellt einen Link zur englischen Wikipedia. Eine andere Sprache kann im dritten Parameter angegeben werden.}} | |||
Zusätzlich kann {{Nobold|nach dem Seitennamen (siehe Parameter 4)}} kategorisiert werden. | |||
|desc-eo=Ĉi tiu ŝablono faciligas kreon de intervikiaj ligiloj. | |||
* {{Nobold|La prefikso sen specifo estas simple <kbd>w:</kbd> (kio nuntempe signifas anglalingvan Vikipedion), tamen lingvo estas specifebla per la tria argumento.}} | |||
|namespace=all | |namespace=all | ||
|usergroup=all | |usergroup=all | ||
|placement= | |placement= | ||
|usage-notes= | |usage-notes=Interwiki prefixes{{Colon}}<dl> | ||
<dt>Wikipedia</dt> | |||
<dd>wikipedia</dd> | |||
<dd>wp</dd> | |||
<dd>w</dd> | |||
<dt>Wiktionary</dt> | |||
<dd>wiktionary</dd> | |||
<dd>wikt</dd> | |||
<dt>Wikiquote</dt> | |||
<dd>wikiquote</dd> | |||
<dd>wq</dd> | |||
<dd>q</dd> | |||
<dt>Wikisource</dt> | |||
<dd>wikisource</dd> | |||
<dd>ws</dd> | |||
<dd>s</dd> | |||
<dt>Wikibooks</dt> | |||
<dd>wikibooks</dd> | |||
<dd>wb</dd> | |||
<dd>b</dd> | |||
<dt>Wikiversity</dt> | |||
<dd>wikiversity</dd> | |||
<dd>wv</dd> | |||
<dd>v</dd> | |||
<dt>Wikispecies</dt> | |||
<dd>wikispecies</dd> | |||
<dd>species</dd> | |||
<dd>wsp</dd> | |||
<dt>Wikinews</dt> | |||
<dd>wikinews</dd> | |||
<dd>wn</dd> | |||
<dd>n</dd> | |||
<dt>Wikivoyage</dt> | |||
<dd>wikivoyage</dd> | |||
<dd>voy</dd> | |||
<dt>Wikidata</dt> | |||
<dd>wikidata</dd> | |||
<dd>wd</dd> | |||
<dd>d</dd> | |||
<dt>Wikimedia Commons</dt> | |||
<dd>commons</dd> | |||
<dd>c</dd> | |||
<dt>Wikifunctions</dt> | |||
<dd>wikifunctions</dd> | |||
<dd>func</dd> | |||
<dd>f</dd> | |||
<dt>Meta-Wiki</dt> | |||
<dd>meta</dd> | |||
<dd>m</dd> | |||
<dd>metawiki</dd> | |||
<dd>metawikimedia</dd> | |||
<dd>metawikipedia</dd> | |||
<dt>Wikimedia Incubator</dt> | |||
<dd>incubator</dd> | |||
<dd>inc</dd> | |||
<dt>Wikimedia Outreach</dt> | |||
<dd>outreach</dd> | |||
<dd>outreachwiki</dd> | |||
<dt>Wikimedia Foundation</dt> | |||
<dd>foundation</dd> | |||
<dd>wmf</dd> | |||
<dd>wikimedia</dd> | |||
<dt>MediaWiki.org</dt> | |||
<dd>mediawikiwiki</dd> | |||
<dd>mw</dd> | |||
<dd>mediawiki</dd> | |||
<dt>Wikitech</dt> | |||
<dd>wikitech</dd> | |||
<dd>labsconsole</dd> | |||
<dt>Wikimedia Strategy</dt> | |||
<dd>strategy</dd> | |||
<dt>Wikimedia Quality</dt> | |||
<dd>quality</dd> | |||
<dt>SUL util</dt> | |||
<dd>sulutil</dd> | |||
<dt>Stewards' noticeboard / spcom</dt> | |||
<dd>spcom</dd> | |||
<dt>Toolforge</dt> | |||
<dd>toolforge</dd> | |||
<dd>toollabs</dd> | |||
<dt>Phabricator</dt> | |||
<dd>phabricator</dd> | |||
<dd>phab</dd> | |||
<dd>bugzilla</dd> | |||
<dd>mediazilla</dd> | |||
<dt>Wikimania</dt> | |||
<dd>wikimania</dd> | |||
<dd>wmania</dd> | |||
<dd>wm</dd> | |||
<dt>Wikimania 2012</dt> | |||
<dd>wikimania2012</dd> | |||
<dd>wm2012</dd> | |||
<dt>Wikimania 2013</dt> | |||
<dd>wikimania2013</dd> | |||
<dd>wm2013</dd> | |||
</dl> | |||
|type=linkage | |type=linkage | ||
|example= | |example= | ||
|i18n-method= | |i18n-method=- | ||
|i18n-desc= | |i18n-desc= | ||
|i18n-mediawiki-msg= | |i18n-mediawiki-msg= | ||
|seealso= | |seealso={{LangSwitch<!-- | ||
-->|de={{Tl|Ud}} und andere {{C|Interwiki link templates|Interwiki Link Vorlagen}}; | |||
---- | |||
{{Tl|WA}} oder {{T|وك}} verbinden zur arabischen {{WA||ar:العربية}}<br><!-- وك --> | |||
{{Tl|Wb}} verbindet zur bengalischen {{Wb||bn:উইকিপিডিয়া}}<br> | |||
{{Tl|Wc}} verbindet zur tschechischen {{Wc||cs:Wikipedie}}<br> | |||
{{Tl|WC}} verbindet zur katalanischen {{WC||ca:Viquipèdia}}<br> | |||
{{Tl|Wd}} verbindet zur deutschen {{Wd||de:Wikipedia}}<br> | |||
{{Tl|Wda}} verbindet zur dänischen {{Wda||da:Wikipedia}}<br> | |||
{{Tl|We}} verbindet zur spanischen {{We||es:Wikipedia}}<br> | |||
{{Tl|Wet}} verbindet zur estonischen {{Wet||et:Vikipeedia}}<br> | |||
{{Tl|Weu}} verbindet zur baskischen {{Weu||eu:Wikipedia}}<br> | |||
{{Tl|WE}} verbindet zur Esperanto-{{WE||eo:Wikipedia}}<br> | |||
{{Tl|Wf}} verbindet zur französischen {{Wf||fr:Wikipédia}}<br> | |||
{{Tl|Wfa}} verbindet zur persischen {{Wfa||fa:ویکیپدیا}}<br> | |||
{{Tl|Wfi}} verbindet zur finnischen {{Wfi||fi:Wikipedia}}<br> | |||
{{Tl|Wg}} verbindet zur galischen {{We||gl:Wikipedia}}<br> | |||
{{Tl|Wh}} verbindet zur ungarischen {{Wh||hu:Wikipédia}}<br> | |||
{{Tl|Whe}} verbindet zur hebräischen {{Whe||he:ויקיפדיה}}<br> | |||
{{Tl|Whi}} verbindet zur indischen {{Whi||hi:विकिपीडिया}}<br> | |||
{{Tl|Whr}} verbindet zur kroatischen {{Whr||hr:Wikipedija}}<br> | |||
{{Tl|Wid}} verbindet zur indonesischen {{Wid||id:Wikipedia}}<br> | |||
{{Tl|Wja}} oder {{Tl|W日|W<small>日</small>}} verbinden zur japanischen {{W日||ja:ウィキペディア}}<br> | |||
{{Tl|Wka}} verbindet zur georgischen {{Wka||ka:ვიკიპედია}}<br> | |||
{{Tl|ವಿ}} verbindet zur Kannada {{ವಿ||kn:ವಿಕಿಪೀಡಿಯ}}<br> | |||
{{Tl|Wko}} oder {{Tl|W말}} verbinden zur koreanischen {{W말||ko:위키백과}}<br> | |||
{{tl|Wky}} verbindet zur kirgisistanistan {{Wky||ky:Википедия}}<br> | |||
{{tl|വി}} verbindet zur malayischen {{വി||ml:വിക്കിപീഡിയ}}<br> | |||
{{Tl|Wlt}} verbindet zur lithuanischen {{Wlt||lt:Vikipedija}}<br> | |||
{{Tl|Wlv}} verbindet zur latvianischen {{Wlv||lv:Vikipēdija}}<br> | |||
{{Tl|Wm}} verbindet zur mazedonischen {{Wm||mk:Википедија}}<br> | |||
{{Tl|Wn}} verbindet zur niederländischen {{Wn||nl:Wikipedia}}<br> | |||
{{Tl|Wp}} verbindet zur portugiesischen {{Wp||pt:Wikipédia}}<br> | |||
{{Tl|WP}} verbindet zur polnischen {{WP||pl:Wikipedia}}<br> | |||
{{Tl|Wr}} verbindet zur russischen {{Wr||ru:Википедия}}<br> | |||
{{Tl|වි}} verbindet zur singhalesischen {{වි||si:විකිපීඩියා}}<br> | |||
{{Tl|Wsk}} verbindet zur slowakischen {{Wsk||sk:Wikipédia}}<br> | |||
{{Tl|Wsl}} verbindet zur slowenischen {{W||sl:Wikipedija}}<br> | |||
{{Tl|Wsr}} verbindet zur serbischen {{Wsr||sr:Википедија}}<br> | |||
{{Tl|Wsu}} verbindet zur sundanesischen {{Wsu||su:Wikipédia}}<br> | |||
{{Tl|Wsv}} verbindet zur schwedischen {{W||sv:Wikipedia}}<br> | |||
{{Tl|Wth}} oder {{T|ว}} verbinden zur thai-{{W||th:วิกิพีเดีย}}<br> | |||
{{Tl|Wtr}} verbindet zur türkischen {{Wtr||tr:Vikipedi}}<br> | |||
{{Tl|Wu}} verbindet zur ukrainischen {{Wu||uk:Вікіпедія}}<br> | |||
{{Tl|Wz}} verbindet zur chinesischen {{Wz||zh:維基百科}}<br><!-- | |||
-->|en={{Tl|Ud}} and other {{C|Interwiki link templates}}; | |||
---- | |||
{{Tl|WA}} or {{T|وك}} links to {{WA||ar:العربية}}<br> | |||
{{Tl|Wb}} links to {{Wb||bn:Wikipedia}}<br> | |||
{{Tl|Wc}} links to {{Wc||cs:Wikipedie}}<br> | |||
{{Tl|WC}} links to {{WC||ca:Viquipèdia}}<br> | |||
{{Tl|Wd}} links to {{Wd||de:Wikipedia}}<br> | |||
{{Tl|Wda}} links to {{Wda||da:Wikipedia}}<br> | |||
{{Tl|We}} links to {{We||es:Wikipedia}}<br> | |||
{{Tl|Wet}} links to {{Wet||et:Vikipeedia}}<br> | |||
{{Tl|Weu}} links to {{Weu||eu:Wikipedia}}<br> | |||
{{Tl|WE}} links to {{WE||eo:Wikipedia}}<br> | |||
{{Tl|Wf}} links to {{Wf||fr:Wikipédia}}<br> | |||
{{Tl|Wfa}} links to {{Wfa||fa:ویکیپدیا}}<br> | |||
{{Tl|Wfi}} links to {{Wfi||fi:Wikipedia}}<br> | |||
{{Tl|Wg}} links to {{Wg||gl:Wikipedia}}<br> | |||
{{Tl|Wh}} links to {{Wh||hu:Wikipédia}}<br> | |||
{{Tl|Whe}} links to {{Whe||he:ויקיפדיה}}<br> | |||
{{Tl|Whi}} links to {{Whi||hi:विकिपीडिया}}<br> | |||
{{Tl|Wi}} links to {{Wi||it:Wikipedia}}<br> | |||
{{Tl|Wid}} links to {{Wid||id:Wikipedia}}<br> | |||
{{Tl|Wja}} or {{Tl|W日|W<small>日</small>}} links to {{W日||ja:<small>ウィキペディア</small>}}<br> | |||
{{Tl|Wka}} links to {{Wka||ka:ვიკიპედია}}<br> | |||
{{Tl|ವಿ}} links to {{ವಿ||kn:ವಿಕಿಪೀಡಿಯ}}<br> | |||
{{Tl|Wko}} or {{Tl|W말}} links to {{W말||ko:위키백과}}<br> | |||
{{Tl|Wky}} links to {{Wky||ky:Википедия}}<br> | |||
{{Tl|വി|<small>വി</small>}} links to {{വി||ml:<small>വിക്കിപീഡിയ</small>}}<br> | |||
{{Tl|Wlt}} links to {{Wlt||lt:Vikipedija}}<br> | |||
{{Tl|Wlv}} links to {{Wlv||lv:Vikipēdija}}<br> | |||
{{Tl|Wm}} links to {{Wm||mk:Википедија}}<br> | |||
{{Tl|Wn}} links to {{Wn||nl:Wikipedia}}<br> | |||
{{Tl|Wp}} links to {{Wp||pt:Wikipédia}}<br> | |||
{{Tl|WP}} links to {{WP||pl:Wikipedia}}<br> | |||
{{Tl|Wr}} links to {{Wr||ru:Википедия}}<br> | |||
{{Tl|වි}} links to {{වි||si:විකිපීඩියා}}<br> | |||
{{Tl|Wsk}} links to {{Wsk||sk:Wikipédia}}<br> | |||
{{Tl|Wsl}} links to {{Wsl||sl:Wikipedija}}<br> | |||
{{Tl|Wsr}} links to {{Wsr||sr:Википедија}}<br> | |||
{{Tl|Wsu}} links to {{Wsu||su:Wikipédia}}<br> | |||
{{Tl|Wsv}} links to {{W||sv:Wikipedia|sv}}<br> | |||
{{Tl|Wth}} or {{T|ว}} links to {{W||th:วิกิพีเดีย}}<br> | |||
{{Tl|Wtr}} links to {{Wtr||tr:Vikipedi}}<br> | |||
{{Tl|Wu}} links to {{Wu||uk:Вікіпедія}}<br> | |||
{{Tl|Wz}} links to {{Wz||zh:維基百科}}<br> | |||
}} | |||
The "W××" templates are ''shortcuts'' of the main template {{T2|W}}, setting the language code with parameter 3: {{tle|t=W××|link}} is just {{tle|T=W|link|p2=3|××}}<br> | |||
the "W×" templates are ''abbreviated'' shortcuts for some very often used languages. | |||
:More W<sub>''×''</sub> templates are elsewhere in use: | |||
:*{{t|Wso}} links to {{Wso}} | |||
:*{{T|ws}} for a ''linkbox'' to [[wikispecies:Wikispecies|Wikispecies]], {{T|WS}} to WikispeciesCompact, | |||
:*{{T|wt}} for the link to {{wt||Wiktionary}}, | |||
:*{{T|wa}} for {{W|Walloon language}}, {{T|wo}} for {{W|Wolof language}}, and {{T|War}} and {{T|Wuu}}. | |||
:but there are <u>no other {{w|List of ISO 639-1 codes|language codes}}</u> starting with "w", so plenty of "W×" templates may be created. | |||
---- | |||
* {{tl2|multilingual link}} | |||
|setscats= | |setscats= | ||
|lines= | |lines= | ||
|shorthand= | |shorthand= | ||
|relieson= | |relieson= | ||
|useTemplateData=1 | |||
}} | }} | ||
=== Recommendation === | |||
020 <nowiki>{{</nowiki> | For linking to a sister project, an '''internal''' link such as <kbd><nowiki>{{W||en.wikipedia}}</nowiki></kbd>) is preferred over an '''external''' one as e.g. <kbd><nowiki>[http://en.wikipedia.org en.wikipedia]</nowiki></kbd>. | ||
{{Anchor|Mod}} | |||
=== Category option === | |||
Very often one (or more) of the names linked with a <code>W</code>-template are '''also''' used for categorizing. As a simplification, the <code>W</code>-template can care for both: the ''page name'' or the ''display text'' of the {{T0|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 {{M|Dsize|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: <nowiki>{{W|Toronto|+}}</nowiki> categorizes to {{C|Toronto}}; <br> | |||
<nowiki>{{W|Toronto|+|t=_in_art}}</nowiki> categorizes to {{C|Toronto in art}} | |||
=== {{LangSwitch|de=Beispiele|en=Examples|eo=Kiel uzi|ru=Применение}} === | |||
;{{LangSwitch|de=Alle Parameterkombinationen|en=All parameter combinations}} | |||
''{{LangSwitch|de=Zahlen zu Zeilenbeginn geben Hinweis auf angegebene Parameter (0=Parameter ohne Wert)|en=Numbers at line beginning indicate parameter use (0=parameter without value)}}'' | |||
:000 <code><nowiki>{{W}}</nowiki></code> → {{W}} <ref name="r">{{LangSwitch |de=Es wird empfohlen, den 2. Parameter für einen erklärenden Text zu verwenden, wie in den „023“-''Startseite''-Beispielen gezeigt wird. |en=It is recommended to use parameter #2 giving an explaining text, as shown in the “023” ''Main Page'' examples.}}</ref> | |||
:003 <code><nowiki>{{W|3=es}}</nowiki></code> → {{W|3=es}} <ref name="r"/> {{F|Arrow facing left - Green.svg|Z|24}} {{T|We}}: {{Tle|t=We}} → {{We}}<br> | |||
:003 <code><nowiki>{{W|3=pt}}</nowiki></code> → {{W|3=pt}} <ref name="r"/> | |||
:020 <code><nowiki>{{W||Main Page}}</nowiki></code> → {{w||Main Page}}<br> | |||
:020 <code><nowiki>{{W||en:Main Page}}</nowiki></code> → {{w||en:Main Page}} | |||
:023 <code><nowiki>{{W||Ĉefpaĝo|eo}}</nowiki></code> → {{w||Ĉefpaĝo|eo}}<br> | |||
:023 <code><nowiki>{{W||pt:Wikipedia|pt}}</nowiki></code> → {{W||pt:Wikipedia|pt}} {{F|Arrow facing left - Green.svg|Z|24}} {{T|Wp}}: {{Tle|t=Wp}} → {{Wp}}<br> | |||
:023 <code><nowiki>{{W||pt:Wp|pt}}</nowiki></code> → '''{{W||pt:Wp|pt}}''' (preferred style of a link to a national mainpage)<br> | |||
:023 <code><nowiki>{{W||de:Wp|de}}</nowiki></code> → {{W||de:Wp|de}} {{F|Arrow facing left - Green.svg|Z|24}} {{T|Wd}}: {{Tle|t=Wd}} → {{Wd}} | |||
:100 <code><nowiki>{{W|Page name}}</nowiki></code> → {{w|Page name}} | |||
:100 <code><nowiki>{{Wf|Paris|c}}</nowiki></code> → {{wf|Paris}} + <code><nowiki>[[Category:Paris]]</nowiki></code> | |||
:103 <code><nowiki>{{W|Page name||it}}</nowiki></code> → {{w|Page name||it}} {{F|Arrow facing left - Green.svg|Z|24}} {{T|Wi}}: {{Tle|t=Wi}} → {{Wi}}<br> | |||
:103 <code><nowiki>{{W|Page name||fr}}</nowiki></code> → {{w|Page name||fr}} {{F|Arrow facing left - Green.svg|Z|24}} {{T|Wf}}: {{Tle|t=Wf}} → {{Wf}}<br> | |||
:103 <code><nowiki>{{W|{{FULLPAGENAME}}|3=pl}}</nowiki></code> → {{W|{{FULLPAGENAME}}||pl}}<br> | |||
:120 <code><nowiki>{{W|Page name|Display name}}</nowiki></code> → {{w|Page name|Display name}} | |||
:123 <code><nowiki>{{W|Page name|Display name|nl}}</nowiki></code> → {{w|Page name|Display name|nl}} {{F|Arrow facing left - Green.svg|Z|24}} {{T|Wn}}: {{Tle|t=Wn}} → {{Wn}}<br> | |||
:123 <code><nowiki>{{W|Page name|Display name|hu}}</nowiki></code> → {{w|Page name|Display name|hu}} {{F|Arrow facing left - Green.svg|Z|24}} {{T|Wh}}: {{Tle|t=Wh}} → {{Wh}} | |||
<references /> | |||
;{{LangSwitch|de=Komplexe Beispiele für Seitennamen|en=Complex page name examples}} | |||
{| class="wikitable" | |||
|- | |||
|3=de || de:Wikipedia || {{W|Benutzer Diskussion:Andreas_06/Spielwiese/Stadien_der_Fußball-Bundesliga|3=de}} | |||
|- | |||
|3=fr || fr:Wikipédia || {{W|Discussion aide:Catégorie/Archive3#Appels à volontaires pour Aide à la conception de l'arborescence|3=fr}} | |||
|- | |||
|3=yi || yi:Wikipedia || {{W|ענדערן הילף:אינהאלט||yi}} | |||
|- | |||
|3=pt || pt:Wikipedia || {{W|Categoria:Cidades fantasmas da Califórnia|3=pt}} • {{W|Predefinição Discussão:!Info pessoal|3=pt}} | |||
|- | |||
|3= || en:Wikipedia || {{W|Template talk:Welcome/fr#Pas assez informatif}} | |||
|- | |||
| | |||
|- | |||
|3=nl:b || nl:Wiki'''books''' || {{W|Scalable Vector Graphics/Stijl|3=nl:b}} | |||
|- | |||
|3=en:d || en:Wiki'''data''' || {{W|Project chat|3=en:d}} | |||
|- | |||
|3=en:n || en:Wiki'''news''' || {{W|Egyptian MP calls for web porn ban|3=en:n}} | |||
|- | |||
|3=fi:q || fi:Wiki'''quote''' || {{W|Elizabeth II|3=fi:q}} | |||
|- | |||
|3=es:s || es:Wiki'''source''' || {{W|Archivo:Las Maravillas Del Cielo pg 7.jpg|3=es:s}} | |||
|- | |||
|3=sv:v || sv:Wiki'''versity''' || {{W|Surdegsbakning för hemmabagaren|3=sv:v}} | |||
|- | |||
|3=pl:voy || pl:Wiki'''voy''age''''' || {{W|San Francisco|3=pl:voy}} | |||
|- | |||
|3=lt:wikt || lt:'''Wikt'''ionary || {{W|Sąrašas:Kinų hieroglifų raktai|3=lt:wikt}} | |||
|- | |||
| | |||
|- | |||
|3=d || {{0|00}} Wiki'''data''' || {{W|Property:P4896|3=d}} | |||
|- | |||
|3=m || {{0|00}} '''Meta'''wiki || {{W|VisualEditor/Newsletter/2014/November/ka|3=m}} | |||
|- | |||
|3=m:de || {{0|i}}de:'''Meta'''wiki || {{W|Sulzbach an der Murr||m:de}} | |||
|- | |||
|3=mw || {{0|00}} '''Mediaw'''iki || {{W|Extension:ParserFunctions/it|3=mw}} | |||
|- | |||
|3=species || {{0}}Wiki'''species''' || {{W|Verrucaria halizoa|3=species}} | |||
|- | |||
|3=<small>en:commons</small> || en:Commons || {{W|Template:W|3=en:commons}} | |||
|} | |||
---- | <includeonly>{{Commons:Link templates/Interwiki links}} | ||
{{Sandbox other|| | |||
<!-- Categories below this line; interwikis at Wikidata --> | |||
[[Category:Interwiki link templates|{{PAGENAME}}]] | {{#ifeq:{{PAGENAME}}|W|[[Category:One-letter templates| ]][[Category:Interwiki link templates| ]]}} | ||
</includeonly> | [[Category:Interwiki link W-templates|{{#switch:{{BASEPAGENAME}}|W日=Wja|ವಿ=Wkn|വി=Wml|වි=Wsi|{{PAGENAME}}}}]] | ||
}}</includeonly> | |||
Latest revision as of 20:12, 11 August 2026
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
Wwhich creates a link to the English Wikipedia.
- However any language code (>400 templates) instead of
encan 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
{{W |1= }}
- Wikipedia
- wikipedia
- wp
- w
- Wiktionary
- wiktionary
- wikt
- Wikiquote
- wikiquote
- wq
- q
- Wikisource
- wikisource
- ws
- s
- Wikibooks
- wikibooks
- wb
- b
- Wikiversity
- wikiversity
- wv
- v
- Wikispecies
- wikispecies
- species
- wsp
- Wikinews
- wikinews
- wn
- n
- Wikivoyage
- wikivoyage
- voy
- Wikidata
- wikidata
- wd
- d
- Wikimedia Commons
- commons
- c
- Wikifunctions
- wikifunctions
- func
- f
- Meta-Wiki
- meta
- m
- metawiki
- metawikimedia
- metawikipedia
- Wikimedia Incubator
- incubator
- inc
- Wikimedia Outreach
- outreach
- outreachwiki
- Wikimedia Foundation
- foundation
- wmf
- wikimedia
- MediaWiki.org
- mediawikiwiki
- mw
- mediawiki
- Wikitech
- wikitech
- labsconsole
- Wikimedia Strategy
- strategy
- Wikimedia Quality
- quality
- SUL util
- sulutil
- Stewards' noticeboard / spcom
- spcom
- Toolforge
- toolforge
- toollabs
- Phabricator
- phabricator
- phab
- bugzilla
- mediazilla
- Wikimania
- wikimania
- wmania
- wm
- Wikimania 2012
- wikimania2012
- wm2012
- Wikimania 2013
- wikimania2013
- wm2013
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 | 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 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édia
{{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:W/doc
- 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