It would be useful to be able to detect if the current page in in a given category, with a parser function, e.g. {{#ifincategory: Foo| value if true | value if false }} .
This could be used to refine template appearance, for sorting purposes (especially in maintenance), it would also allow to enable per-category editnotices, more efficiently than using editintro via common.js (doesn't work for sections, can't be hidden, etc).
Version: unspecified
Severity: enhancement
See Also: T50175: Scribunto/Lua should have a built-in method for retrieving categories used on a page