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}}
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}}
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.