Jump to content

Module:Wikt-lang/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Erutuon (talk | contribs) at 19:34, 24 June 2018 (Examples: added reconstructed language example). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.


Usage

This module 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 formatting function does most of what {{lang}} does, as well as applying appropriate italicization.

It should eventually be able to generate the text in numerous {{lang-xx}} templates, such as {{lang-fr}}. (Or even more ambitious, it could generate automatic transliteration and IPA for some languages, to be used in templates like {{lang-rus}}.)

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.