On Friday, April 19, 2024 at 10:00 PM New York time, all OpenWiki Project sites will be undergoing scheduled maintenance for about 2 hours. Expect read-only access and brief periods of downtime.

Template:Lang

From Fire Emblem Wiki, your source on Fire Emblem information. By fans, for fans.
Revision as of 15:12, 2 May 2020 by PikaSamus (talk | contribs)

{{{2}}}

Usage

{{lang|language|text}}

Intended use: to make sure that Japanese and Chinese characters will display correctly. Due to the so-called Han unification, several Japanese and Chinese characters that look slightly different from one another but convey the same meaning are assigned the same point in Unicode, and so HTML language tags must be used to ensure that they display correctly.

"language" should be replaced with ja for Japanese, zh-Hans for Simplified Chinese, and zh-Hant for Traditional Chinese. See w3schools' article for language codes for other languages.

This template is already used by default in the {{Names}} and {{Flavor Text}} templates and so does not need to be used there.

Examples:

  • {{lang|ja|刃}} becomes .
  • {{lang|zh-Hans|刃}} becomes .
  • {{lang|zh-Hant|刃}} becomes .
  • {{lang|ja|令}} becomes .
  • {{lang|zh-Hans|令}} becomes .
  • {{lang|zh-Hant|令}} becomes .

To use with {{hover}}, the hover template must be placed inside of the lang template, like so: {{lang|ja|{{hover|刃|ha}}}}. This becomes . Another template might be created in the future that combines this template and the hover template.

This template could possibly be used for all non-English text to assist with screenreaders, as on Wikipedia, but this is not necessary