Template:Fs

From Step Mods | Change The Game
Revision as of 15:52, September 22, 2021 by Z929669 (talk | contribs) (→‎Examples)

Forum Topic

Purpose & Usage[edit source]

This template is used to change text size.

Info-Logo.png

NOTE

Always use a 'named' second parameter (text) when using this template to color text that includes an equal ('=') symbol to avoid parser errors.

Required Parameters[edit source]

This template uses 'anonymous' and optionally 'named' parameters, and all are required and must appear in a particular order.

First Prameter - font size - Sets the size of text

Values
Any valid CSS font-size ('rem' or '%' units preferred)

Second Prameter - text - Sets the text to be colored

Values
Free text (this parameter can also be 'named' if the text to be sized includes an equal ('=') symbol)

Optional Parameters[edit source]

Not applicable.

Examples[edit source]

Code:

{{Fs|1.4rem|This is 1.4rem font.}}

Result: This is 1.4rem font.


Code:

This shows how {{Fs|80%|users can mix {{Fs|25px|font sizes}} for various applications.}}

Result: This shows how users can mix font sizes for various applications.


Code:

{{Fs|large|Font that is larger}} than the default site font

Result: Font that is larger than the default site font


Code:

{{Fs|1.2rem|text=Use the ''text'' parameter when "=" characters are used.}}

Result: Use the text parameter when "=" characters are used.


Code:

{{Fs|1000|Invalid CSS parameters}} don't affect text size.

Result: Invalid CSS parameters don't affect text size.

See Also[edit source]

Template:Fc