Last modified: 2012-09-16 07:22:06 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 T40750, the corresponding Phabricator task for complete and up-to-date bug report information.
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)
unspecified
All All
: Unprioritized enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


Attachments

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.

or

{{#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.


Navigation
Links