(({1))}
This template is used on approximately 118,000 pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. |
((resize|N|text))
— N specifies a size, such as "95%", "1.2em", etc.((resize|text))
— If N is omitted, as in the second line above, a default 90% size is applied.((resize|div=yes|text))
— As above but uses a div tag instead of a span tag.Beware that if text
happens to contain an equality sign (=
), it will fail to render properly. Here are the workarounds:
=
with ((=)), or((resize|N|2=text))
or ((resize|1=text))
.Also it will fail to wrap multiple blocks, such as multiple paragraphs or multiple bullet points. Here are the workarounds:
<div style="font-size:90%;">
</div>
, orCode | Result |
---|---|
((resize|This text defaults to 90% normal size.)) |
This text defaults to 90% normal size. |
((resize|80%|This text is 80% normal size.)) |
This text is 80% normal size. |
((resize|1.2em|This text is 0.2em larger than normal.)) |
This text is 0.2em larger than normal. |
((resize|We know 1+1=2 and 2+2=4. It will fail to render)) |
(({1))} |
((resize|We know 1+1((=))2 and 2+2((=))4.)) |
We know 1+1=2 and 2+2=4. |
((resize|1=We know 1+1=2 and 2+2=4.)) |
We know 1+1=2 and 2+2=4. |
((resize|120%|2=We know 1+1=2 and 2+2=4. This text is 120% normal size.)) |
We know 1+1=2 and 2+2=4. This text is 120% normal size. |
Code for inline content | Code for block content | Size | Result |
---|---|---|---|
((small|text)) ((smaller|text)) |
((smalldiv|text)) | 85% | text |
((resize|text)) | ((resizediv|text)) | 90% | text |
((midsize|text)) | 92% | text | |
none | none | 100% | text |
((large|text)) ((larger|text)) ((big|text)) |
((largediv|text)) | 120% | text |
((huge|text)) | 180% | text | |
((resize|x%|text)) | ((resizediv|x%|text)) | custom | varies |
((font|size=x%)) | custom | varies |
Template to aid switching the font-size used for a text string. Two forms ((resize|<size>|<text>)) and ((resize|<text>)) are possible.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Size/Text | 1 | Specifies a css font size e.g. '80%', '1.2em', 'x-large', 'larger'. In the one parameter version the first parameter is the text and the font size is '90%'. | String | required |
Text when size is given | 2 | The text to display in the two parameter version. | String | optional |
Template to aid switching the font-size used for a text string. Two forms ((resize|<size>|<text>)) and ((resize|<text>)) are possible.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Size/Text | 1 | Specifies a css font size e.g. '80%', '1.2em', 'x-large', 'larger'. In the one parameter version the first parameter is the text and the font size is '90%'. | String | required |
Text when size is given | 2 | The text to display in the two parameter version. | String | optional |