Template:Lang
{{{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