Difference between revisions of "Template:Colored Link"

m
m
 
(18 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>[[{{{1}}}|<font color="#{{#if:{{{3}}}|{{{3}}}|000000}}">{{#if:{{{2}}}|{{{2}}}|{{{1}}}}}</font>]]</includeonly><noinclude>
+
<noinclude>{{Template Overview
This is a template to color links.
+
|usedon=all
 
+
|purpose=display a link in a specific, custom color
==Usage==
+
|template=<nowiki>{{Colored Link|(Page)|(Text)|color=}}</nowiki>
<pre>
+
|category=Utility
{{Link | Page | Text | Color}}
+
}}
</pre>
+
{{Template Parameter
* Link = Name of this template.
+
|name=1
* Page = The actual page to be linked to.
+
|usage=mandatory
* Text = Optional parameter which determines the text displayed as the link. Default is the value of "Page".
+
|takes=a string or strings
* Color = Optional named parameter which determines the text color. Default is black (000000).
+
|denotes=the actual page to be linked to
 
+
|generates=the actual link
[[Category:General Wiki Templates]]
+
|othernotes=This parameter is an anonymous parameter, which means that no parameter name needs to be explicitly specified to use it.
</noinclude>
+
|validvalues=Any string or strings.
 +
}}
 +
{{Template Parameter
 +
|name=2
 +
|takes=a string or strings
 +
|denotes=the text that the link displays
 +
|generates=the link's visible text
 +
|othernotes=This parameter is an anonymous parameter, which means that no parameter name needs to be explicitly specified to use it.
 +
|validvalues=Any string or strings.
 +
}}
 +
{{Template Parameter
 +
|name=color
 +
|takes=a string
 +
|denotes=the color in which the link should display
 +
|generates=the color of the link
 +
|defaultvalue=000000
 +
|validvalues=Any string that corresponds to a valid hexidecimal color value.
 +
}}
 +
</noinclude><includeonly>[[{{{1}}}|{{Colored Text|color={{{color|000000}}}|text={{{2|{{{1}}}}}}}}]]</includeonly>

Latest revision as of 08:22, 28 December 2009

Template:Colored Link is designed for use on all pages to display a link in a specific, custom color.

Template

{{Colored Link|(Page)|(Text)|color=}}

Parameters

1

  • Usage: Mandatory
  • 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. 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: 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. 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: 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 this parameter is left blank or omitted, a default value of "000000" is used.
  • Valid Value(s): Any string that corresponds to a valid hexidecimal color value.