Template:Color link: Difference between revisions
From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
m (Porplemontage moved page Template:Color-link to Template:Color link) |
m (Text replacement - "([Cc])olor-link" to "$1olor link") |
||
Line 1: | Line 1: | ||
<includeonly>[[:{{{2}}}|<span style="color:{{{1|unset}}};background:{{{bg|none}}}">{{#if:{{{3|}}}|{{{3}}}|{{{2}}}}}</span>]]</includeonly><noinclude> | <includeonly>[[:{{{2}}}|<span style="color:{{{1|unset}}};background:{{{bg|none}}}">{{#if:{{{3|}}}|{{{3}}}|{{{2}}}}}</span>]]</includeonly><noinclude> | ||
== Usage == | == Usage == | ||
<code><nowiki>{{color | <code><nowiki>{{color link|green|Main Page}}</nowiki></code> | ||
:{{color | :{{color link|green|Main Page}} | ||
<code><nowiki>{{color | <code><nowiki>{{color link|#C00|Main Page|Fake link}}</nowiki></code> | ||
:{{color | :{{color link|#C00|Main Page|Fake link}} | ||
<code><nowiki>{{color | <code><nowiki>{{color link|#C00|bg=orange|Main Page|Fake link}}</nowiki></code> | ||
:{{color | :{{color link|#C00|bg=orange|Main Page|Fake link}} | ||
== About == | == About == |
Latest revision as of 17:27, December 31, 2024
Usage
{{color link|green|Main Page}}
{{color link|#C00|Main Page|Fake link}}
{{color link|#C00|bg=orange|Main Page|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.