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 |
||
(14 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>[[{{{ | <includeonly>[[:{{{2}}}|<span {{#if:{{{class|}}}|class="{{{class}}}"}} style="color:{{{1|unset}}};{{#if:{{{dark|}}}|--darkcolor:{{{dark}}};}}{{#if:{{{bg|}}}|background:{{{bg}}};}}{{#if:{{{darkbg|}}}|--darkbg:{{{darkbg}}};}}">{{#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 link|#C00|bg=orange|Main Page|Fake link}}</nowiki></code> | |||
:{{color link|#C00|bg=orange|Main Page|Fake link}} | |||
== About == | == About == | ||
Changes the color of a link from the default | Changes the color of a link from the default. 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. | ||
=== Parameters === | |||
;Required | |||
*<code>1</code> - The link color. | |||
*<code>2</code> - The page name. | |||
;Optional | |||
*<code>3</code> - The link text, if different. | |||
*<code>bg</code> - The background color. | |||
*<code>dark</code> - The link color in dark mode, if different. | |||
*<code>darkbg</code> - The background color in dark mode, if different. | |||
*<code>class</code> - One or more classes to apply to the <tt>span</tt> element. | |||
== See also == | == See also == | ||
*[[Template:Color]] | *[[Template:Color]] | ||
*[[Template:Color | *[[Template:Color link external]] | ||
[[Category: | [[Category:Formatting templates]]</noinclude> |
Latest revision as of 09:27, March 12, 2025
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. You can use a color name or a hexadecimal, but if it's hex be sure to include a #
before the alphanumeric sequence.
Parameters
- Required
1
- The link color.2
- The page name.
- Optional
3
- The link text, if different.bg
- The background color.dark
- The link color in dark mode, if different.darkbg
- The background color in dark mode, if different.class
- One or more classes to apply to the span element.