https://bugzilla.wikimedia.org/show_bug.cgi?id=34743
Web browser: ---
Bug #: 34743
Summary: mw.util.wikiGetlink should accept URL parameters in
its second parameter
Product: MediaWiki
Version: 1.19
Platform: All
URL: https://www.mediawiki.org/wiki/Thread:Talk:ResourceLoa
der/JavaScript_Deprecations/importScript(),_importStyl
esheet()
OS/Version: All
Status: NEW
Keywords: javascript
Severity: normal
Priority: Unprioritized
Component: Javascript
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
From
[[mw:Thread:Talk:ResourceLoader/JavaScript Deprecations/importScript(),
importStylesheet()]]
----
I would love it if mw.util.wikiGetlink() would accept an additional, optional
parameter of type "object" that would add parameters: so if i want to get a
page with "?action=edit", i would use mw.util.wikiGetlink(pageName, {action:
'edit'}); etc. if the first parameter is an object, this means i want the
current page (just like mw.util.wikiGetlink() with no parameters), but still
append the parameters.
this would be in the spirit of most or all of jQuery, calls, and very much in
synch with the way to do ajax in jquery.
----
--
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