User:Cuckooman4/statustabs.js: Difference between revisions

Content deleted Content added
Cuckooman4 (talk | contribs)
Fixed
m Maintenance: Replacing addPortletLink() with mw.util.addPortletLink() (mw:ResourceLoader/Migration_guide_(users)#addPortletLink)
 
(3 intermediate revisions by 2 users not shown)
Line 13:
var i = 0
while(i < statustabs.length) {
mw.util.addPortletLink('p-cactions', 'http://enmw.wikipediaconfig.org/w/indexget('wgServer') + mw.phpconfig.get('wgScript') + "?title=SpecialUser:Mypage" + wgUserName + "/'" + statuspageurl +' "&action=edit&autostatus='" + encodeURIComponent(statustabs[i]), statustabs[i], 'ca-status' + i)
i++
}