Content deleted Content added
m →Usage |
m →Non-Font: Use Template:Unichar |
||
(23 intermediate revisions by 11 users not shown) | |||
Line 1:
{{Documentation subpage}}
{{COinS safe|n}}
{{Uses TemplateStyles|Template:MongolUnicode/fonts.css}}
<!-- Categories and interwikis go at the bottom of this page. -->
=== Usage ===
This template is intended for use with text written in the Unicode "Mongolian" script. Note, the Unicode "Mongolian" script is a unification of the Mongolian, Todo, Manchu and Sibe scripts,
*1st parameter is the Mongolian (Todo, Manchu, Sibe) text to display
*2nd parameter is optional; if it is 'h' then the text is laid out horizontally; if it is any other value (e.g. 'v'), or if it is omitted then the text is laid out vertically (if the browser supports vertical layout)
*<
*<
*In addition, you can override the defaults for <code>font-size</code>, <code>line-height</code>, and <code>display</code> using likewise named parameters.
If you have a long run of vertical Mongolian text (i.e. more than one or two words) embedded in a horizontal English paragraph, it will create a very large gap between lines,
=== Examples ===
Line 17 ⟶ 20:
*<code><nowiki>{{MongolUnicode|ᠮᠣᠩᠭᠣᠯ ᠪᠢᠴᠢᠭ᠌|h}}</nowiki></code> produces: {{MongolUnicode|ᠮᠣᠩᠭᠣᠯ ᠪᠢᠴᠢᠭ᠌|h}}
*<code><nowiki>{{MongolUnicode|ᠮᠣᠩᠭᠣᠯ}} {{MongolUnicode|ᠪᠢᠴᠢᠭ᠌|v}}</nowiki></code> produces: {{MongolUnicode|ᠮᠣᠩᠭᠣᠯ}} {{MongolUnicode|ᠪᠢᠴᠢᠭ᠌|v}}
*<code><nowiki>{{MongolUnicode|ᠮᠣᠩᠭᠣᠯ ᠪᠢᠴᠢᠭ᠌|style=height:50px}}</nowiki></code> produces: {{MongolUnicode|ᠮᠣᠩᠭᠣᠯ ᠪᠢᠴᠢᠭ᠌|style=height:50px}}
*<code><nowiki>{{MongolUnicode|ᠸᠢᠺᠢᠫᠧᠳᠢᠶᠠ|font-size=2em}}</nowiki></code> produces: {{MongolUnicode|ᠸᠢᠺᠢᠫᠧᠳᠢᠶᠠ|font-size=2em}}
=== Issues ===
For MediaWiki issues regarding this: [[bugzilla:9436]]
==== Non-Font ====
When Daicing font set to be the EUDC,
*
*
*
==== Font issues ====
# Little issues are found in <code>MQT</code>;
# Final k/g ATR- rendering issues are found in all fonts except < # <
# <
# Under certain situations {{MongolUnicode|valign=middle|ᠶ}} is incorrectly rendered as {{MongolUnicode|valign=middle|ᠢ}}<!--Middle form--> or {{MongolUnicode|valign=middle|ᠵ}}<!--Head form--> in <
# {{MongolUnicode|valign=middle|ᡓ}} is incorrectly rendered as {{MongolUnicode|valign=middle|ᠴ}} in <
# <
==
{{Template data header}}
* [[Mongolian script#Mongolian in Unicode]]▼
<templatedata>
{
"params": {
"1": {
"label": "Text",
"description": "The Mongolian text to display",
"type": "content",
"required": true
},
"2": {
"label": "Direction",
"description": "Whether to display the text horizontal (default) or vertical",
"type": "string",
"suggestedvalues": [
"h",
"v"
],
"default": "h",
"suggested": true
},
"lang": {
"aliases": [
"3"
],
"label": "Language",
"description": "The language of the text as a ISO 639 language code",
"example": "mn",
"type": "string",
"suggestedvalues": [
"mn",
"mnc",
"sjo",
"khk",
"mvf"
],
"suggested": true
},
"display": {
"deprecated": true
},
"font-weight": {},
"font-size": {},
"line-height": {},
"vertical-align": {
"aliases": [
"valign"
]
},
"style": {
"label": "CSS style",
"description": "Defines extended style of the text area, e.g. height:50px limits the height as 50px, if the length of text is over than 50px, the rest of contents will align at the next column(s).",
"type": "string"
}
},
"paramOrder": [
"1",
"2",
"lang",
"display",
"font-weight",
"font-size",
"line-height",
"vertical-align",
"style"
],
"description": "Intended for use with text written in the Unicode \"Mongolian\" script, to improve display of this text in browsers.",
"format": "inline"
}
</templatedata>
== See also ==
* {{tl|ManchuSibeUnicode}}
<includeonly>{{Sandbox other||
[[Category:Mongolian language|Template]]
[[Category:Script–font templates|MScript/MongolUnicode]]<!-- 'name' for sort purposes only -->
}}</includeonly>
|