Template:Font-Family
From UO Excelsior Wiki - Ultima Online Free Shard
Revision as of 07:43, 7 April 2013 by Dramoor (talk | contribs) (Created page with "<noinclude>{{Template Overview |usedon=all |purpose=change the font family of a span of text |template=<nowiki>{{Font-Family |fontfamily= |text= }}</nowiki> |category=Utility }} ...")
Contents
Template:Font-Family is designed for use on all pages to change the font family of a span of text. {{#if: | {{{othernotes}}} | }}
Template
{{#switch: {{Font-Family |fontfamily= |text= }} | {{Font-Family |fontfamily= |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}}|Font-Family]] }}
fontfamily
- Usage: {{#ifeq: mandatory | mandatory | Mandatory | Optional}}
- Description: The fontfamily parameter takes a string or strings denoting the font family to be used to render the text. This is used to generate the value for the "font-family" 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:Font-Family. }} }} {{#if: | {{{othernotes}}} }}
- Valid Value(s): Any string or strings that correspond to valid CSS "font-family" 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 "font-family" 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:Font-Family. }} }} {{#if: | {{{othernotes}}} }}
- Valid Value(s): Any string or strings.