Template:UserTag: Difference between revisions

From Xenharmonic Reference
No edit summary
No edit summary
Line 5: Line 5:
gap: 0.5em;
gap: 0.5em;
">
">
[[User:{{{2}}}|<span style="
[[User:{{{2}}}|<span style="
display: inline-block;
display: inline-block;
text-align: center;
text-align: center;
text-decoration: underline;
text-decoration: underline;
padding: 0.2em;
padding: 0.2em;
min-width: 1.5em;
min-width: 1.5em;
height: 1.5em;
height: 1.5em;
background: #{{{3}}};
background: #{{{3}}};
color: #eef;
@media (prefers-color-scheme: light) {
border: 1px solid #eef;
color: #000;
">
border: 1px solid #000;
{{{1}}}
text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
</span>]]
}
<div style="
@media (prefers-color-scheme: dark) {
color: color-mix(in srgb, #{{{3}}} 30%, #eef 70%);
color: #fff;
">
border: 1px solid #fff;
{{{4}}}
text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
</div>
}
">
{{{1}}}
</span>]]
<div style="
@media (prefers-color-scheme: light) {
color: color-mix(in srgb, #{{{3}}} 30%, #000);
}
@media (prefers-color-scheme: dark) {
color: color-mix(in srgb, #{{{3}}} 30%, #fff);
}
">
{{{4}}}
</div>
</div>
</div>
</includeonly>
</includeonly>

Revision as of 23:36, 9 June 2026


UserTag should be used to indicate any user writing in first-person.

{{UserTag|g|GeorgeLopez|eeff66|I'm from TV.
One million edo.}}
  1. User tag, ideally one or two letters
  2. Username for the link to the user page
  3. Hex color without #
  4. Text block assigned to the tag