Template:UserTag: Difference between revisions
From Xenharmonic Reference
mNo edit summary |
mNo edit summary |
||
| (25 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly><div style=" | ||
<div style="display:flex; align-items:flex-start; gap:0.5em;"> | display: flex; | ||
[[User:{{{2}}}|<span style=" | align-items: flex-start; | ||
display:inline-block; | gap: 0.5em; | ||
text-align:center; | ">[[User:{{{2}}}|<span style=" | ||
/* be careful with line breaks because any one of them could end up displaying in the parser */ | |||
padding:0.2em; | --s: color-mix(in srgb, #{{{3}}} 50%, #000 50%); /* use color-mix instead of rgba to avoid visible overlapping */ | ||
min-width:1.5em; | display: inline-block; | ||
height:1.5em; | text-align: center; | ||
background:#{{{3}}} | padding: 0.2em; | ||
min-width: 1.5em; | |||
height: 1.5em; | |||
"> | color: #fff; | ||
{{{1}}} | box-shadow: | ||
</span>]] | inset 1px 1px 0 rgba(255,255,255,0.5), | ||
<div style="color:# | inset -1px -1px 0 rgba(0,0,0,0.5); | ||
{{{4}}} | text-shadow: | ||
</div> | -1px -1px 2px var(--s), | ||
</div> | 1px -1px 2px var(--s), | ||
</includeonly> | -1px 1px 2px var(--s), | ||
<noinclude> | 1px 1px 2px var(--s); | ||
background: #{{{3}}}; | |||
">{{{1}}}</span>]]<div style=" | |||
color: color-mix(in srgb, #{{{3}}} 33%, currentColor 67%); | |||
">{{{4}}}</div></div></includeonly><noinclude> | |||
UserTag should be used to indicate any user writing in first-person. | UserTag should be used to indicate any user writing in first-person. | ||
Latest revision as of 02:37, 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.}}
- User tag, ideally one or two letters
- Username for the link to the user page
- Hex color without #
- Text block assigned to the tag
