Last modified: 2014-11-04 22:50:44 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 25380 - Magic word to indicate user "blocked" status
Magic word to indicate user "blocked" status
Status: PATCH_TO_REVIEW
Product: MediaWiki
Classification: Unclassified
User blocking (Other open bugs)
unspecified
All All
: Normal enhancement with 3 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on: 32819
Blocks:
  Show dependency treegraph
 
Reported: 2010-10-01 06:39 UTC by DMacks
Modified: 2014-11-04 22:50 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description DMacks 2010-10-01 06:39:04 UTC
Feature request, arising from an idea I floated at en.wp [[Wikipedia talk:User pages#Block notices and BLANKING]] that led to [[Wikipedia:Village pump (technical)#Interface block notice while viewing user talk page?]]. The idea hinged on a template being able to determine whether a certain user was currently blocked, which is reportedly not possible to do at this time. Possible syntax would be {{#ISBLOCKED:USERNAME}}, which would return true or false indicating if User:USERNAME was currently blocked or not.

For the originally floated idea, that would mean WP admins could set something like:

{{#if:{{#ISBLOCKED:{{PAGENAME}}}}|'''Note:''' This user is presently blocked.}}

in a user talkpage to avoid constant edit-warring (or endless debate about guideline about) removing/readding active block messages. An additional use might be in [[Template:Lu]], where this same logic could be used to display an icon or other status indicator. This would be useful in sock-puppet and related abuse discussions to reveal at a glance the status of the account(s) being discussed.
Comment 1 Étienne Beaulé 2012-01-27 13:53:39 UTC
(In reply to comment #0)
> Feature request, arising from an idea I floated at en.wp [[Wikipedia talk:User
> pages#Block notices and BLANKING]] that led to [[Wikipedia:Village pump
> (technical)#Interface block notice while viewing user talk page?]]. The idea
> hinged on a template being able to determine whether a certain user was
> currently blocked, which is reportedly not possible to do at this time.
> Possible syntax would be {{#ISBLOCKED:USERNAME}}, which would return true or
> false indicating if User:USERNAME was currently blocked or not.
> 
> For the originally floated idea, that would mean WP admins could set something
> like:
> 
> {{#if:{{#ISBLOCKED:{{PAGENAME}}}}|'''Note:''' This user is presently blocked.}}
> 
> in a user talkpage to avoid constant edit-warring (or endless debate about
> guideline about) removing/readding active block messages. An additional use
> might be in [[Template:Lu]], where this same logic could be used to display an
> icon or other status indicator. This would be useful in sock-puppet and related
> abuse discussions to reveal at a glance the status of the account(s) being
> discussed.

It should be {{ISBLOCKED:USERNAME}}, not with "#".
Comment 2 Daniel Friesen 2012-01-27 13:58:45 UTC
{{#ifblocked:USERNAME|a|b}} sounds like the proper way to do it. This would go well with the proposed {{ROOTPAGENAME}} in another bug.
Comment 3 Chad H. 2012-01-27 14:03:02 UTC
This sounds like an awful idea, suggest WONTFIX.
Comment 4 Daniel Friesen 2012-01-27 14:59:09 UTC
(In reply to comment #3)
> This sounds like an awful idea, suggest WONTFIX.

Why's that?
Comment 5 Chad H. 2012-01-27 15:00:22 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > This sounds like an awful idea, suggest WONTFIX.
> 
> Why's that?
>

We'll have to vary pcache expiry on block expiry times?
Comment 6 Gerrit Notification Bot 2014-05-16 23:34:25 UTC
Change 133661 had a related patch set uploaded by Withoutaname:
Add new ParserFunction "USERBLOCKED"

https://gerrit.wikimedia.org/r/133661

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links