Page MenuHomePhabricator

Create a special argument for GENDER to use the userspace page owner
Closed, ResolvedPublic

Description

A special argument #pageuser is needed for GENDER to detect the owner of the page when it is included in User and User Talk spaces, also usable in interface messages. It should work as follows:

{{gender:#pageuser|male form|female form}}

Related to the attempt of getting the username of a user page 'owner' from the
full page name, see bug 32703:

  1. {{BASEPAGENAME}} fails to return the username "Example" when viewing a 2nd

level or deeper subpage, like "User:Example/Archive/2010".

to resolve system messages.


Version: 1.21.x
Severity: enhancement

Details

Reference
bz47961

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 22 2014, 1:29 AM
bzimport set Reference to bz47961.
bzimport added a subscriber: Unknown Object (MLST).

Maybe the new variable ROOTPAGENAME can be used here (bug 6747).

(In reply to comment #1)

Maybe the new variable ROOTPAGENAME can be used here (bug 6747).

Of course. I didn't notice about it.
Just before closing as resolved: Will ROOTPAGENAME work in NS tabs system massages like [[MediaWiki:Nstab-user]]? see bug 45938.

Seb35 claimed this task.
Seb35 subscribed.

This issue is solved with the magic word {{ROOTPAGENAME}}:

{{GENDER:{{ROOTPAGENAME}}|male user|female user|user}}

The other issue about [[MediaWiki:Nstab-user]] has its dedicated task T47938, so no need to keep this task open.

This issue is solved with the magic word {{ROOTPAGENAME}}:

Hm, but that's an extension isn't it?

No ROOTPAGENAME is in core.

Better so then.