This is a documentation subpage for Template:Midsizediv. It may contain usage information, categories and other content that is not part of the original template page. |
{{Midsizediv}}, intended for block content (see {{midsize}} for the corresponding in-line template), displays parameter 1 as mid-size text, at font-size 92%, slightly larger than Template:Smalldiv, which shows text at 85% size. The optional parameter "height=1.1" can wrap multiple lines closer together. Parameter "size=70" can set other sizes, such as:
Usage
{{midsizediv|This is middle-sized text.}} →
The line-height is also reduced so that the text wraps as less-tall lines, as in the following example of text with breaks in the lines:
{{midsizediv| This example shows multiple lines of middle-sized text as being wrapped onto multiple lines, closer together.}} →
middle-sized text as being wrapped
onto multiple lines, closer together.{{midsizediv|height=0.9|This 2nd example shows multiple lines of middle-sized text being wrapped onto multiple lines, even closer together.}} →
middle-sized text being wrapped
onto multiple lines, even closer together.Because many users are unaware of the style directives for changing both the font-size and the line-height attributes, then Template:Midsizediv provides an easy way to consistently reduce block-content text as being middle-sized, but larger than small-font text, while also allowing "height=1.1" or "size=n" for other sizes.
See also
Code for inline content | Code for block content | Size | Result |
---|---|---|---|
{{small|text}} {{smaller|text}} |
{{smalldiv|text}} |
85% | text |
{{resize|text}} |
{{resizediv|text}} |
90% | text |
{{midsize|text}} |
92% | text | |
none | none | 100% | text |
{{large|text}} {{larger|text}} {{big|text}} |
{{largediv|text}} |
120% | text |
{{huge|text}} |
180% | text | |
{{resize|x%|text}} |
{{resizediv|x%|text}} |
custom | varies |
{{font|size=x%}} |
custom | varies |