Template:Script/doc
This is a documentation subpage for Template:Script. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on many pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template uses TemplateStyles: |
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 also
- Category:Pages using Template:Script with unknown input (0) -- (Checking)
- {{Lang}} for identifying text as belonging to a language and script, etc. (beyond the scope of this template)
- {{IPA}} to style text for IPA notation
- {{ISO 15924 script codes and related Unicode data}}
- {{ISO 15924/overview-templates}}
Template Data
TemplateData for Script
Template data
|
---|
<templatedata> { "params": { "1": { "aliases": [ "script" ], "label": "Script code", "description": "ISO 15924 script code for the script used", "example": "Hang (hangul), Latn (Latin), Hant (traditional Chinese characters)", "type": "line", "required": true }, "2": { "aliases": [ "text" ], "label": "Text", "description": "The text in the script demarcated", "example": "國漢文混用", "type": "line", "required": true } }, "description": "Marks some text as in a different script according to ISO 15924 script codes" } </templatedata> |