Template:ColoredLink: Difference between revisions
Jump to navigation
Jump to search
(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 | <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> |
Revision as of 22:00, 8 January 2024
Creates a colored link. The following formats are equal:
{{ColoredLink|Article's Original Name|Color|Optional Name for the Link}}
{{ColoredLink|link=Article's Original Name|color=Color|text=Optional Name for the Link}}
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
{{ColoredLink|Ship Histories|gold}}
Ship Histories |
{{ColoredLink|DS17 Non-Playing Character Listing|#B57EDC|DS17 NPCs}}
DS17 NPCs |
{{ColoredLink|link=USS Artemis-A/Science|text=Artemis Science Department|color=blue}}
Artemis Science Department |