Template:Span
From UO Excelsior Wiki - Ultima Online Free Shard
Contents
Template:Span is designed for use on all pages to apply specific display properties to a span of text. {{#if: | {{{othernotes}}} | }}
Template
{{#switch: {{Span |property= |text= }} | {{Span |property= |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}}|Span]] }}
property
- Usage: {{#ifeq: mandatory | mandatory | Mandatory | Optional}}
- Description: The property parameter takes a string denoting the CSS property-value combination that is to be applied to the span of text. This is used to generate the "style" attribute in the <span> tag. {{#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:Span. }} }} {{#if: | {{{othernotes}}} }}
- Valid Value(s): Any string that denotes a valid CSS property-value combination.
text
- Usage: {{#ifeq: mandatory | mandatory | Mandatory | Optional}}
- Description: The text parameter takes a string or strings denoting the text to be stylized and displayed. This is used to generate the actual text that is to go in the <span> tag. {{#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:Span. }} }} {{#if: | {{{othernotes}}} }}
- Valid Value(s): Any string or strings.