Template:User-color: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
m (Robot: Changing Category:Internal Link Templates to Category:Internal link templates)
m (Text replacement - "{{{darkcolor" to "{{{dark")
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[User:{{{1}}}|<span style="color:{{{2}}}">{{{1}}}</span>]] [[User talk:{{{1}}}|<span style="color:{{{2}}}">(<small>Talk</small>)</span>]]<noinclude>[[Category:Internal link templates|{{PAGENAME}}]]</noinclude>
<includeonly><span {{#if:{{{class|}}}|class="{{{class}}}"}} style="color:{{{1|unset}}};{{#if:{{{dark|}}}|--darkcolor:{{{dark}}};}}{{#if:{{{bg|}}}|background:{{{bg}}};}}{{#if:{{{darkbg|}}}|--darkbg:{{{darkbg}}};}}">[[User:{{{2}}}|<span {{#if:{{{class|}}}|class="{{{class}}}"}} style="color:{{{1|unset}}}">{{{3|{{{2}}}}}}</span>]] ([[User talk:{{{2}}}|<span {{#if:{{{class|}}}|class="{{{class}}}"}} style="color:{{{1|unset}}}">talk</span>]]{{#if:{{{contribs|}}}|<nowiki/> {{!}} [[Special:Contributions/{{{2}}}|<span {{#if:{{{class|}}}|class="{{{class}}}"}} style="color:{{{1|unset}}}">contribs</span>]]}})</span></includeonly><noinclude>
== Usage ==
<code><nowiki>{{user-color|green|Porplemontage}}</nowiki></code>
:{{user-color|green|Porplemontage}}
 
<code><nowiki>{{user-color|green|Porplemontage|Steve}}</nowiki></code>
:{{user-color|green|Porplemontage|Steve}}
 
<code><nowiki>{{user-color|green|bg=orange|Porplemontage|Steve}}</nowiki></code>
:{{user-color|green|bg=orange|Porplemontage|Steve}}
 
<code><nowiki>{{user-color|green|bg=orange|Porplemontage|Steve|contribs=1}}</nowiki></code>
:{{user-color|green|bg=orange|Porplemontage|Steve|contribs=1}}
 
== About ==
Creates a {{tem|user}} link with colors other than the default. The first parameter is the color and the second is the username. An optional third parameter can be used to change the text of the link, an optional <code>bg</code> parameter can be used to set a background color, and an optional <code>contribs</code> parameter can be set to add a contributions link.
 
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:User]]
 
[[Category:Project templates]]</noinclude>

Latest revision as of 16:18, March 2, 2025

Usage

{{user-color|green|Porplemontage}}

Porplemontage (talk)

{{user-color|green|Porplemontage|Steve}}

Steve (talk)

{{user-color|green|bg=orange|Porplemontage|Steve}}

Steve (talk)

{{user-color|green|bg=orange|Porplemontage|Steve|contribs=1}}

Steve (talk | contribs)

About

Creates a {{user}} link with colors other than the default. The first parameter is the color and the second is the username. An optional third parameter can be used to change the text of the link, an optional bg parameter can be used to set a background color, and an optional contribs parameter can be set to add a contributions link.

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