Pergi ke kandungan

Bantuan:Templat saiz pasuan

Daripada Wikisource
Templat saiz pasuan


Page Bantuan:Templat saiz pasuan/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "wikiteks").

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 they will cause a paragraph break. See H:DIVSPAN for more details.

Font size definition by relative differences using words

Inline template Block template Size 12pt/16px
default base[1]
Sample
{{xxxx-smaller}} 41% 5pt/6.7px Templat:Xxxx-smaller
{{xxx-smaller}} 50% 6pt/8px Templat:Xxx-smaller
{{xx-smaller}} {{xx-smaller block}} 58% 7pt/9px Templat:Xx-smaller
{{x-smaller}} {{x-smaller block}} 69% 8pt/11px Lorem ipsum dolor sit amet,
{{smaller}} {{smaller block}} 83% 10pt/13px Lorem ipsum dolor sit amet,
{{fine}} {{fine block}} 92% 11pt/15px Templat:Fine
100% 12pt/16px Lorem ipsum dolor sit amet,
{{m-larger}} {{m-larger block}} 110% 13pt/18px Templat:M-larger
{{larger}} {{larger block}} 120% 14pt/19px Lorem ipsum dolor sit amet,
{{x-larger}} {{x-larger block}} 144% 17pt/23px Templat:X-larger
{{xx-larger}} {{xx-larger block}} 182% 22pt/29px Lorem ipsum dolor sit amet,
{{xxx-larger}} {{xxx-larger block}} 207% 25pt/33px Lorem ipsum dolor sit amet,
{{xxxx-larger}} {{xxxx-larger block}} 249% 30pt/40px Templat:Xxxx-larger

Templat:References


100% and smaller font size and style comparisons table[sunting]

Template Normal Bold Italics Bold and italics
Templat:Fs Templat:Fs Templat:Fs Templat:Fs
Templat:Fs Templat:Fs Templat:Fs Templat:Fs
{{fine block}} and {{fine}} Templat:Fs Templat:Fs Templat:Fs Templat:Fs
Templat:Fs Templat:Fs Templat:Fs Templat:Fs
Templat:Fs Templat:Fs Templat:Fs Templat:Fs
{{smaller}} Templat:Fs Templat:Fs Templat:Fs Templat:Fs
Templat:Fs Templat:Fs Templat:Fs Templat:Fs
Templat:Fs Templat:Fs Templat:Fs Templat:Fs
{{x-smaller}} {{x-smaller block}} Templat:Fs Templat:Fs Templat:Fs Templat:Fs
{{xx-smaller}} {{xx-smaller block}} Templat:Fs Templat:Fs Templat:Fs Templat:Fs

Fonts smaller than 100% with proportional line heights[sunting]

Templat:Under construction

Line height of 100% font size is 140%
Template Font size Line height Block Inline Comments
{{fs70}} 70% inherited Templat:Tick used for fractions {{sfrac}} inline, no paragraph padding
{{fs75}} 75% inherited Templat:Tick no paragraph padding
{{fs80}} 80% 112% Templat:Tick .50em padding before and after single paragraph
{{fs80/s}} & {{fs80/e}} 80% 112% Templat:Tick .50em padding before and after single paragraph
{{fs85}} 85% 119% Templat:Tick .50em padding before and after a single paragraph
{{fs85/s}} & {{fs85/e}} 85% 119% Templat:Tick .50em padding before and after spanning multiple paragraph(s) or page(s)
{{fs90}} 90% 126% Templat:Tick .50em padding included before and after wrapped text.
{{fs90/s}} & {{fs90/e}} 90% 126% Templat:Tick .50em padding before and after spanning multiple paragraph(s) or page(s)

See also[sunting]

  1. Contemporary web browsers have largely standardized on a default base font size of 12pt or 16px.