Content added Content deleted
(template created) |
(updated for consistency with other size formatting templates) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<span style="font-size: |
<includeonly><span style="font-size:92%;{{#if:{{{style|}}}|{{{style}}};}}">{{{1}}}</span></includeonly> |
||
<noinclude>{{doc|{{smaller/doc}}}}</noinclude> |
|||
===Usage=== |
|||
*This template simplifies formatting text that is {{{{BASEPAGENAME}}|{{BASEPAGENAME}}}}. |
|||
*Simply copy/type the following code <code><nowiki>{{smaller|text here}}</nowiki></code> for smaller text that 83% normal size. |
|||
*Note that the template doesn't seem to handle the equals character "=", use <nowiki>{{=}}</nowiki> for equals instead. |
|||
===See also=== |
|||
{{Help:Font size templates}} |
|||
[[Category:Templates]] |
|||
[[Category:Formatting templates]] |
|||
</noinclude> |
Latest revision as of 23:50, 11 August 2023
Usage
- This template simplifies formatting text that is Smaller.
- Simply copy/type the following code
{{smaller|text here}}
for smaller text that is 92% normal size. - Note that the template doesn't seem to handle the equals character "=", use {{=}} for equals instead.
See also
These size templates are relative to the default size. There are two kinds of sizing template: inline and block templates. Inline templates are suitable for use within a paragraph, but can't handle paragraph breaks, and do not adjust line spacing. Block templates can handle paragraph breaks, and adjust line spacing, but are not suitable for use within a paragraph, as they will cause a paragraph break.
Please note: None of these fonts have proportional line height to the font size. Line height is only relevant with fonts smaller than 100%.
Inline template | Size | Sample |
---|---|---|
{{xxx-smaller}} | 58% | Lorem ipsum dolor sit amet |
{{xx-smaller}} | 69% | Lorem ipsum dolor sit amet |
{{x-smaller}} | 83% | Lorem ipsum dolor sit amet |
{{smaller}} | 92% | Lorem ipsum dolor sit amet |
— | 100% | Lorem ipsum dolor sit amet |
{{larger}} | 120% | Lorem ipsum dolor sit amet |
{{x-larger}} | 144% | Lorem ipsum dolor sit amet |
{{xx-larger}} | 182% | Lorem ipsum dolor sit amet |
{{xxx-larger}} | 207% | Lorem ipsum dolor sit amet |
{{xxxx-larger}} | 249% | Lorem ipsum dolor sit amet |
The above documentation is transcluded from Template:Smaller/doc.