Template:Midsize/doc

From Gerald R. Lucas
< Template:Midsize
Revision as of 14:59, 20 June 2019 by Grlucas (talk | contribs) (Created page with "{{Documentation subpage}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --> {{tl|Midsize}} d...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

{{Midsize}} displays parameter 1 as mid-size text, at font-size 92%, slightly larger than Template:Small, 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 "This is size-70 text".

Usage:   {{midsize|This is middle-sized text.}} → 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:

  • {{midsize|This example shows multiple lines of<br>middle-sized text as being wrapped<br>
    onto multiple lines, closer together.}} →
    This example shows multiple lines of
    middle-sized text as being wrapped
    onto multiple lines, closer together.
  • {{midsize|height=0.9|This 2nd example shows multiple lines of<br>middle-sized text being wrapped<br>
    onto multiple lines, even closer together.}} →
    This 2nd example shows multiple lines of
    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:Midsize provides an easy way to consistently reduce 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

Font size templates
Template Size Semantics Sample
{{small}} 85% <small> HHHHH
{{smaller}} 90% none HHHHH
{{resize}} 90% none HHHHH
{{midsize}} 92% none HHHHH
none 100% none HHHHH
{{larger}} 110% none HHHHH
{{big}} 120% none HHHHH
{{large}} large none HHHHH
{{huge}} 180% none HHHHH
{{resize|x%}} custom none
{{font|size=x%}} custom none