Template:Font-size
From Wikisource
[edit] []
Template documentation
Contents |
[edit] Purpose
This template simplifies formatting text that has a specified font-size.
[edit] Example
{{font-size|150%|font-size}}
[edit] Usage notes
- sizes expressed as a percentage or in 'em' will give the best results
- if the text being resized contains an equal sign it needs to be written as
{{=}}
[edit] See also
All Wikisource 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 the will cause a paragraph break.
| Inline template | Block template | Sample |
|---|---|---|
| {{xx-smaller}} | — | xx-smaller |
| {{x-smaller}} | — | x-smaller |
| {{smaller}} | {{smaller block}} | smaller |
| — | {{fine block}} |
fine print |
| — | — | Normal |
| {{larger}} | {{larger block}} | larger |
| {{x-larger}} | {{x-larger block}} | x-larger |
| {{xx-larger}} | {{xx-larger block}} | xx-larger |
| {{xxx-larger}} | — | xxx-larger |
| {{xxxx-larger}} | — | xxxx-larger |
| Size elements | ||
| {{font-size}} manual text scaling | ||
| {{font-size-x}} also scales line height | ||
| The above documentation is transcluded from Template:Font-size/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |