Template:Overhead

From Old School Near-Reality Wiki
Revision as of 13:30, 7 November 2022 by Jacmob (talk | contribs) (Created page with "<span style="color:{{{colour|{{{color|yellow}}}}}}; font-family: RuneScape; font-weight: bold; font-size:{{{size|12}}}pt; {{#ifeq:{{lc:{{{shadow}}}}}|no||text-shadow:1px 1px 0px #000;}}; {{#if:{{{bg|}}}|background:{{{bg}}};padding:2px 5px;border-radius:1.5px;|{{#ifeq:{{{color|yellow}}}|yellow|background:rgba(0,0,0,0.4);padding:2px 5px;border-radius:1.5px;}}}}; {{{styling|}}};">{{{1}}}</span><noinclude>{{/doc}}</noinclude>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

{{{1}}}

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

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

Usage

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

{{overhead|text|color=optional colour}}
Additional parameters
{{overhead|text|color=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.|color=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.|color=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.|color=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.

See also