Template:MongolUnicode/doc
| This is a documentation subpage for Template:MongolUnicode. It may contain usage information, categories and other content that is not part of the original template page. |
| This template should not be used in citation templates such as Citation Style 1 and Citation Style 2, because it includes markup that will pollute the COinS metadata they produce; see Wikipedia:COinS. |
Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Uses TemplateStyles.tab.
Usage
[edit source]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, so this template can be used for text written in various different languages, including varieties of Mongolian (Classical Mongolian, Halh [khk] and Peripheral Mongolian [mvf]), as well as Manchu [mnc] and Sibe [sjo].
- 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)
langparameter: defines the language of the text, e.g.mnfor Mongolian,mncfor Manchu, andsjofor Sibe; also used for switching font families by languagestyleparameter: defines extended style of the text area, e.g.height:50pxlimits the height as 50px, if the length of text is over than 50px, the rest of contents will align at the next column(s).- In addition, you can override the defaults for
font-size,line-height, anddisplayusing 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, so it is best to break long vertical runs of Mongolian text into short word-lengthed chunks. This can be done by wrapping each Mongolian word in a separate MongolUnicode template, and separating each MongolUnicode template by a space character (if you omit the space character the Mongolian text will format correctly, but if a user copies the Mongolian text from the article the individual words will be concatenated into a single word). Do not use <br/> to break vertical Mongolian runs for unnecessary purpose as this causes problems with browsers which do not support vertical layout.
Examples
[edit source]{{MongolUnicode|ᠮᠣᠩᠭᠣᠯ ᠪᠢᠴᠢᠭ᠌}}produces: ᠮᠣᠩᠭᠣᠯ ᠪᠢᠴᠢᠭ᠌{{MongolUnicode|ᠮᠣᠩᠭᠣᠯ ᠪᠢᠴᠢᠭ᠌|v}}produces: ᠮᠣᠩᠭᠣᠯ ᠪᠢᠴᠢᠭ᠌{{MongolUnicode|ᠮᠣᠩᠭᠣᠯ ᠪᠢᠴᠢᠭ᠌|h}}produces: ᠮᠣᠩᠭᠣᠯ ᠪᠢᠴᠢᠭ᠌{{MongolUnicode|ᠮᠣᠩᠭᠣᠯ}} {{MongolUnicode|ᠪᠢᠴᠢᠭ᠌|v}}produces: ᠮᠣᠩᠭᠣᠯ ᠪᠢᠴᠢᠭ᠌{{MongolUnicode|ᠮᠣᠩᠭᠣᠯ ᠪᠢᠴᠢᠭ᠌|style=height:50px}}produces: ᠮᠣᠩᠭᠣᠯ ᠪᠢᠴᠢᠭ᠌{{MongolUnicode|ᠸᠢᠺᠢᠫᠧᠳᠢᠶᠠ|font-size=2em}}produces: ᠸᠢᠺᠢᠫᠧᠳᠢᠶᠠ
Issues
[edit source]For MediaWiki issues regarding this: bugzilla:9436
Non-Font
[edit source]When Daicing font set to be the EUDC,
- U+200D <reserved-200D> at the head-place does not work.
- U+180A ᠊ <reserved-180A> does not work.
- U+202F <reserved-202F> does not work.
Font issues
[edit source]MQT=Menksoft'sMenk Qagan Tig, is a font for Hudum, Todo, Manchu and Sibe, with full Ali-Gali support;MW=Almas'sMongolian White, is a font for Hudum and Todo, with some Ali-Gali support;MB=Founder-Microsoft'sMongolian Baiti, is a font for Hudum, Todo, Manchu and Sibe, with some Ali-Gali support;MU=Monotype Drawing Office'sMongol Usug, is a font for Hudum and Todo;MS=Myatav Erdenechimeg'sMongolianScript, is a font for Hudum only;DW=Daicing White, also known asAbkai Xanyan, is a font for Manchu, Sibe and Daur.
- Little issues are found in
MQT; - Final k/g ATR- rendering issues are found in all fonts except
MQTandMS, but Erdenechimeg said her font was an early draft and does not met current Unicode standards; MUdoes not follow Unicode Standardized Variants (by ad hoc rendering FVS1~3) in many cases;MB5.00 does not match Unicode Standard, please upgrade it toMB5.01 (KB929763);- Under certain situations ᠶ is incorrectly rendered as ᠢ or ᠵ in
MB5.01 andMU2.37; - ᡓ is incorrectly rendered as ᠴ in
MU2.37; MB5.01 does not render ᡯᡳ correctly (we may use ᡯᡳ᠌ instead inMB).
Template data
[edit source]TemplateData for MongolUnicode
Intended for use with text written in the Unicode "Mongolian" script, to improve display of this text in browsers.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Text | 1 | The Mongolian text to display | Content | required |
| Direction | 2 | Whether to display the text horizontal (default) or vertical
| String | suggested |
| Language | lang 3 | The language of the text as a ISO 639 language code
| String | suggested |
| display | display | no description | Unknown | deprecated |
| font-weight | font-weight | no description | Unknown | optional |
| font-size | font-size | no description | Unknown | optional |
| line-height | line-height | no description | Unknown | optional |
| vertical-align | vertical-align valign | no description | Unknown | optional |
| CSS style | style | 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). | String | optional |
See also
[edit source]