Gebroeker:לערי ריינהארט/common.js: Versjèl tösje versies
Uiterlijk
Verwijderde inhoud Toegevoegde inhoud
K Maintenance: Replacing legacy global variable (phab:T72470) |
K Maintenance: Replacing addPortletLink() with mw.util.addPortletLink() (mw:ResourceLoader/Migration_guide_(users)#addPortletLink) |
||
Tekslien 2: | Tekslien 2: | ||
mw.loader.load("//www.wikidata.org/w/index.php?title=User:Yair rand/WikidataInfo.js&action=raw&ctype=text/javascript"); |
mw.loader.load("//www.wikidata.org/w/index.php?title=User:Yair rand/WikidataInfo.js&action=raw&ctype=text/javascript"); |
||
$(function() { addPortletLink('p-cactions', mw.config.get('wgServer') + mw.config.get('wgScript') + '?title=' + encodeURIComponent(mw.config.get('wgPageName')) + '&action=purge', 'purge', 'ca-purge', 'Purge the internal cache for this page'); }); |
$(function() { mw.util.addPortletLink('p-cactions', mw.config.get('wgServer') + mw.config.get('wgScript') + '?title=' + encodeURIComponent(mw.config.get('wgPageName')) + '&action=purge', 'purge', 'ca-purge', 'Purge the internal cache for this page'); }); |
Hujige versie per 29 nov 2021 15:01
// [[d:User:Yair rand/WikidataInfo.js]]
mw.loader.load("//www.wikidata.org/w/index.php?title=User:Yair rand/WikidataInfo.js&action=raw&ctype=text/javascript");
$(function() { mw.util.addPortletLink('p-cactions', mw.config.get('wgServer') + mw.config.get('wgScript') + '?title=' + encodeURIComponent(mw.config.get('wgPageName')) + '&action=purge', 'purge', 'ca-purge', 'Purge the internal cache for this page'); });