Community Wishlist Survey 2022/Admins and patrollers/Allow using templated reasons in global blocks

From Meta, a Wikimedia project coordination wiki

Allow using templated reasons in global blocks.

  • Problem: Global block reasons can't use any templates (since the block reason is rendered on the wiki the blocked user is visiting, and all wikis have their own separate template namespace). This means that the user (who might not be the intended target of the block) has to click to some Meta page to see detailed information about the global block that is preventing them from editing. For example, it would be useful to display templates like en:Template:Blocked p2p proxy directly on the blocked error message.
  • Proposed solution: Implement a way to display pre-defined block reason templates to users by rendering block reasons on meta. Alternatively instead of allowing use of arbitrary meta templates, implement a way to for stewards to configure longer block reasons on a Meta JSON page and selecting one of those on the interface (proposed by Legoktm on the Phabricator ticket).
  • Who would benefit: Users affected by global blocks (since the instructions they see will be clearer), stewards
  • More comments: The GlobalBlocking extension contains incomplete code to render block reasons on a central wiki (such as Meta), see phab:T243863 for details.
  • Phabricator tickets: phab:T243863
  • Proposer: Majavah (talk!) 13:44, 16 January 2022 (UTC)[reply]


  • Kind of edges on global templates as a request, which skimming the Phab kind of looks like some similar concerns there, or at least which would exist if global templates were somewhere in implementation.

    That aside, templated block reasons aren't well supported in some ways even today; en:MediaWiki:Ipbreason-dropdown until recently had lint errors (and then someone moved it to plain text content model, which has its obvious downside of not tracking a link to the template in the page). --Izno (talk) 00:21, 17 January 2022 (UTC)[reply]

    I think the global block reasons can be logged in Meta, and a Meta page contains all the reasons, as stewards block user in a Meta-based interface. Thingofme (talk) 00:57, 18 January 2022 (UTC)[reply]