Template:RSFont

From the RuneScape Wiki, the wiki for all things RuneScape
Jump to navigation Jump to search

{{{1}}}

Template documentation
This documentation is transcluded from Template:RSFont/doc. [edit] [history] [purge]

This template can be used to display text the way it would appear in in-game interfaces.

Usage

Note: 'color' may be spelled without the 'u' as this is how it appears in CSS styling.

{{RSFont|text|color=optional colour}}
Additional parameters
{{RSFont|text|color=optional colour|bg=background colour|shadow=no|broadcast=yes}}

Example

{{RSFont|The quick brown fox jumps over the lazy dog.}}

Produces: The quick brown fox jumps over the lazy dog.

{{RSFont|The quick brown fox jumps over the lazy dog.|color=red}}

Produces: The quick brown fox jumps over the lazy dog.

To remove the shadow, the parameter shadow=no can be used:

{{RSFont|The quick brown fox jumps over the lazy dog.|color=red|shadow=no}}

Produces: The quick brown fox jumps over the lazy dog.

To add the Game annoucement icon the text, use broadcast=yes.

{{RSFont|The quick brown fox jumps over the lazy dog.|color=red|broadcast=yes}}

Produces: Game announcement.png The quick brown fox jumps over the lazy dog.

To change background colour, use bg=[colour]. To specify no background, use bg=none. The background colour is best combined with no shadow:

{{RSFont|The quick brown fox jumps over the lazy dog.|bg=#404040|shadow=no}}

Produces: The quick brown fox jumps over the lazy dog.

To change the size of the text, use size=12.

{{RSFont|The quick brown fox jumps over the lazy dog.|size=12}}

Produces: The quick brown fox jumps over the lazy dog.

To change the style of the text, use styling=font-style: oblique.

{{RSFont|The quick brown fox jumps over the lazy dog.|styling=font-style: oblique}}

Produces: The quick brown fox jumps over the lazy dog.

Template data

Show/hide template's data

The following information is used by extensions and applications, such as VisualEditor, to help users implement this template onto pages. Please ensure that it is up-to-date.

This template can be used to display text the way it would appear in in-game interfaces.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Text1

The text to be formatted

Example
The quick brown fox jumps over the lazy dog.
Stringrequired
Text colourcolour color

The primary colour for the text

Example
red
Stringoptional
Font sizesize

Font size to be used

Default
9
Example
10
Unknownoptional
Shadowshadow

Turn off shadow effects

Default
yes
Example
no
Unknownoptional
Background colourbg

Background colour for the text (it is suggested to use shadow=no with this option)

Example
#404040
Stringoptional
Additional css stylingstyling

Additional css styling to be applied

Example
font-style: oblique
Stringoptional
Broadcast iconbroadcast

Adds the game announcement icon before the text.

Example
no
Stringoptional