Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:W/doc: Difference between revisions

Template page
it's yiddish
No edit summary
Line 2: Line 2:
|1=1
|1=1
|1d=page name; also specific [sub]pages (e.g: user, category, talk, ...)
|1d=page name; also specific [sub]pages (e.g: user, category, talk, ...)
|1def=main page of the wiki
|1d=Seitenname; auch spezifische [Unter]seiten (z.B. Benutzer, Kategorie, Diskussion, ...)
|1stat=required
|1def-en=main page of the wiki
|1def-de=Hauptseite dieser Wikipedia
|1stat-en=required
|1stat-de=erforderlich


|2=2
|2=2
|2d=display text
|2d-en=display text
|2def=parameter #1
|2d-de=angezeigter Text
|2def-en=parameter #1
|2def-de=1. Parameter
|2stat=optional
|2stat=optional


|3=3
|3=3
|3d=language code (ISO 639), or sisterproject prefix
|3d-en=language code ({{W|ISO 639}}), or sisterproject prefix
|3d-de=Sprachcode ({{Wd|ISO 639}}) (z.B.: it für {{W||italienische Wikipedia|it}}), oder Präfix eines Schwesterprojekts (z.B.: d für {{W||Wikidata|d}} oder voy für {{W||Wikivoyage|voy}})
|3def=en
|3def=en
|3stat=optoinal
|3stat=optional


|name=W
|name=W
|desc-en=This is used to help create interwiki links, without displaying the prefix, and without the need for repetition if the link text is the same as target page name.
|desc-en=This is used to help create interwiki links, without displaying the prefix, and without the need for repetition if the link text is the same as target page name.
* The default prefix is simply <tt>w:</tt> which creates a link to the English Wikipedia. However the language can be specified in the third parameter.
* The default prefix is simply <tt>w:</tt> which creates a link to the English Wikipedia. However the language can be specified in the third parameter.
  |desc-eo=Ĉi tiu ŝablono faciligas kreon de intervikiaj ligiloj.
|desc-de=Diese Vorlage wird verwendet, um Interwiki Links ohne Präfix zu erzeugen, und dies ohne die Wiederholung des Link-Textes, wenn dieser mit dem Zielseitennamen identisch ist.
* Der Standard-Präfix ist <tt>w:</tt> Er erstellt einen Link zur englischen Wikipedia. Eine andere Sprache kann im dritten Parameter angegeben werden.
|desc-eo=Ĉi tiu ŝablono faciligas kreon de intervikiaj ligiloj.
* La prefikso sen specifo estas simple <tt>w:</tt> (kio nuntempe signifas anglalingvan Vikipedion), tamen lingvo estas specifebla per la tria argumento.
* La prefikso sen specifo estas simple <tt>w:</tt> (kio nuntempe signifas anglalingvan Vikipedion), tamen lingvo estas specifebla per la tria argumento.
|namespace=all
|namespace=all
Line 36: Line 44:
|useTemplateData=1
|useTemplateData=1
}}
}}
=== {{LangSwitch|default=Examples|eo=Kiel uzi|ru=Применение}} ===
=== {{LangSwitch|de=Beispiele|eo=Kiel uzi|ru=Применение|default=Examples}} ===
;All parameter combinations:
;{{LangSwitch|de=Alle Paramterkombinationen|default=All parameter combinations}}
000 <nowiki>{{</nowiki>W}} → {{W}} <ref name="r">It is recommended to use parameter #2 giving an explaining text, as shown in the other ''Main Page'' examples</ref>  
000 <nowiki>{{</nowiki>W}} → {{W}} <ref name="r">{{LangSwitch |de=Es wird empfohlen, den 2. Parameter für einen erkärenden Text zu verwenden, wie in den anderen '' Startseite '' Beispielen gezeigt wird. |en=It is recommended to use parameter #2 giving an explaining text, as shown in the other ''Main Page'' examples.}}</ref>  
   
   
003 <nowiki>{{</nowiki>W|3=es}} → {{W|3=es}} <ref name="r"/><br>
003 <nowiki>{{</nowiki>W|3=es}} → {{W|3=es}} <ref name="r"/><br>
Line 61: Line 69:




;Complex page name examples
{{LangSwitch|de=Komplexe Beispiele für Seitennamen|default=Complex page name examples}}
*de {{W|Benutzer Diskussion:Andreas 06/Spielwiese/Stadien der Fußball-Bundesliga|3=de}}
*de {{W|Benutzer Diskussion:Andreas 06/Spielwiese/Stadien der Fußball-Bundesliga|3=de}}
*fr {{W|Discussion aide:Catégorie/Archive3#Appels à volontaires pour Aide à la conception de l'arborescence|3=fr}}
*fr {{W|Discussion aide:Catégorie/Archive3#Appels à volontaires pour Aide à la conception de l'arborescence|3=fr}}

Revision as of 15:14, 4 September 2014

This is used to help create interwiki links, without displaying the prefix, and without the need for repetition if the link text is the same as target page name.

  • 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

ParameterDescriptionDefaultStatus
1Seitenname; auch spezifische [Unter]seiten (z.B. Benutzer, Kategorie, Diskussion, ...)main page of the wikioptional
2display textparameter #1optional
3language code (ISO 639), or sisterproject prefixenoptional
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData

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
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either ‎useTemplateData=1 or ‎useTemplateData=only on the ‎/doc subpage and transcluding it with {{Documentation}} into the template. ‎<nowiki>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.

Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw ‎<templatedata>-tags into the Wikitext of the template, as described in various Wikipediae.


Wikipedia's help about TemplateDataCommons-specific information

This is used to help create interwiki links, without displaying the prefix, and without the need for repetition if the link text is the same as target page name.

  • The default prefix is simply <tt>w:</tt> which creates a link to the English Wikipedia. However the language can be specified in the third parameter.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
1

Seitenname; auch spezifische [Unter]seiten (z.B. Benutzer, Kategorie, Diskussion, ...)

Default
main page of the wiki
Unknownoptional
2

display text

Default
parameter #1
Unknownoptional
3

language code ([[:w:ISO 639|ISO 639]]), or sisterproject prefix

Default
en
Unknownoptional

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

Localization

This template is not intended to be localized.

Examples

All parameter combinations

000 {{W}} → Wikipedia [1]

003 {{W|3=es}} → Wikipedia [1]
003 {{W|3=pt}} → Wikipedia [1]

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
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
123 {{W|Page name|Display name|hu}} → Display name

  1. 1.0 1.1 1.2 It is recommended to use parameter #2 giving an explaining text, as shown in the other Main Page examples.


Complex page name examples

Cookies help us deliver our services. By using our services, you agree to our use of cookies.