Template:Resize/doc: Difference between revisions
Jump to navigation
Jump to search
(explanations) |
(→See also: some rewording, subheading) |
||
Line 24: | Line 24: | ||
===See also=== | ===See also=== | ||
* {{tl|larger}} | * {{tl|larger}} or {{tl|bigger}}, in the same vein as {{tl|smaller}} but 10% larger instead of smaller. | ||
* {{tl|small}} | * {{tl|small}}, 15% smaller (alternative to <code><nowiki><small>...</small></nowiki></code>). | ||
* {{tl|big}} | * {{tl|big}}, 15% larger (alternative to <code><nowiki><big>...</big></nowiki></code>). | ||
* {{tl|huge}} | * {{tl|huge}}, for diacritic marks only; similar to {{tl|big}} but considerably larger and also compensates for vertical alignment. | ||
* {{tl|large}} - | * {{tl|large}}, equivalent to <code><nowiki><span style="font-size:large;">...</span></nowiki></code>. | ||
* {{tl|color}} | ; Coloring | ||
* {{tl|background color}} | * {{tl|color}}, to add a span of text with a given foreground color. | ||
* {{tl|background color}} or {{tl|bkg}} or {{tl|bg}}, to add a span of text with a given background color. | |||
<includeonly> | <includeonly> |
Revision as of 01:32, 12 December 2012
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}} or {{bigger}}, in the same vein as {{smaller}} but 10% larger instead of smaller.
- {{small}}, 15% smaller (alternative to
<small>...</small>
). - {{big}}, 15% larger (alternative to
<big>...</big>
). - {{huge}}, for diacritic marks only; similar to {{big}} but considerably larger and also compensates for vertical alignment.
- {{large}}, equivalent to
<span style="font-size:large;">...</span>
.
- Coloring
- {{color}}, to add a span of text with a given foreground color.
- {{background color}} or {{bkg}} or {{bg}}, to add a span of text with a given background color.