Template:GSFont: Difference between revisions
mNo edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<span class="RSFont" style="color:{{{color|{{{color|white}}}}}}; font-family:axia-stencil; font-size:{{{size| | <span class="RSFont" style="color:{{{color|{{{color|white}}}}}}; font-family:axia-stencil; font-size:{{{size|11}}}pt; {{#ifeq:{{lc:{{{shadow}}}}}|no||text-shadow:0.5px 0.5px 0px #000;}}; {{#if:{{{bg|}}}|background:{{{bg}}};padding:2px 5px;border-radius:1.5px;|{{#ifeq:{{{color|{{{color|white}}}}}}|white|background:#0A1720; padding:2px 5px; border-radius:1.5px;}}}}; {{{styling|}}};">{{#ifeq:{{lc:{{{broadcast}}}}}|yes|[[File:N8.png|25px|link=]]}} {{{1}}}</span><noinclude>{{/doc}}</noinclude> | ||
Latest revision as of 23:05, 11 June 2020
{{{1}}}
This template can be used to display text the way it would appear in in-game interfaces and website.
Usage
Note: 'color' may be spelled without the 'u' as this is how it appears in CSS styling.
{{GSFont|text|color=optional colour}}
- Additional parameters
{{GSFont|text|color=optional colour|bg=background colour|shadow=no|broadcast=yes}}
Example
{{GSFont|The quick brown fox jumps over the lazy dog.}}
Produces: The quick brown fox jumps over the lazy dog.
{{GSFont|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:
{{GSFont|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.
{{GSFont|The quick brown fox jumps over the lazy dog.|color=red|broadcast=yes}}
Produces:
The quick brown fox jumps over the lazy dog.
To change background colour, use bg=colour. This is best combined with no shadow:
{{GSFont|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.
{{GSFont|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.
{{GSFont|The quick brown fox jumps over the lazy dog.|styling=font-style: oblique}}
Produces: The quick brown fox jumps over the lazy dog.
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.
|
||||||||||||||||||||||||||||||||||||||||