帮助:小工具/用户标识:修订间差异

添加222字节 、​ 2023年7月23日 (星期日)
无编辑摘要
(// Edit via Wikiplus)
无编辑摘要
 
(未显示1个用户的2个中间版本)
第1行: 第1行:
<!--{{Gadgets|type=site}}-->
<!--{{Gadgets|type=site}}-->
'''用户标识工具'''是一个站点小工具,可在[[Special:参数设置#mw-input-wpgadget-usergroup|]]启用,可以在监视列表、最近更改等地方中标示用户的用户组<!--和封禁状态-->。
'''用户标识工具'''是一个站点小工具,可在[[Special:参数设置#mw-input-wpgadget-usergroup|参数设置]]启用,可以在监视列表、最近更改等地方中标示用户的用户组<!--和封禁状态-->。


== 用户组标识 ==
== 用户组标识 ==
第25行: 第25行:
===自定义===
===自定义===
;若想更改默认设置,请在[[特殊:MyPage/common.css|您的common.css中]]加入以下代码。
;若想更改默认设置,请在[[特殊:MyPage/common.css|您的common.css中]]加入以下代码。
<pre>.markrights-用户组名称::after{content:"显示文字"!important;color:颜色}</pre>
<syntaxhighlight lang="css">.markrights-用户组名称::after{
    content:"显示文字"!important;
    color:颜色
}</syntaxhighlight>
;将行政员的显示文字改为「行」
;将行政员的显示文字改为「行」
<pre>.markrights-bureaucrat::after{content:"行"!important}</pre>
<syntaxhighlight lang="css">.markrights-bureaucrat::after{
    content:"行"!important
}</syntaxhighlight>
;将管理员的颜色改为橙色
;将管理员的颜色改为橙色
<pre>.markrights-sysop::after{color:orange}</pre>
<syntaxhighlight lang="css">.markrights-sysop::after{
    color:orange
}</syntaxhighlight>
;隐藏对机器人的标注
;隐藏对机器人的标注
<pre>.markrights-bot::after{display:none!important}</pre>
<syntaxhighlight lang="css">.markrights-bot::after{
    display:none!important
}</syntaxhighlight>
;隐藏多个用户组标识之间的2px
;隐藏多个用户组标识之间的2px
<pre>sup[class^=markrights-]+sup[class^=markrights-]{margin-left:0!important}</pre>
<syntaxhighlight lang="css">sup[class^=markrights-]+sup[class^=markrights-]{
    margin-left:0!important
}</syntaxhighlight>
<!--
<!--
==封禁标识==
==封禁标识==
鼠标悬停于[封+]上方时可显示封禁详情。
鼠标悬停于[封+]上方时可显示封禁详情。
-->
-->
巡查员
1,548

个编辑