Last modified: 2013-02-07 19:13:20 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T29004, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 27004 - Create {{#ifpageincat}} ParserFunction for category membership
Create {{#ifpageincat}} ParserFunction for category membership
Status: RESOLVED DUPLICATE of bug 18596
Product: MediaWiki extensions
Classification: Unclassified
ParserFunctions (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-01-28 01:24 UTC by Douglas Gardner
Modified: 2013-02-07 19:13 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Douglas Gardner 2011-01-28 01:24:10 UTC
It would be useful to have a parser function that works this out; for example, an archive box for an RfA could have different colours depending on whether it was passed or failed; a tasks template could hide itself if another, more comprehensive template superseded it, and so on.

Example:
{{#ifpageincat: Main Page | Category:Wikipedia | value if true | value if false}}
Comment 1 db [inactive,noenotif] 2011-01-28 19:23:55 UTC
See also bug 18596
Comment 2 Happy-melon 2011-01-30 16:31:28 UTC

*** This bug has been marked as a duplicate of bug 18596 ***
Comment 3 Nemo 2013-01-25 14:48:10 UTC
*** Bug 44331 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links