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: # | @media (prefers-color-scheme: light) { | ||
border: 1px solid # | 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%, # | 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.}}
- User tag, ideally one or two letters
- Username for the link to the user page
- Hex color without #
- Text block assigned to the tag
