Template:MongolUnicode/doc: Difference between revisions

Content deleted Content added
Usage: Add an explaination
Tags: Mobile edit Mobile web edit
Usage: Small fix
Tags: Mobile edit Mobile web edit
Line 8:
*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)
*<tt>lang</tt> parameter: defines the language of the text, e.g. <tt>mn</tt> for Mongolian, <tt>mnc</tt> for Manchu, and <tt>sjo</tt> for Sibe; also used for switching font families by language
*<tt>style</tt> parameter: defines another style of the text area, e.g. <tt>height=:50px;</tt> limits the height as 50px, if the length of text is over than 50px, the extra parts will align at the next line.
 
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, and 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 <nowiki><br/></nowiki> to break vertical Mongolian runs as this causes problems with browsers which do not support vertical layout.