Template:Wiktionarylang
| File:Lua-Logo.svg | 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 source]{{wiktionarylang|lang-code|pagename|link text|text to append}}
Placement
[edit source]{{#section-h:Template:Wiktionary/doc|Placement}}
Parameters
[edit source]This template has six parameters, four positional and two named:
|1=the language code for a Wiktionary, e.g.defor German,esfor 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 source]- 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
[edit source]TemplateData 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 |