Template:ColoredLink: Difference between revisions

documentation (modelled after Template:Whitelink & Template:Blacklink)
(more functionalities)
(documentation (modelled after Template:Whitelink & Template:Blacklink))
Line 1: Line 1:
<includeonly>[[{{{link|{{{1|}}}}}}|<span style="{{TextColor|{{{color|{{{2|}}}}}}}};">{{{text|{{{3|{{{link|{{{1|}}}}}}}}}}}}</span>]]</includeonly><noinclude>Creates a basic colored link, so that you don't have to.</noinclude>
<includeonly>[[{{{link|{{{1|}}}}}}|<span style="{{TextColor|{{{color|{{{2|}}}}}}}};">{{{text|{{{3|{{{link|{{{1|}}}}}}}}}}}}</span>]]</includeonly><noinclude>Creates a colored link. The following formats are equal:
<pre>{{ColoredLink|Article's Original Name|Color|Optional Name for the Link}}</pre>
<pre>{{ColoredLink|link=Article's Original Name|color=Color|text=Optional Name for the Link}}</pre>
 
Note, uses "canon" colors from [[Template:TextColor]], not HTML color names for those redefined there. Use non-redefined names or other systems (e.g. HEX codes) to override this.
 
=== Examples ===
<pre>{{ColoredLink|Ship Histories|gold}}</pre>
{|style="background:#666" width=200
|align=center|{{ColoredLink|Ship Histories|gold}}
|}
 
<pre>{{ColoredLink|DS17 Non-Playing Character Listing|#B57EDC|DS17 NPCs}}</pre>
{|style="background:#666" width=200
|align=center|{{ColoredLink|DS17 Non-Playing Character Listing|#B57EDC|DS17 NPCs}}
|}
 
<pre>{{ColoredLink|link=USS Artemis-A/Science|text=Artemis Science Department|color=blue}}</pre>
{|style="background:#666" width=200
|align=center|{{ColoredLink|link=USS Artemis-A/Science|text=Artemis Science Department|color=blue}}
|}
 
[[Category:Templates]]
</noinclude>
1,770

edits