Difference between revisions of "Template:Mongol"
Tag: Undo |
|||
Line 1: | Line 1: | ||
− | <indicator name="Mong"><templatestyles src="Template:Mongol/fonts.css" /></indicator><span {{#if:{{{lang|{{{3|}}}}}}|lang="{{{lang|{{{3|}}}}}}-Mong"}} class="font-mong" style=" | + | <indicator name="Mong"><templatestyles src="Template:Mongol/fonts.css" /></indicator><span {{#if:{{{lang|{{{3|}}}}}}|lang="{{{lang|{{{3|}}}}}}-Mong"}} class="font-mong" style="display:{{{display|inline-block}}}; font-weight:{{{font-weight|normal}}}; {{#ifeq:{{{2|}}}|h||{{writing-mode|v2}}}} vertical-align:{{{vertical-align|{{{valign|{{#ifeq:{{{2|}}}|h|middle|text-top}}}}}}}}; {{{style|}}}">{{{1}}}</span><noinclude> |
{{Mongol/Doc}} | {{Mongol/Doc}} | ||
</noinclude> | </noinclude> |
Latest revision as of 07:33, 24 February 2019
{{{1}}}
Usage
This template is intended for use with text written in the refined Unicode "Mongolian" script.
- 1st parameter is the Mongolian 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)
- lang parameter: defines the language of the text, e.g. mn for Mongolian, mnc for Manchu, and sjo for Sibe; also used for switching font families by language
- style parameter: 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).
- In addition, you can override the defaults for font-size, line-height, and display 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, 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 Mongol template, and separating each Mongol 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
{{Mongol|ᠮᠣᠩᠭᠣᠯ ᠪᠢᠴᠢᢉ}}
produces: ᠮᠣᠩᠭᠣᠯ ᠪᠢᠴᠢᢉ{{Mongol|ᠮᠣᠩᠭᠣᠯ ᠪᠢᠴᠢᢉ|v}}
produces: ᠮᠣᠩᠭᠣᠯ ᠪᠢᠴᠢᢉ{{Mongol|ᠮᠣᠩᠭᠣᠯ ᠪᠢᠴᠢᢉ|h}}
produces: ᠮᠣᠩᠭᠣᠯ ᠪᠢᠴᠢᢉ{{Mongol|ᠮᠣᠩᠭᠣᠯ}} {{MongolUnicode|ᠪᠢᠴᠢᢉ|v}}
produces: ᠮᠣᠩᠭᠣᠯ ᠪᠢᠴᠢᢉ{{Mongol|ᠮᠣᠩᠭᠣᠯ ᠪᠢᠴᠢᢉ|style=height:60px}}
produces: ᠮᠣᠩᠭᠣᠯ ᠪᠢᠴᠢᢉ
{{MongolDiv|ᠥᠰᢈᠦ ᠡᠴᠡ ᠰᠤᠷᠤᠭᠰᠠᠨ ᠦᠨᠳᠤᠰᠤᠨ ᠦ ᢈᠡᠯᠡ ᠮᠠᠷᠲᠠᠵᠤ ᠪᠣᠯᠤᠰᠢ ᠦᢉᠡᠢ ᠰᠣᠶᠤᠯ᠃ ᠦᢈᠦᠲᠡᠯᠡ ᠣᠷᠤᠰᠢᠬᠤ ᠲᠥᠷᠦᠯᢈᠢ ᠨᠤᠲᠤᠭ ᠰᠠᠯᠵᠤ ᠪᠣᠯᠣᠰᠢ ᠦᢉᠡᠢ ᠣᠷᠤᠨ᠃|style=height:200px}}
produces: