Template:Pre
From UO Excelsior Wiki - Ultima Online Free Shard
Contents
Template:Pre is designed for use on all pages to put text into <pre></pre> tags. {{#if: It is necessary that this template display at the bottom of this page in order to function properly. | It is necessary that this template display at the bottom of this page in order to function properly. | }}
Template
{{#switch: {{Pre| }} | {{Pre| }} }}
{{#if: | {{#ifeq: {{{display}}} | yes
| ==Display==
{{#switch: {{{1}}} | {{{1}}} }}
| ==Display==
{{{display}}}
}}
}}
Parameters
{{#switch: {{{parameters}}} | none = This template has no parameters. | | #default = }} {{#fornumargs: key | value | [[Category:{{#var: value}}|Pre]] }}
1
- Usage: {{#ifeq: mandatory | mandatory | Mandatory | Optional}}
- Description: The 1 parameter takes a string or strings denoting the text to be placed in the <pre></pre> tags. 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:Pre. }} }} {{#if: | {{{othernotes}}} }}
- Valid Value(s): Any string or strings.
{{#switch: {{{1}}} | {{{1}}} }}