Template:Colored Text
From UO Excelsior Wiki - Ultima Online Free Shard
Contents
Template:Colored Text is designed for use on all pages to change the color of a span of text. {{#if: | {{{othernotes}}} | }}
Template
{{#switch: {{Colored Text |color= |text= }} | {{Colored Text |color= |text= }} }}
{{#if: | {{#ifeq: {{{display}}} | yes
| ==Display==
{{{text}}}
| ==Display==
{{{display}}}
}}
}}
Parameters
{{#switch: {{{parameters}}} | none = This template has no parameters. | | #default = }} {{#fornumargs: key | value | [[Category:{{#var: value}}|Colored Text]] }}
color
- Usage: {{#ifeq: mandatory | mandatory | Mandatory | Optional}}
- Description: The color parameter takes a string denoting the color, in hexidecimal format, to be used to render the text. This is used to generate the value for the "color" CSS property in the span. {{#if: | If this parameter is left blank or omitted, a default value of "{{{defaultvalue}}}" is used. | }} {{#if: | {{#ifeq: {{{anonymous}}} | true | This parameter, the template's only one, is an anonymous parameter, which means that no parameter name needs to be explicitly specified when using Template:Colored Text. }} }} {{#if: | {{{othernotes}}} }}
- Valid Value(s): Any string or strings that correspond to valid CSS "color" values.
text
- Usage: {{#ifeq: mandatory | mandatory | Mandatory | Optional}}
- Description: The text parameter takes a string or strings denoting the text to be rendered using the supplied "color" value. This is used to generate the actual displayed text. {{#if: | If this parameter is left blank or omitted, a default value of "{{{defaultvalue}}}" is used. | }} {{#if: | {{#ifeq: {{{anonymous}}} | true | This parameter, the template's only one, is an anonymous parameter, which means that no parameter name needs to be explicitly specified when using Template:Colored Text. }} }} {{#if: | {{{othernotes}}} }}
- Valid Value(s): Any string or strings.