Template:Overhead/doc

This is an old revision of this page, as edited by Alex (talk | contribs) at 00:40, 17 October 2024 (Created page with "{{Documentation}} The '''overhead''' template can be used to display chat and dialogue text the way it would appear above players and NPCs. The internal Jagex functions that generate this type of text are "say" and "npcsay". For game messages, use Template:Mes. ==Usage== <pre>{{overhead|text|colour=optional colour}}</pre> ;Additional parameters <pre>{{overhead|text|colour=optional colour|bg=background colour|shadow=no|size=font size}}</pre> ===Example=== <pre>{{ov..."). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This is a documentation subpage for Template:Overhead.
It contains usage information, categories, and other content that is not part of the original template page.

The overhead template can be used to display chat and dialogue text the way it would appear above players and NPCs. The internal Jagex functions that generate this type of text are "say" and "npcsay". For game messages, use Template:Mes.

Usage

{{overhead|text|colour=optional colour}}
Additional parameters
{{overhead|text|colour=optional colour|bg=background colour|shadow=no|size=font size}}

Example

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

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

{{overhead|The quick brown fox jumps over the lazy dog.|colour=red}}

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

To change the font size, the parameter size=<value> can be used:

{{overhead|The quick brown fox jumps over the lazy dog.|colour=red|size=15}}

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

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

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

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

To change background colour, use bg=colour. This is best combined with no shadow:

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

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.

The overhead template can be used to display chat and dialogue text the way it would appear above players and NPCs.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Text1

Text to be displayed.

Stringoptional
Text colourcolour color

no description

Unknownoptional
Font sizesize

no description

Unknownoptional
Text shadowshadow

no description

Unknownoptional
Background colourbg

no description

Unknownoptional
CSS stylingstyling

no description

Unknownoptional

See also