Anonymous user
Template:Transliteration/doc: Difference between revisions
no edit summary
m (1 revision imported) |
No edit summary |
||
Line 37: | Line 37: | ||
*three parameters, with [[ISO 15924]] script code: <code><nowiki>{{transliteration|Arab|DIN|Ḫ}} vs {{transliteration|Arab|ALA|Kh}}</nowiki></code> for {{script|Arab|[[ﺥ]]}}. | *three parameters, with [[ISO 15924]] script code: <code><nowiki>{{transliteration|Arab|DIN|Ḫ}} vs {{transliteration|Arab|ALA|Kh}}</nowiki></code> for {{script|Arab|[[ﺥ]]}}. | ||
There is no need to add italic markup (<code><nowiki>''</nowiki></code>) to transliteration templates. Proper nouns – the names of people and places – are typically not italicized, and as such should use {{para|italic|no}} to suppress the default italicization of Latin scripts. | |||
'''Note''': the language code is ISO 639 or IETF private-use tag (see [[Template:Lang#Private-use language tags]]); other forms of [[IETF BCP 47 language tag]]s are | '''Note''': the language code is ISO 639 or IETF private-use tag (see [[Template:Lang#Private-use language tags]]); other forms of [[IETF BCP 47 language tag]]s are <em>not</em> supported. | ||
===Transliteration scheme codes=== | ===Transliteration scheme codes=== | ||
Line 83: | Line 83: | ||
"1": { | "1": { | ||
"label": "Language or script code", | "label": "Language or script code", | ||
"description": "ISO 639 language code | "description": "ISO 639 language code, possibly with an ISO 15924 script code", | ||
"required": true, | "required": true, | ||
"type": "line" | "type": "line", | ||
"example": "hi (Hindi), sr-Cyrl (Serbian written in the Cyrillic script), und-Hani (an undetermined language written with Chinese characters), mis (an unknown language)" | |||
}, | }, | ||
"2": { | "2": { | ||
Line 99: | Line 100: | ||
"suggested": true, | "suggested": true, | ||
"type": "string" | "type": "string" | ||
}, | |||
"italics": { | |||
"aliases": [ | |||
"i", | |||
"italic" | |||
], | |||
"label": "Italics", | |||
"description": "Allows for control over whether transliterated text is italicized. It is useful to disable italics in cases like proper names.", | |||
"type": "string", | |||
"suggestedvalues": [ | |||
"yes", | |||
"no", | |||
"invert", | |||
"unset", | |||
"inherit" | |||
], | |||
"default": "inherit" | |||
} | } | ||
} | }, | ||
"paramOrder": [ | |||
"1", | |||
"2", | |||
"3", | |||
"italics" | |||
] | |||
} | } | ||
</templatedata> | </templatedata> |