Content deleted Content added
Tags: Mobile edit Mobile web edit |
Psiĥedelisto (talk | contribs) m update doc for css attribute default overrides |
||
Line 9:
*<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 extended 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 rest of contents will align at the next column(s).
*In addition, you can override the defaults for <tt>font-size</tt>, <tt>line-height</tt> and <tt>display</tt> 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, 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 for unnecessary purpose as this causes problems with browsers which do not support vertical layout.
Line 18 ⟶ 19:
*<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 ===
|