https://bugzilla.wikimedia.org/show_bug.cgi?id=30569
Web browser: ---
Bug #: 30569
Summary: Auto detect username when {{gender:}} is used in User
or User talk spaces
Product: MediaWiki
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: Internationalization
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
{{gender:}} is a very useful function to make templates like userboxes and
user-related messages be more expressive, especially in some non-English
languages. In Spanish for instance, the expression "This user is a doctor" is
gender dependant, so you *must* say "[Este usuario|Esta usuaria] es un doctor".
Those templates are almost always transcluded into User or User talk pages, so
automatic username detection (if gender parameter is left blank) would be a
nice facilitation. Note that {{PAGENAME}} is not a good username detector
because it doesn't work correctly in subpages and archived discussions, so a
more complex construction like {{#titleparts:{{PAGENAME}}|1}} must be used, but
it would be easier omit it instead:
{{gender:|Este usuario|Esta usuaria}} es un doctor.
Alternatively, a {{USERNAME}} variable would be a more general solution for
username detection when used into user spaces. It could also be used in phrases
like:
Hi {{USERNAME}}! instead of Hi {{PAGENAME}}!
--
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