Template:Resize/doc: Difference between revisions

From TV-Nihon
(order)
(explanations)
Line 21: Line 21:


===Redirects===
===Redirects===
* {{tl|smaller}}
* {{tl|smaller}} - meant to be used with only one argument for 10% smaller


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


<includeonly>
<includeonly>

Revision as of 07:45, 18 March 2012

{{#invoke:Message box|mbox}} 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