Template:Color link: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
No edit summary
mNo edit summary
Line 1: Line 1:
<includeonly>[[:{{{1}}}|<span style="color:{{{2|unset}}};background:{{{bg|none}}}">{{{3|{{{1}}}}}}</span>]]</includeonly><noinclude>
<includeonly>[[:{{{2}}}|<span style="color:{{{1|unset}}};background:{{{bg|none}}}">{{{3|{{{2}}}}}}</span>]]</includeonly><noinclude>
== Usage ==
== Usage ==
<code><nowiki>{{color-link|Main Page|green}}</nowiki></code>
<code><nowiki>{{color-link|green|Main Page}}</nowiki></code>
:{{color-link|Main Page|green}}
:{{color-link|green|Main Page}}


<code><nowiki>{{color-link|Main Page|#C00|Fake link}}</nowiki></code>
<code><nowiki>{{color-link|#C00|Main Page|Fake link}}</nowiki></code>
:{{color-link|Main Page|#C00|Fake link}}
:{{color-link|#C00|Main Page|Fake link}}


<code><nowiki>{{color-link|Main Page|#C00|bg=orange|Fake link}}</nowiki></code>
<code><nowiki>{{color-link|#C00|bg=orange|Main Page|Fake link}}</nowiki></code>
:{{color-link|Main Page|#C00|bg=orange|Fake link}}
:{{color-link|#C00|bg=orange|Main Page|Fake link}}


== About ==
== About ==
Changes the color of a link from the default blue. The first parameter is the page name and the second is the color. An optional background color can be set with <code>bg</code>. 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.
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 ==
== See also ==

Revision as of 10:51, June 6, 2024

Usage

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

Template:Color-link

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

Template:Color-link

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

Template:Color-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