Dominion Atlantic Railway Digital Preservation Initiative - Wiki
Use of this site is subject to our Terms & Conditions.
Template:Resize/doc
{{#if: |
{{#if:x||
}} |{{#ifeq: doc | doc
|
{{
#ifeq: show | show | {{ {{#switch: {{#if: | | {{#if: | {{#ifeq:| | talk | }} | {{#ifeq:template|template talk | talk | template }} }} }}
| main | = ambox | talk = tmbox | user = ombox | wikipedia = ombox | file | image = imbox | mediawiki = ombox | template = ombox | help = ombox | category = cmbox | portal = ombox | book = ombox | other | #default = ombox
}}
| type = notice
| image = none
| imageright =
| class =
| style =
| textstyle =
| text = This is a documentation subpage for Template:Resize (see that page for the {{ #if: Template | template | article }} itself).
It contains usage information, categories and other content that is not part of the original {{ #if: Template |template page|article}}.
| small =
| smallimage =
| smallimageright =
| smalltext =
| subst =
| date =
}}
}}{{ #if: | | [[Category:{{ #if: Template | Template | Article }} documentation]] }}
|
}}
}}
Template to aid switching the font-size used for a text string.
Syntax
{{resize|N|text}}
or {{resize|text}}
N specifies a size, such as "90%", "1.2em", etc. For the default case (the second above), N is set to "90%".
If the text
happens to contain an equality sign "=", specify {{resize|N|2=text}}
or {{resize|1=text}}
.
Examples
{{resize|1.2em|This text is 0.2em larger than normal}}
|
{{#if:This text is 0.2em larger than normal | This text is 0.2em larger than normal | 1.2em
}} |
{{resize|80%|This text is 80% normal size}}
|
{{#if:This text is 80% normal size | This text is 80% normal size | 80%
}} |
{{resize|This text defaults to 90% normal size}}
|
{{#if: | This text defaults to 90% normal size
}} |
Redirects
- {{smaller}}
See also