Last modified: 2014-11-04 22:50:44 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.
(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 "#".
{{#ifblocked:USERNAME|a|b}} sounds like the proper way to do it. This would go well with the proposed {{ROOTPAGENAME}} in another bug.
This sounds like an awful idea, suggest WONTFIX.
(In reply to comment #3) > This sounds like an awful idea, suggest WONTFIX. Why's that?
(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?
Change 133661 had a related patch set uploaded by Withoutaname: Add new ParserFunction "USERBLOCKED" https://gerrit.wikimedia.org/r/133661