Template:Lang/Documentation: Difference between revisions

Jump to navigation Jump to search
Line 3: Line 3:
This template is to be used for marking text as another language. See the [https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry IANA subtag registry] for language codes.
This template is to be used for marking text as another language. See the [https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry IANA subtag registry] for language codes.


This is most important for Japanese, Traditional Chinese, and Simplified Chinese so that a correct font is used, as some characters look different between the three but have the same Unicode code point. Marking it for other languages does have benefits for screenreaders, however.
This is most important for Japanese (<code>ja</code>), Traditional Chinese (<code>zh-Hant</code>), and Simplified Chinese (<code>zh-Hans</code>) so that a correct font is used, as some characters look different between the three but have the same Unicode code point. Marking it for other languages does have benefits for screenreaders, however.
<noinclude>[[Category:Template Documentation]]</noinclude><includeonly>[[Category:Text Formatting Templates]]</includeonly>
<noinclude>[[Category:Template Documentation]]</noinclude><includeonly>[[Category:Text Formatting Templates]]</includeonly>

Revision as of 19:16, 3 November 2024

Documentation

{{Lang|language code|Text}}

This template is to be used for marking text as another language. See the IANA subtag registry for language codes.

This is most important for Japanese (ja), Traditional Chinese (zh-Hant), and Simplified Chinese (zh-Hans) so that a correct font is used, as some characters look different between the three but have the same Unicode code point. Marking it for other languages does have benefits for screenreaders, however.