Difference between revisions of "Template:Colored Link"

m
m
Line 1: Line 1:
<includeonly>[[{{{1}}}|<font color="#{{#if:{{{color|}}}|{{{color}}}|000000}}">{{#if:{{{2}}}|{{{2}}}|{{{1}}}}}</font>]]</includeonly><noinclude>[[Category:Templates]]
+
<includeonly>[[{{{1}}}|<font color="#{{#if:{{{3}}}|{{{3}}}|000000}}">{{#if:{{{2}}}|{{{2}}}|{{{1}}}}}</font>]]</includeonly><noinclude>
 
This is a template to color links.
 
This is a template to color links.
  
Usage: <nowiki>{{Link | Text | color=000000}}</nowiki>
+
==Usage==
 +
<pre>
 +
{{Link | Page | Text | Color}}
 +
</pre>
 +
* Link = Name of this template.
 +
* Page = The actual page to be linked to.
 +
* Text = Optional parameter which determines the text displayed as the link. Default is the value of "Page".
 +
* Color = Optional named parameter which determines the text color. Default is black (000000).
  
* Link = Template name
+
[[Category:General Wiki Templates]]
* Text = Name of link
+
* Color = Optional named parameter which determines the text color. Default is black(000000).
+
 
</noinclude>
 
</noinclude>

Revision as of 15:40, 7 January 2008

This is a template to color links.

Usage

{{Link | Page | Text | Color}}
  • Link = Name of this template.
  • Page = The actual page to be linked to.
  • Text = Optional parameter which determines the text displayed as the link. Default is the value of "Page".
  • Color = Optional named parameter which determines the text color. Default is black (000000).