Template:Script/doc

From wikiNonStop
Revision as of 07:05, 30 August 2024 by Majestix (talk | contribs) (1 revision imported: initial setup)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Usage

This template applies custom styling (better typefaces and/or typefaces that support uncommon scripts and/or bigger size text) to scripts (writing systems), identified by their ISO 15924 alpha-4 code. It takes two unnamed parameters: the ISO code, and the text to transform. Some scripts can also be identified by their name.

This template does not mark up text as being X language. For instance, Hebrew text marked up using {{Script/Hebrew}} will be marked up as Hebrew script, but not Hebrew text.

This means that foreign-language text will not be invisibly marked up as a different language in the same manner as {{lang}} or {{transl}}. Non-English text needs to be marked up in {{Language templates}} for accessibility; see MOS:OTHERLANG for more details.

Currently, the following scripts are supported:

By script name
By ISO script code (like 'Xabc')

See also

Template Data

This is the TemplateData documentation for this template used by VisualEditor and other tools.

Script

Template data

Marks some text as in a different script according to ISO 15924 script codes

Template parameters

ParameterDescriptionTypeStatus
Script code1 script

ISO 15924 script code for the script used

Example
Hang (hangul), Latn (Latin), Hant (traditional Chinese characters)
Linerequired
Text2 text

The text in the script demarcated

Example
國漢文混用
Linerequired