Template:Script: Difference between revisions
More actions
Created page with "{{#switch:{{{1|}}} <!--scripts with dedicated templates--> <!-- As of 2021-12-03, ISO 15924 and Unicode: 1. This list contains *all* ISO 15924 regular script IDs. By ISO pattern alpha4 = 'Abcd'. 2. Not included: Special codes (ISO number 900-999, e.g. symbols, unk scripts, private scripts): Qaaa..Qabx, Zinh Zmth Zsye Zsym Zxxx Zyyy Zzzz 3. Totals: 204 regular alpha4 script IDs. 4. Depending on font handling, scripts can be commented out, i.e. will use regular fon..." |
No edit summary |
||
Line 225: | Line 225: | ||
START SWITCH2 | START SWITCH2 | ||
(resolving the switch1-#default. switch2 does envelop outer code, templatestyles & span) | (resolving the switch1-#default. switch2 does envelop outer code, templatestyles & span) | ||
-->{{{{{|safesubst:}}}ifsubst|1=|2=<templatestyles src="Script/styles.css" />}}<span {{#switch:{{{1}}} | -->{{{{{|safesubst:}}}ifsubst|1=|2=<templatestyles src="Template:Script/styles.css" />}}<span {{#switch:{{{1}}} | ||
<!-- tweaks which should be moved to global CSS classes, with fonts supported in the Universal Language Selector --> | <!-- tweaks which should be moved to global CSS classes, with fonts supported in the Universal Language Selector --> | ||
|Cprt = class="script-Cprt" | |Cprt = class="script-Cprt" |
Latest revision as of 00:30, 16 March 2025
{{{2}}}Template:Script/doc/id-unk
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 MOS:OTHERLANG for more details.
Currently, the following scripts are supported:
See also
- Category:Pages using Template:Script with unknown input (0) -- (Checking)
- {{Dialogue}} -- template for formatting dialogue as if in a stage script
Template Data
TemplateData for Script
Template data
| |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Marks some text as in a different script according to ISO 15924 script codes
|