Last modified: 2011-07-05 22:10:43 UTC
Created attachment 8744 [details] Example Currently, if a user calls mw.util.wikiGetlink()[1] on [[Example]] it will be returned "http://en.wikipedia.org/wiki/undefined" which is not very useful. Considering that it is common[2] to have constructs like mw.util.wikiGetlink( mw.config.get( 'wgPageName' ) ) + '?foo=bar&baz=meh' I propose the addition of wgPageName as a default value for the "str" parameter of this function, so that users coudl then use mw.util.wikiGetlink() on [[Example]] to get "http://en.wikipedia.org/wiki/Example" [1] http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/resources/mediawiki/mediawiki.util.js?view=markup#l134 [2] See e.g.: [[MediaWiki:Gadget-purgetab.js]], [[pt:MediaWiki:Common.js]], [[s:MediaWiki:Common.js]], etc...
Makes perfect sense. Solution implemented in r91500.