Module:Wikt-lang/doc
Appearance
| This is a documentation subpage for Module:Wikt-lang. It may contain usage information, categories and other content that is not part of the original module page. |
| This module is rated as beta. It is considered ready for widespread use, but as it is still relatively new, it should be applied with some caution to ensure results are as expected. |
Todo?
Future usage
| Code | Output | Current | Sandbox |
|---|---|---|---|
| {{#invoke:language|part1|en}} | en | Script error: The function "part1" does not exist. | Script error: The function "part1" does not exist. |
| {{#invoke:language|part1|English}} | en | Script error: The function "part1" does not exist. | Script error: The function "part1" does not exist. |
| {{#invoke:language|part2|en}} | eng | Script error: The function "part2" does not exist. | Script error: The function "part2" does not exist. |
| {{#invoke:language|part3|en}} | eng | Script error: The function "part3" does not exist. | Script error: The function "part3" does not exist. |
| {{#invoke:language|name|en}} | gme | Script error: The function "name" does not exist. | Script error: The function "name" does not exist. |
| {{#invoke:language|part5|East Germanic languages}} | English | Script error: The function "part5" does not exist. | Script error: The function "part5" does not exist. |
| {{#invoke:language|name|gme}} | East Germanic languages | Script error: The function "name" does not exist. | Script error: The function "name" does not exist. |
| {{#invoke:language|name|East Germanic languages}} | East Germanic languages | Script error: The function "name" does not exist. | Script error: The function "name" does not exist. |
Usage
This module is used by {{wikt-lang}} and {{wt}}. It is inspired by the templates {{m}} and {{l}} and their associated modules on Wiktionary. It has a Wiktionary link function that links to the correct section of the Wiktionary entry, and applies correct language formatting and italics. The language-tagging function does most of what {{lang}} does, except that italics can't be customized and categories aren't added.
Examples
* {{#invoke:language|wikt|en|language}}
* {{#invoke:language|wikt|en|language|languages}}
* {{#invoke:Language|wikt|fr|bourguignon}}
* {{#invoke:Language|wikt|la|homō}}
* {{#invoke:Language|wikt|grc|δημοκρατίᾱ}}
* {{#invoke:Language|wikt|ru|язы́к}}
* {{#invoke:Language|lang|ru|язы́к}}
* {{#invoke:Language|wikt|ar|العَرَبِيَّة}}
* {{#invoke:Language|wikt|fa|فارسی}}
* {{#invoke:Language|wikt|ine-x-proto|*h₂enǵʰ-}}
- Script error: The function "wikt" does not exist.
- Script error: The function "wikt" does not exist.
- Script error: The function "wikt" does not exist.
- Script error: The function "wikt" does not exist.
- Script error: The function "wikt" does not exist.
- Script error: The function "wikt" does not exist.
- Script error: The function "lang" does not exist.
- Script error: The function "wikt" does not exist.
- Script error: The function "wikt" does not exist.
- Script error: The function "wikt" does not exist.
Invalid codes
* {{#invoke:language|wikt|EN|language}}
* {{#invoke:language|wikt|En|language|languages}}
* {{#invoke:Language|wikt|La|homō}}
* {{#invoke:Language|wikt|Grc|δημοκρατίᾱ}}
* {{#invoke:Language|wikt|Ru|язы́к}}
* {{#invoke:Language|lang|Ru|язы́к}}
* {{#invoke:Language|wikt|Ar|العَرَبِيَّة}}
* {{#invoke:Language|wikt|Fa|فارسی}}
- Script error: The function "wikt" does not exist.
- Script error: The function "wikt" does not exist.
- Script error: The function "wikt" does not exist.
- Script error: The function "wikt" does not exist.
- Script error: The function "wikt" does not exist.
- Script error: The function "lang" does not exist.
- Script error: The function "wikt" does not exist.
- Script error: The function "wikt" does not exist.
Errors
* {{#invoke:Language|wikt|en-Latin|language}}
- Script error: The function "wikt" does not exist.
Subpages