Template:Resize/doc: Difference between revisions
Jump to navigation
Jump to search
(→See also: some rewording, subheading) |
(→Redirects: reworded) |
||
Line 21: | Line 21: | ||
===Redirects=== | ===Redirects=== | ||
* {{ | * {{tlx|smaller|...}} instead of <code><nowiki>{{resize|90%|...}}</nowiki></code>. | ||
===See also=== | ===See also=== |
Revision as of 01:34, 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|...}} instead of
{{resize|90%|...}}
.
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.