This template uses Lua: |
This template may be used to add boxed material with a link to a foreign language Wiktionary page. See Help:Interwiki linking for recommendations about when to use links to sister projects.
Usage
edit{{wiktionarylang|lang-code|pagename|link text|text to append}}
Placement
editThe template may be placed anywhere, such as the External links section, the beginning of the article, or in the article's etymology section if one exists. It may also be placed inline.
On disambiguation pages, place this template at the TOP of the page (on the first line of the edit screen). This is in accord with MOS:WTLINK.
See Wikipedia:Wikimedia sister projects for some recommendations about the best choice of template for various situations.
This template may be floated to the left by use of |position=left
. The default and usually recommended position is to the right.
Parameters
editThis template has six parameters, four positional and two named:
|1=
the language code for a Wiktionary, e.g.de
for German,es
for Spanish, etc. Optional; defaults tofr
.|2=
the wiktionary page to link to. If absent, takes the pagename of the article where it is transcluded (only appropriate for cognates).|3=
the link text to display instead of instead of displaying 2 (i.e., pipe text). Optional.|4=
text to append; e.g., '(in Portuguese)'. Optional.|position=
may be set toleft
; see {{side box#Parameters}} for more info. Optional; default: right-floated.|context=
Use paragraph, section, table, etc. to substitute into the expression "this article". Optional; default: "article".
- Details
- If neither 2 nor 3 are specified, the article pagename will be used.
See also
edit- Help:Interwiki linking
{{Wiktionary}}
{{Wikisource}}
{{Wikisourcelang}}
—like this template, but designed for terms in foreign language Wikisource sites{{wiktionary-inline}}
—to create a list of sources on Wiktionary among other options{{User Wiktionary}}
—a Wikipedia userbox{{Wiktionary redirect}}
—a specialized template for redirecting to Wiktionary- Wikipedia:Wikimedia sister projects—for full usage information and background
- Wikipedia:Template messages/Sister projects#Wiktionary—for full usage information
Template data
editTemplateData for Wiktionarylang
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Language code | 1 | ISO 639 language code (2 or 3 letters) representing which language the text is in
| String | optional |
Wiktionary entry | 2 | Page to link to on foreign Wiktionary
| String | optional |
Text displayed | 3 | Text displayed, if different from the term being linked to | String | optional |
Text to append | 4 | Any text to append to the boxed material
| String | optional |
Position | position | Where to place the box
| String | optional |
Context | context | Context for this the term within the article (section, paragraph, etc.)
| String | optional |