Template:Resize/doc

From Official Kodi Wiki
< Template:Resize
Revision as of 15:45, 18 March 2012 by 50.53.15.51 (talk) (explanations)
Jump to navigation Jump to search

Template to aid switching the font-size used for a text string.

Syntax

{{resize|N|text}}  or  {{resize|text}}
N specifies a size, such as "90%", "1.2em", etc. For the default case (the second above), N is set to "90%".
If the text happens to contain an equality sign "=", specify {{resize|N|2=text}} or {{resize|1=text}}.

Examples

{{resize|1.2em|This text is 0.2em larger than normal}}    This text is 0.2em larger than normal
{{resize|80%|This text is 80% normal size}} This text is 80% normal size
{{resize|This text defaults to 90% normal size}} This text defaults to 90% normal size

Redirects

  • {{smaller}} - meant to be used with only one argument for 10% smaller

See also

  • {{larger}} - the same idea as {{smaller}}, but 10% larger instead of smaller.
  • {{small}} - 15% smaller; a shortcut for <small>...</small>
  • {{big}} - 15% larger; a shortcut for <big>...</big>
  • {{huge}} - for diacritic marks only; similar to {{big}} but considerably larger, and compensates for vertical alignment.
  • {{large}} - simply large
  • {{color}} - used to add a span of text with a given foreground color
  • {{background color}} - used to add a span of text with a given background color