Template:User-color: Difference between revisions
From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
m (Text replacement - "class="{{{class|}}}"" to "{{#if:{{{class|}}}|class="{{{class}}}"}}") |
m (Text replacement - "{{{darkcolor" to "{{{dark") |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><span {{#if:{{{class|}}}|class="{{{class}}}"}} style="color:{{{1|unset}}};background:{{{bg| | <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 == | == Usage == | ||
<code><nowiki>{{user-color|green|Porplemontage}}</nowiki></code> | <code><nowiki>{{user-color|green|Porplemontage}}</nowiki></code> |
Latest revision as of 16:18, 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.