{{{1}}}

Template documentation[view] [edit] [history] [purge]

{{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".

Ùsaid - Usage

deasaich

{{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.

Faic cuideachd - Also see

Font size templates
Code Size Semantics Result
{{Small|text}} 85% <small> text
{{Mór|text|85%|0%}} 85% <small> text
{{Resize|85%|text}} 85% <small> text
{{Resize|small|text}} 85% <small> text
{{Resize|Small|text}} 85% <small> text
{{Smaller|text}} 90% none text
{{Mór|text|90%|0%}} 90% none text
{{Resize|text}} 90% none text
{{Resize|smaller|text}} 90% none text
{{Resize|Smaller|text}} 90% none text
{{Midsize|text}} 92% none text
{{Mór|text|92%|0%}} 92% none text
{{Resize|92%|text}} 92% none text
{{Resize|midsize|text}} 92% none text
{{Resize|Midsize|text}} 92% none text
none 100% none text
{{Mór|text|100%|0%}} 100% none text
{{Resize|100%|text}} 100% none text
{{Larger|text}} 110% none text
{{Mór|text|110%|0%}} 110% none text
{{Resize|110%|text}} 110% none text
{{Resize|larger|text}} 110% none text
{{Resize|Larger|text}} 110% none text
{{Mór|text}} 120% none text
{{Mór|text|120%|0%}} 120% none text
{{Resize|120%|text}} 120% none text
{{Resize|big|text}} 120% none text
{{Resize|Big|text}} 120% none text
{{Large|text}} large none text
{{Resize|large|text}} Large none text
{{Resize|Large|text}} Large none text
{{Huge|text}} 180% none text
{{Mór|text|180%|0%}} 180% none text
{{Resize|180%|text}} 180% none text
{{Resize|huge|text}} 180% none text
{{Resize|Huge|text}} 180% none text
{{Resize|x-large|text}} 180% none text
{{Resize|X-large|text}} 180% none text
{{Resize|XL|text}} 180% none text
{{Resize|xl|text}} 180% none text
{{Resize|Xl|text}} 180% none text
{{Resize|x%}} custom none
{{Font|size=x%}} custom none