Template:Color-link: Difference between revisions

From Mariopedia, a wiki on Mario, Yoshi, Wario, Donkey Kong, Super Smash Bros., and more!
Jump to navigationJump to search
Content added Content deleted
(Created page with "<span class="color-link">[[{{{1}}}|<span style="color:{{{2}}}; a:hover:{{{2}}};">{{{1}}}</span>]]</span><noinclude> {{color-link|Main Page|#C00}}. Though you shouldn't falsel...")
 
(credit to https://www.mariowiki.com/Template:Color-link)
 
Line 1: Line 1:
<span class="color-link">[[{{{1}}}|<span style="color:{{{2}}}; a:hover:{{{2}}};">{{{1}}}</span>]]</span><noinclude>
<includeonly>[[{{{1}}}|<span style="color:{{{2|unset}}}">{{{3|{{{1}}}}}}</span>]]</includeonly><noinclude>
== Usage ==
<code><nowiki>{{color-link|Main Page|green}}</nowiki></code>
:{{color-link|Main Page|green}}


<code><nowiki>{{color-link|Main Page|#C00|Fake link}}</nowiki></code>
{{color-link|Main Page|#C00}}. Though you shouldn't falsely use the template as just shown, its implication is shown: change the link color of a link from the default blue. You can use a color name or a [[Help:Color codes|hexadecimal]], but be sure to add a <tt>#</tt> before the six alphanumeric sequence (or three if there's three pairs, such as C00, used in the example).
:{{color-link|Main Page|#C00|Fake link}}


== About ==
Actual code: <tt><nowiki>[[{{{1}}}|<span style="color:{{{2}}};">{{{1}}}</span>]]</nowiki></tt>
Changes the color of a link from the default blue. The first parameter is the page name and the second is the color. You can use a color name or a hexadecimal, but if it's hex be sure to include a <code>#</code> before the alphanumeric sequence. The third parameter is optional and can be used to change the text of the link.


The original template is from the [[mariowiki:Template:Color-link|Super Mario Wiki]].
Also see {{tem|color-link-piped}}.

[[Category: Internal Link Templates|{{PAGENAME}}]]</noinclude>
== See also ==
*[[Template:Color]]
*[[Template:Color-link-external]]

[[Category:Formatting templates]]</noinclude>

Latest revision as of 12:47, April 27, 2022

Usage

{{color-link|Main Page|green}}

Main Page

{{color-link|Main Page|#C00|Fake link}}

Fake link

About

Changes the color of a link from the default blue. The first parameter is the page name and the second is the color. You can use a color name or a hexadecimal, but if it's hex be sure to include a # before the alphanumeric sequence. The third parameter is optional and can be used to change the text of the link.

The original template is from the Super Mario Wiki.

See also