Jump to content

Module:Wikt-lang/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by BrandonXLF (talk | contribs) at 22:38, 19 October 2018 (Errors). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
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.