Template:interwikt
- The following documentation is located at Template:interwikt/documentation. [edit]
- Useful links: subpage list • links • redirects • transclusions • errors (parser/module) • sandbox
Usage
editThis template can be used in the Further Reading or References section of a Wiktionary entry to link to an entry on another language edition of Wiktionary, similarly to {{pedia}}
.
For example, on the page physique, an invocation of {{interwikt}}
to the French Wiktionary would look like this:
* {{interwikt|fr}}
which will display as follows:
- physique on the French Wiktionary.Wiktionary fr
Parameters
edit|1=
- Required. Language code of the language-specific version of Wiktionary to link to. en should be avoided, as you can just use internal links. NOTE: This is a Wikimedia language code, not a Wiktionary language code. See discussion below.
|2=
- Wiktionary page to link to. Defaults to the current page title.
|3=
- Text to display when linking to Wiktionary. Defaults to
|2=
. |sc=
- Wiktionary script code of the link in
|2=
(or of the display text in|3=
, if provided). This is used when displaying the link to the page. You rarely need to specify this, as it is autodetected. NOTE: This is a Wiktionary script code. |i=1
- Italicize the displayed link.
|nodot=1
- Suppress the final dot (period/full stop) that is displayed by default.
Language codes
editThe |lang=
parameter specifies the version of Wiktionary to link to. This is a Wikimedia language code, not a Wiktionary language code. The two sets of language codes are similar, but there are some critical differences. For example, Wiktionary has a single language code sh
for Serbo-Croatian, and no language codes for national variants of Serbo-Croatian (Serbian, Croatian, Bosnian, Montenegrin). Wikimedia, however, has four separate corresponding variants: Serbo-Croatian (sh
), Serbian (sr
), Croatian (hr
) and Bosnian (bs
). Wikimedia also has two variants corresponding to Belarusian in Wiktionary: Belarusian per se (be
) and Belarusian (Taraškievica) (be-tarask
). In addition, sometimes the same language has different codes; for example, Cantonese uses yue
in Wiktionary but zh-yue
in Wikimedia, and Tarantino uses roa-tar
in Wiktionary but roa-tara
in Wikimedia.