https://bugzilla.wikimedia.org/show_bug.cgi?id=38750
Web browser: ---
Bug #: 38750
Summary: New magic word / parser function to switch based on if
talk page is from anon user
Product: MediaWiki
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: Parser
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
Mobile Platform: ---
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
}}
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l