Sarna News: Bad 'Mechs - Icestorm

Template:Resize/doc

< Template:Resize
Revision as of 02:01, 9 March 2023 by Deadfire (talk | contribs) (Creation (as this is needed))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This template is a tailored shortcut to {{resize}}.

Comparison

Font size templates

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}} {{midsizediv|text}} 92% text
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

See also

TemplateData

It is to change the font size of a text string. Two forms {{resize|<size>|<text>}} and {{resize|<text>}} are possible.

Template parameters

ParameterDescriptionTypeStatus
Size/Text1

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%'.

Stringrequired
Text when size is given2

The text to display in the two parameter version.

Stringoptional
Use div tagdiv

Set to yes to use a div instead of a span tag.

Stringoptional