Template:Color link: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
(username removed)
No edit summary
m (Text replacement - "([Cc])olor-link" to "$1olor link")
 
(20 intermediate revisions by 6 users not shown)
Line 1: Line 1:
I STILL WANNA KILL MYSELF T-T
<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}}


<pre>__________███_________
<code><nowiki>{{color link|#C00|Main Page|Fake link}}</nowiki></code>
_________█___█________
:{{color link|#C00|Main Page|Fake link}}
_________█___█________
 
_________█***█________
<code><nowiki>{{color link|#C00|bg=orange|Main Page|Fake link}}</nowiki></code>
_________█___█________
:{{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 <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>
_____██____________█
_______█_________ █
________██___ ___██
________██___ ___██
________██___ ___██
________██_____ _██
________██___ ___██
________██___ ___██
________██___ ___██
________██___ ___██
________██___ ___██
________██___ ___██
________██___ ___██
______####_______#####
_____#____#_____#_____#
____#_______#_#________#
___#_________#__________#
___#____________________#
____#__________________#
______#_______________#
_________#__________#
_________#_______#
_________#_______#
_________#_______#
_________#_______#
_________#_______#
_________#_______#
_________#_______#
_________#_______#
_________#_______#
_________#_______#
_________#_______#
_________#_______#
_________#_______#
_________#_______#
_________#_______#
_________#_______#
_________#_______#
_________#____#_##
_________#_##_____#
_________#_________#
________#__________#
________#_________#
_________#____#__#
</pre>

Latest revision as of 17:27, December 31, 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