跳转到内容

模板:Smaller block/doc

维基文库,自由的图书馆

Usage

[编辑]

General form

[编辑]

This template renders one or more blocks of text in the respective smaller or larger font.

e.g. {{Smaller block|{{lorem ipsum}}}} yields

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo.

To modify the size of a few words within a block of text, use the appropriate inline template (<span>)—this will modify the span without breaking up the text, and without interfering in block-level properties like line spacing.


See also

[编辑]
字体大小模板
模板 Block模板 大小 示例
{{xx-smaller}} {{xx-smaller block}} 58% 维基文库
{{x-smaller}} {{x-smaller block}} 69% 维基文库
{{small}} small 维基文库
{{smaller}} {{smaller block}} 83% 维基文库
{{fine}} {{fine block}} 92% Template:Fine
100% 维基文库
{{larger}} {{larger block}} 120% 维基文库
{{big}} 120% 维基文库
{{++}} 120% 维基文库
{{large}} large 维基文库
{{x-larger}} {{x-larger block}} 144% 维基文库
{{huge}} 180% 维基文库
{{xx-larger}} {{xx-larger block}} 182% 维基文库
{{xxx-larger}} {{xxx-larger block}} 207% 维基文库
{{xxxx-larger}} {{xxxx-larger block}} 249% 维基文库
{{font-size}}
{{font-size-x}}
{{font|size=}}