Last modified: 2011-09-19 14:12:48 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 T25937, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 23937 - Parser function detecting anonymous users
Parser function detecting anonymous users
Status: NEW
Product: Wikimedia
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-06-13 01:50 UTC by Cenarium
Modified: 2011-09-19 14:12 UTC (History)
1 user (show)

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


Attachments

Description Cenarium 2010-06-13 01:50:57 UTC
Could we have for the English Wikipedia a parser function which detects if the user is registered or not, e.g. {{#ifanon: then | else }}. This would be used in some mediawiki messages. Such parser functions exist, see Extension UserFunctions, but I think they need to be adapted due to caching - which I think is possible since we have {{REVISIONUSER}}.
Comment 1 Max Semenik 2010-06-13 07:21:19 UTC
Unlikely to happen due to e.g. http://en.wikipedia.org/w/index.php?diff=177429486
Comment 2 Gurch 2011-09-19 14:12:48 UTC
(In reply to comment #1)
> Unlikely to happen due to e.g.
> http://en.wikipedia.org/w/index.php?diff=177429486

That was a different issue -- parsing of template syntax on a message displayed on every page view.

Implementing this would mean caching separate page renders for anonymous and logged-in users. But that basically happens already, and is also done based on certain user preferences, so it's nothing new.

I think this would be very useful in certain help pages. Instead of constantly having to say "if you have an account, then do this, else you have to do this", it could just say the right thing. Only problem with that is, half the things you have to be autoconfirmed to do and there would have to be another one to detect that. (The real problem there, of course, is unnecessarily restricting things in the first place.)

It would be OK in system messages provided they were only editing-related messages, or other ones that are only seen on a tiny fraction of page views. Using it to spew stuff into messages on every page would of course be bad (for reasons quite apart from server load).

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


Navigation
Links