Last modified: 2012-10-23 17:21:34 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 T41611, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 39611 - unclear title casing behaviour of generatePageEventName()
unclear title casing behaviour of generatePageEventName()
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
E3 Experiments (Other open bugs)
master
All All
: Unprioritized minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-08-24 05:55 UTC by spage
Modified: 2012-10-23 17:21 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description spage 2012-08-24 05:55:17 UTC
I don't understand the intent of the case-munging code in experiments/communityClicks.js.

Given the page https://www.mediawiki.org/wiki/Requests_for_comment/Account_creation

mw.config.get( 'wgTitle' ) 
  -> "Requests for comment/Account creation"

toTitleCase(  mw.config.get( 'wgTitle' ) )
  -> "Requests For Comment/account Creation" , which won't work as a wiki link.

generatePageEventName( 'click' )
  -> "requestsForComment/accountCreationClick"


Could mw.config.get( 'wgRelevantPageName' ) as used in experiments/trackEdits.js replace this code ?  That produces
  -> "Requests_for_comment/Account_creation"

I'd love to write tests for it if I knew what it was trying to do ;-)
Comment 1 Ori Livneh 2012-10-23 17:21:34 UTC
Code obsoleted.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links