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 class="userTagShadow" style="
display: inline-block;
display: inline-block;
text-align: center;
text-align: center;
Line 13: Line 13:
height: 1.5em;
height: 1.5em;
background: #{{{3}}};
background: #{{{3}}};
@media (prefers-color-scheme: light) {
color: currentColor;
color: #000;
border: 1px solid currentColor;
border: 1px solid #000;
text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
}
@media (prefers-color-scheme: dark) {
color: #fff;
border: 1px solid #fff;
text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}
">
">
{{{1}}}
{{{1}}}
</span>]]
</span>]]
<div style="
<div style="
@media (prefers-color-scheme: light) {
color: color-mix(in srgb, #{{{3}}} 30%, currentColor 70%);
color: color-mix(in srgb, #{{{3}}} 30%, #000);
}
@media (prefers-color-scheme: dark) {
color: color-mix(in srgb, #{{{3}}} 30%, #fff);
}
">
">
{{{4}}}
{{{4}}}

Revision as of 00:59, 10 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