Templat:Font-size90%
Templat ini menggunakan TemplateStyles: |
Templat ini menggunakan unsur blok seperti Sila lihat H:DIVSPAN untuk maklumat lanjut. |
Usage
[sunting]This template renders the text of a single paragraph at 90% of normal size.
{{Font-size90%|Insert text here}}
It also applies the following associated parameters:
- font-size:90%
- line-height:126%
- padding-top:.50em
- padding-bottom:.50em
This template is also available in an open and close format where the <div> needs to span a page break in the Page namespace.
- {{font-size90%/s}} to open
- {{font-size90%/e}} to close
These also have short cuts: {{fs90/s}} and {{fs90/e}}.
Example
[sunting]- As standard
{{font-size90%|{{lorem ipsum}}}} {{fs90|{{lorem ipsum}}}}
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
- With the open and close format
{{font-size90%/s}}{{lorem ipsum}}{{lorem ipsum}}{{font-size90%/e}} {{fs90/s}}{{lorem ipsum}}{{lorem ipsum}}{{fs90/e}}
Note that the opening {{fs90/s}} must be on its own line if paragraph breaks within the block are to be honoured. The ending template doesn’t matter (it can be on the same line as the text). Compare the following two examples.
With no leading line break | With a leading line break |
---|---|
{{fs90/s}}Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.{{fs90/e}} |
{{fs90/s}} Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.{{fs90/e}} |
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
|
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. |
Comparison
[sunting]Text with no modification | Text with template applied |
---|---|
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. |
Related templates
[sunting]- {{font-size75%}} / {{fs75}}
- {{font-size80%}} / {{fs80}}
- {{font-size85%}} / {{fs85}}
- {{font-size90%}} / {{fs90}}
- {{font-size75%/s}} {{font-size75%/e}} / {{fs75/s}} {{fs75/e}}
- {{font-size80%/s}} {{font-size80%/e}} / {{fs80/s}} {{fs80/e}}
- {{font-size85%/s}} {{font-size85%/e}} / {{fs85/s}} {{fs85/e}}
- {{font-size90%/s}} {{font-size90%/e}} / {{fs90/s}} {{fs90/e}}
Tiada keterangan.
Parameter | Keterangan | Jenis | Status | |
---|---|---|---|---|
1 | 1 | Text or content to be rendered at given font-size. | Kandungan | diperlukan |