మూస:langscript

విక్షనరీ నుండి
Jump to navigation Jump to search

The following documentation is located at Template:langscript/doc. [edit]
Note: Please move the documentation subpage to Template:langscript/documentation.
Alternative name:
{{language code to script code}}

This template returns a script code from a language code.

Usage[<small>మార్చు</small>]

This template should be implemented into other templates, wherever an automatic script is necessary.

There are two foreseen instances where an automatic script code is used.

  • Organization.
    Example: Categorizing the English language as written in the Latin script.
  • Formatting.
    Example: Formatting Russian language characters with the appropriate Cyrillic fonts automatically.

Parameters[<small>మార్చు</small>]

This template requires only one unnamed parameter.

  • When a language is written in only one script, the sole parameter is the language code.
  • When a language is written in two or more scripts, the sole parameter is the language code to return a standard script; or, the language code closely followed by a number to return other scripts.

Examples[<small>మార్చు</small>]

  1. English
    The English language is written in the Latin script.
    The English language is represented by the code en.
    The Latin script is represented by the code Latn.
    Therefore, {{langscript|en}} returns Latn.
  2. Portuguese
    The Portuguese language is written in the Latin script.
    The Portuguese language is represented by the code pt.
    The Latin script is represented by the code Latn.
    Therefore, {{langscript|pt}} returns Latn.
  3. Russian
    The Russian language is written in the Cyrillic script.
    The Russian language is represented by the code ru.
    The Cyrillic script is represented by the code Cyrl.
    Therefore, {{langscript|ru}} returns Cyrl.
  4. Serbo-Croatian
    The Serbo-Croatian language is written in the Cyrillic and the Latin scripts.
    The Serbo-Croatian language is represented by the code sh.
    The Cyrillic script is represented by the code Cyrl.
    The Latin script is represented by the code Latn.
    Therefore, {{langscript|sh}} returns Cyrl.

See also[<small>మార్చు</small>]

"https://te.wiktionary.org/w/index.php?title=మూస:langscript&oldid=282953" నుండి వెలికితీశారు