Template:W

From Wikimedia Commons, the free media repository
Jump to: navigation, search

Wikipedia

[edit]

Documentation


English: 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.
Esperanto: Ĉi tiu ŝablono faciligas kreon de intervikiaj ligiloj.
  • La prefikso sen specifo estas simple w: (kio nuntempe signifas anglalingvan Vikipedion), tamen lingvo estas specifebla per la tria argumento.

Contents

Usage

{{W|1=|2=|3=}}

Parameters

Parameter name Description Default value required or optional?
parameter #1 (1) page name; also specific [sub]pages (e.g: user, category, talk, ...)
if empty, a link to the main page is created
empty optional
parameter #2 (2) display text
if empty, the value passed with parameter #1 is displayed
empty optional
parameter #3 (3) language code (ISO 639), or sisterproject prefix
if empty, the link is created to the English Wikipedia
empty optional

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

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

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. a b c It is recommended to use parameter #2 giving an explaining text, as shown in the other Main Page examples


Complex page name examples