Last modified: 2012-09-16 07:22:06 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 38750 - New magic word / parser function to switch based on if talk page is from anon user
New magic word / parser function to switch based on if talk page is from anon...
Status: RESOLVED DUPLICATE of bug 15352
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
All All
: Unprioritized enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2012-07-27 09:27 UTC by Sumurai8 (NL)
Modified: 2012-09-16 07:22 UTC (History)
1 user (show)

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


Description Sumurai8 (NL) 2012-07-27 09:27:07 UTC
On the Dutch Wikipedia we have a fair share of templates that display different things, based on the fact if the template is placed on the talk page of an ip or an registered user. This is currently done via {{#ifeq: {{uc:{{PAGENAME}} }} | {{lc:{{PAGENAME}} }} | foo | bar }}. This however only works IPv4.

With the introduction of IPv6 this trick doesn't work. If we would try to catch every IPv6 with a template, it would get rather complex. [[MediaWiki:Anontalkpagetext]] is printed under all talk pages of anonymous users, so somewhere inside the software we know it's an anonymous user. I want to utilize that knowledge inside the wikitext.

I would like something like:
{{ANONYMOUSUSER}} or {{ANONYMOUSUSER:pagename}} which would either be 1/true or 0/false. Someone else can probably think of a better word for such a magic word.


{{#ifanontalkpage| true | false }} or {{#ifanontalkpage:pagename | true | false }}
Comment 1 db [inactive,noenotif] 2012-07-29 12:31:01 UTC
related: bug 15352
Comment 2 db [inactive,noenotif] 2012-09-16 07:22:06 UTC
Mark as dupe, because it makes no sense to provide a parser function only for anontalkpages, because than people want the same for the anonuserpage. Having a #ifip parser function makes more sense.

*** This bug has been marked as a duplicate of bug 15352 ***

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