Template:User-color: Difference between revisions
From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
m (Text replacement - "<span style="color:{{{1|unset}}}" to "<span class="{{{class|}}}" style="color:{{{1|unset}}}") |
m (Text replacement - "class="{{{class|}}}"" to "{{#if:{{{class|}}}|class="{{{class}}}"}}") |
||
Line 1: | Line 1: | ||
<includeonly><span class="{{{class | <includeonly><span {{#if:{{{class|}}}|class="{{{class}}}"}} style="color:{{{1|unset}}};background:{{{bg|none}}}">[[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 == | == Usage == | ||
<code><nowiki>{{user-color|green|Porplemontage}}</nowiki></code> | <code><nowiki>{{user-color|green|Porplemontage}}</nowiki></code> |
Revision as of 15:46, March 2, 2025
Usage
{{user-color|green|Porplemontage}}
{{user-color|green|Porplemontage|Steve}}
{{user-color|green|bg=orange|Porplemontage|Steve}}
{{user-color|green|bg=orange|Porplemontage|Steve|contribs=1}}
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.