Template:Wikt-lang/doc

Template:Wikt-lang automatically determines the correct English Wiktionary entry by removing italics or bolding, and removing or replacing diacritical marks and letters that are not used in entry names on English Wiktionary.

It also adds italics for languages that use the Latin alphabet (see MOS:FOREIGNITALIC). Italics cannot be turned for languages that use a non-Latin script, but they can be turned  by using the parameter -. This is useful in tables, where italics are often unnecessary.

The template will also link to the Wiktionary Reconstruction: namespace, where entries on reconstructed languages are placed, or to the Appendix: namespace, where some constructed languages have their entries (such as Lojban), if there is data for them in the module.

Usage
This template takes a language code and one or two words, and generates a link to the correct section of the corresponding Wiktionary entry. If two words are provided, it is like a piped link: the first word is the entry name, while the second serves as link text.



TemplateData
{	"params": { "1": {			"label": "Language code", "type": "line", "required": true, "description": "ISO 639 language code (2 or 3 letters) representing which language the text is in", "example": "'en', 'zh', 'fr', 'enm', 'la', 'sco', 'es'" },		"2": {			"label": "Wiktionary entry", "type": "string", "required": true, "description": "Entry to link to on Wiktionary", "example": "an apple a day keeps the doctor away" },		"3": {			"label": "Text displayed", "type": "string", "description": "Text displayed, if different from the term being linked to", "example": "an apple a day" },		"italic": { "aliases": [ "italics", "i" ],			"label": "Disable italics", "type": "string", "description": "Whether to not italicize the text", "example": "no" }	},	"format": "inline" }

Help
If you try to use this template and get an error message, but can't figure out how to fix it, please go to Module talk:Wikt-lang and post a message about it.