Template:Colored Link
From UO Excelsior Wiki - Ultima Online Free Shard
Contents
Template:Colored Link is designed for use on all pages to display a link in a specific, custom color. {{#if: | {{{othernotes}}} | }}
Template
{{#switch: {{Colored Link|(Page)|(Text)|color=}} | {{Colored Link|(Page)|(Text)|color=}} }}
{{#if: | {{#ifeq: {{{display}}} | yes
| ==Display==
[[{{{1}}}|{{{1}}}]]
| ==Display==
{{{display}}}
}}
}}
Parameters
{{#switch: {{{parameters}}} | none = This template has no parameters. | | #default = }} {{#fornumargs: key | value | [[Category:{{#var: value}}|Colored Link]] }}
1
- Usage: {{#ifeq: mandatory | mandatory | Mandatory | Optional}}
- Description: The 1 parameter takes a string or strings denoting the actual page to be linked to. This is used to generate the actual link. {{#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 Link. }} }} {{#if: This parameter is an anonymous parameter, which means that no parameter name needs to be explicitly specified to use it. | This parameter is an anonymous parameter, which means that no parameter name needs to be explicitly specified to use it. }}
- Valid Value(s): Any string or strings.
2
- Usage: {{#ifeq: | mandatory | Mandatory | Optional}}
- Description: The 2 parameter takes a string or strings denoting the text that the link displays. This is used to generate the link's visible 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 Link. }} }} {{#if: This parameter is an anonymous parameter, which means that no parameter name needs to be explicitly specified to use it. | This parameter is an anonymous parameter, which means that no parameter name needs to be explicitly specified to use it. }}
- Valid Value(s): Any string or strings.
color
- Usage: {{#ifeq: | mandatory | Mandatory | Optional}}
- Description: The color parameter takes a string denoting the color in which the link should display. This is used to generate the color of the link. {{#if: 000000 | If this parameter is left blank or omitted, a default value of "000000" 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 Link. }} }} {{#if: | {{{othernotes}}} }}
- Valid Value(s): Any string that corresponds to a valid hexidecimal color value.