Template:Mongol

From Mongolian script
Revision as of 11:13, 18 February 2019 by Badaa (talk | contribs) (Created page with "<indicator name="Mong"><templatestyles src="Template:Mongol/fonts.css" /></indicator><span {{#if:{{{lang|{{{3|}}}}}}|lang="{{{lang|{{{3|}}}}}}-Mong"}} class="font-mong" style=...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

{{{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:
ᠥᠰᢈᠦ ᠡᠴᠡ ᠰᠤᠷᠤᠭᠰᠠᠨ ᠦᠨᠳᠤᠰᠤᠨ ᠦ ᢈᠡᠯᠡ ᠮᠠᠷᠲᠠᠵᠤ ᠪᠣᠯᠤᠰᠢ ᠦᢉᠡᠢ ᠰᠣᠶᠤᠯ᠃ ᠦᢈᠦᠲᠡᠯ᠎ᠡ ᠣᠷᠤᠰᠢᠬᠤ ᠲᠥᠷᠦᠯᢈᠢ ᠨᠤᠲᠤᠭ ᠰᠠᠯᠵᠤ ᠪᠣᠯᠣᠰᠢ ᠦᢉᠡᠢ ᠣᠷᠤᠨ᠃