Template:Lang/Documentation: Difference between revisions

Jump to navigation Jump to search
No edit summary
 
(One intermediate revision by the same user not shown)
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 (<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.
This is most important for Japanese kanji (<code>ja</code>), Traditional Chinese (<code>zh-Hant</code>), and Simplified Chinese (<code>zh-Hans</code>), and Korean hanja (<code>ko</code>) so that a correct font is used, as some characters look different between the four 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>

Latest revision as of 19:17, 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 kanji (ja), Traditional Chinese (zh-Hant), and Simplified Chinese (zh-Hans), and Korean hanja (ko) so that a correct font is used, as some characters look different between the four but have the same Unicode code point. Marking it for other languages does have benefits for screenreaders, however.