Template:Color-link: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
(are you joking??)
m ({{color-link|#505|{{{1}}}|{{{pipe|}}}}})
 
(24 intermediate revisions by 8 users not shown)
Line 1: Line 1:
[[{{{1}}}|<span style="color:{{{2}}};">{{{1}}}</span>]]<noinclude>
<includeonly>[[:{{{2}}}|<span style="color:{{{1|unset}}};background:{{{bg|none}}}">{{#if:{{{3|}}}|{{{3}}}|{{{2}}}}}</span>]]</includeonly><noinclude>
== Usage ==
<code><nowiki>{{color-link|green|Main Page}}</nowiki></code>
:{{color-link|green|Main Page}}


{{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|hexademical]], 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).
<code><nowiki>{{color-link|#C00|Main Page|Fake link}}</nowiki></code>
:{{color-link|#C00|Main Page|Fake link}}


Actual code: <tt><nowiki>[[{{{1}}}|<span style="color:{{{2}}}">{{{1}}}</span>]]</nowiki></tt>
<code><nowiki>{{color-link|#C00|bg=orange|Main Page|Fake link}}</nowiki></code>
:{{color-link|#C00|bg=orange|Main Page|Fake link}}


Also see {{tem|color-link-piped}}.</noinclude>
== About ==
Changes the color of a link from the default. The first parameter is the color and the second is the page name. An optional third parameter can be used to change the text of the link, and an optional <code>bg</code> parameter can be used to set a background 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.
 
== See also ==
*[[Template:Color]]
*[[Template:Color-link-external]]
 
[[Category:Formatting templates]]</noinclude>

Latest revision as of 20:06, June 6, 2024

Usage

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

Main Page

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

Fake link

{{color-link|#C00|bg=orange|Main Page|Fake link}}

Fake link

About

Changes the color of a link from the default. The first parameter is the color and the second is the page name. An optional third parameter can be used to change the text of the link, and an optional bg parameter can be used to set a background color.

You can use a color name or a hexadecimal, but if it's hex be sure to include a # before the alphanumeric sequence.

See also