Page MenuHomePhabricator

New parser function to see if user is member of group {{#ifuseringroup:usergroup...}}
Open, LowPublicFeature

Description

Create a new parser function to indicate if a user belongs to a usergroup.

Based on existing functions beginning {{#if...}}, syntax would be expected to work something like this:

{{#ifuseringroup:usergroup|username|output if true|output if false}}

Event Timeline

Crochet.david raised the priority of this task from to Needs Triage.
Crochet.david updated the task description. (Show Details)
Crochet.david added a project: ParserFunctions.
Crochet.david subscribed.

I proposed exposing this information from Lua in https://gerrit.wikimedia.org/r/#/c/188503/ and Tim didn't like it because changes to user groups don't have a practical way to invalidate caches of pages that use the information.

Aklapper changed the subtype of this task from "Task" to "Feature Request".Oct 3 2023, 3:01 PM
Bugreporter2 renamed this task from New parser function {{#useris|user|group}} to New parser function .Sep 22 2025, 3:39 AM
Bugreporter2 updated the task description. (Show Details)
Bugreporter2 updated the task description. (Show Details)
Bugreporter2 updated the task description. (Show Details)
Bugreporter2 updated the task description. (Show Details)
Bugreporter2 renamed this task from New parser function to New parser function to see if user is member of group {{#useringroup:usergroup|username}}.Sep 22 2025, 4:28 AM
Bugreporter2 renamed this task from New parser function to see if user is member of group {{#useringroup:usergroup|username}} to New parser function to see if user is member of group {{#ifuseringroup:usergroup...}}.Sep 23 2025, 2:43 PM
Bugreporter2 updated the task description. (Show Details)