Template:Langi

From I2P Wiki
Jump to navigation Jump to search
Template documentation   [view] [edit] [history] [purge]

This template is used to format foreign language fragments and displays them in italics.

Usage

The template accepts two unnamed parameters:

  1. ISO code of a language;
  2. foreign language fragment.

Example of usage

code result
Technical support (in German: {{langi|de|Technische Unterstützung}}) Technical support (in German: Technische Unterstützung)

When the template should not be used

  • To format an English translation from the indicated language;
  • in section headers (it prevents automated creation of links to these sections).

Why the template is needed

Any fragment without language specified inherits the language of the entire text (here it is English).

  • Web browsers can choose a font most suitable for the indicated language.
    • Some characters of the languages Chinese, Japan, Korean and Vietnamese look different but use the same Unicode number.
  • Text reading devices can pronounce the fragment in its language.
  • Language indication is important for spellcheckers.
  • Search engines can consider it for better indexation.

Do not edit this template if you do not understand its code!