https://bugzilla.wikimedia.org/show_bug.cgi?id=32703

       Web browser: ---
             Bug #: 32703
           Summary: Create {{SPACEUSER}} to improve detection of page
                    owner in User spaces, also usable in interface
                    messages
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Unprioritized
         Component: Internationalization
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified


It's a known issue that both {{PAGENAME}} and {{BASEPAGENAME}} fail to return
the correct username of the 'owner' of a page when included in a 2nd level
*sub*page of User: or User talk: spaces. And also it is known that the right
username can be retrieved by means of {{#titleparts:{{PAGENAME}}|1}}.

Up to now, this only concerned to messages like → Hi {{BASEPAGENAME}}!, what in 
"User:Example/Archive/2010" looks → Hi Example/Archive! But now we have a
{{gender:}} function to be used not only in user pages and discussions, but in
MediaWiki interface messages.

As stated for instance in [[translatewiki:MediaWiki:Nstab-user/qqq]]
documentation, "it is possible to use {{GENDER:{{BASEPAGENAME}}|male
form|female form}} if needed". And it is what currently puts the Galician
translation → [[translatewiki:MediaWiki:Nstab-user/gl]]. But BASEPAGENAME is
only a partial approximation to the function needed, provided that it fails to
return the user name in some pages.

You can see a live example of this issue at the user space of the female
galician user [[:gl:Usuaria:Elvire]] and compare the user tab in her both
subpages [[:gl:Usuaria:Elvire/Foo]] and [[:gl:Usuaria:Elvire/Foo/Bar]]. The
former shows 'Páxina de usuaria' and the later states 'Páxina de usuario'.

In the other hand, {{#titleparts:}} is an 'extension' parser function, and just
as user Raymond at translatewiki.net confirmed a few hours ago, we cannot rely
on the existence of any extension on other projects. →
[[translatewiki:Thread:Support/About_including_ParserFunctions_in_MediaWiki_messages]]

Just as Niklas Laxström suggested to me in bug 30569, comment 11, I've created
a simple {{SPACEUSER}} template at es:wikipedia, what is satisfactorily
functioning in 15000+ user pages. But it is a local template based on
#titleparts, not a MediaWiki function, so it can't be used in translatewiki
general messages. I still think that a real {{SPACEUSER}} MediaWiki function
should be created to fix this issue. Please excuse me for my poor English. P.S.
Formerly, I've called this functionality as PAGEOWNER.

-- 
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

Reply via email to