Template:R:wbooks
R:wbooks on Wikibooks.Wikibooks
- The following documentation is located at Template:R:wbooks/documentation. [edit]
- Useful links: subpage list • links • redirects • transclusions • errors (parser/module) • sandbox
Usage
[edit]This template is used in the Further Reading or References section of a Wiktionary entry to link to a Wikibooks article. It works identically to {{R:wp}}
other than linking to Wikibooks instead of Wikipedia.
Parameters
[edit]|1=
- Language code of the language-specific version of Wikibooks to link to. Defaults to
en
for the English Wikibooks. NOTE: This is a Wikimedia language code, not a Wiktionary language code. See discussion below. |2=
- Wikibooks page to link to. Defaults to the current page title.
|3=
- Text to display when linking to Wikibooks. 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 on Wikibooks. 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
[edit]Parameter |1=
specifies the version of Wikibooks 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 both a Serbo-Croatian language code sh
and national-language variant codes for Serbian (sr
), Croatian (hr
) and Bosnian (bs
). In addition, sometimes the same language has different codes in Wiktionary vs. Wikimedia; for example, Cantonese uses yue
in Wiktionary but zh-yue
in Wikimedia, and Tarantino uses roa-tar
in Wiktionary but roa-tara
in Wikimedia.
Related templates
[edit]{{wikibooks}}
: a floating box, placed directly under the language heading or relevant part-of-speech heading{{wbooks}}
: plain inline text link to Wikibooks, with the Wikimedia language code in|lang=