KurwaAntics (talk | contribs) (Created page with "{{Infobox JavaScript | Description = Strike out blocked usernames | Image file = | Scope = Personal and/or Site wide | Author = Russian Wikipedia, ported by [[User:OneTwoThre...") Tag: sourceedit |
Kofirs2634 (talk | contribs) mNo edit summary |
||
(13 intermediate revisions by 9 users not shown) | |||
Line 1: | Line 1: | ||
+ | <noinclude>{{LangSelect}}</noinclude><includeonly>{{Languages}} |
||
{{Infobox JavaScript |
{{Infobox JavaScript |
||
⚫ | |||
| Description = Strike out blocked usernames |
| Description = Strike out blocked usernames |
||
⚫ | |||
⚫ | |||
− | | Scope |
+ | | Scope = ps |
⚫ | |||
⚫ | |||
+ | | Code = [[MediaWiki:MarkBlocked.js|MarkBlocked.js]] |
||
− | | Updated = 27 March 2016 |
||
⚫ | |||
⚫ | |||
+ | | Type = user management |
||
− | | Skins = |
||
⚫ | |||
}} |
}} |
||
+ | '''MarkBlocked''' strikes out the usernames of any users currently blocked on the wiki. Based on a script originally by [[wikipedia:ru:User:Kalan|Kalan]], [[wikipedia:ru:User:Alex Smotrov|Alex Smotrov]], and a number of other users of Russian Wikipedia ([[wikipedia:ru:MediaWiki:Gadget-markblocked.js|original source]]). |
||
− | '''MarkBlocked''' strikes out usernames that have been blocked. It is modified in order to be compatible with [[AjaxRC]]. |
||
+ | == Usage == |
||
− | {{Script Install |
+ | {{Script Install |
− | |Source=<syntaxhighlight lang="javascript">importScriptPage('MarkBlocked.js', 'dev');</syntaxhighlight> |
||
+ | | codepage = MarkBlocked.js |
||
}} |
}} |
||
− | == |
+ | == Settings == |
+ | ; <code>window.mbTempStyle</code> |
||
− | You can use window.mbTempStyle and window.mbIndefStyle to customize the username link styles. window.mbTempStyle is for usernames that are blocked temporarily and window.mbIndefStyle are for those who are blocked indefinitely. |
||
+ | : Style used for usernames that are blocked temporarily. |
||
+ | ; <code>window.mbIndefStyle</code> |
||
+ | : Style used for usernames that are blocked indefinitely. |
||
+ | ; <code>window.mbTooltip</code> |
||
+ | : Change the tooltip shown on links to a blocked user. <code>$1</code> is the length of the block, <code>$2</code> is the username of the blocker, <code>$3</code> is the reason for the block, and <code>$4</code> is the length of time since the user was blocked. |
||
+ | ; <code>window.mbTipBox</code> |
||
+ | : If true, show a small box with tooltip before links to blocked users rather than adding the tooltip to the blocked user link directly. |
||
+ | ; <code>window.mbTipBoxStyle</code> |
||
+ | : Style used for the box added by the <code>window.mbTipBox</code> setting above. |
||
+ | ; <code>window.mbLoadingOpacity</code> |
||
+ | : Sets the opacity of all user links while the script checks with the server which users are blocked (this indicates the script is loading). |
||
+ | ; <code>window.mbNoAutoStart</code> |
||
+ | : If true, don't mark blocked users by default. Instead, add a link to the 'My Tools' menu to mark blocked users. |
||
− | These are the default settings: |
+ | These are the default settings, which are loaded automatically when no custom settings are defined: |
<syntaxhighlight lang="javascript"> |
<syntaxhighlight lang="javascript"> |
||
window.mbTempStyle = 'opacity: 0.7; text-decoration: line-through'; |
window.mbTempStyle = 'opacity: 0.7; text-decoration: line-through'; |
||
window.mbIndefStyle = 'opacity: 0.4; font-style: italic; text-decoration: line-through'; |
window.mbIndefStyle = 'opacity: 0.4; font-style: italic; text-decoration: line-through'; |
||
+ | window.mbTooltip = 'blocked ($1) by $2: $3 ($4 ago)'; |
||
+ | window.mbTipBox = false; |
||
+ | window.mbTipBoxStyle = 'font-size:85%; background:#FFFFF0; border:1px solid #FEA; padding:0 0.3em; color:#AAA'; |
||
+ | window.mbLoadingOpacity = 0.85; |
||
+ | window.mbNoAutoStart = false; |
||
</syntaxhighlight> |
</syntaxhighlight> |
||
+ | </includeonly> |
Revision as of 12:51, 26 January 2020
MarkBlocked strikes out the usernames of any users currently blocked on the wiki. Based on a script originally by Kalan, Alex Smotrov, and a number of other users of Russian Wikipedia (original source).
Usage
Settings
window.mbTempStyle
- Style used for usernames that are blocked temporarily.
window.mbIndefStyle
- Style used for usernames that are blocked indefinitely.
window.mbTooltip
- Change the tooltip shown on links to a blocked user.
$1
is the length of the block,$2
is the username of the blocker,$3
is the reason for the block, and$4
is the length of time since the user was blocked. window.mbTipBox
- If true, show a small box with tooltip before links to blocked users rather than adding the tooltip to the blocked user link directly.
window.mbTipBoxStyle
- Style used for the box added by the
window.mbTipBox
setting above. window.mbLoadingOpacity
- Sets the opacity of all user links while the script checks with the server which users are blocked (this indicates the script is loading).
window.mbNoAutoStart
- If true, don't mark blocked users by default. Instead, add a link to the 'My Tools' menu to mark blocked users.
These are the default settings, which are loaded automatically when no custom settings are defined:
window.mbTempStyle = 'opacity: 0.7; text-decoration: line-through';
window.mbIndefStyle = 'opacity: 0.4; font-style: italic; text-decoration: line-through';
window.mbTooltip = 'blocked ($1) by $2: $3 ($4 ago)';
window.mbTipBox = false;
window.mbTipBoxStyle = 'font-size:85%; background:#FFFFF0; border:1px solid #FEA; padding:0 0.3em; color:#AAA';
window.mbLoadingOpacity = 0.85;
window.mbNoAutoStart = false;
Text above can be found here (edit)