View source for MediaWiki:Common.js
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
importScript('MediaWiki:Overlays.js');
importScript('MediaWiki:Insertions.js');
importScript('MediaWiki:Lineation.js');
importScript('MediaWiki:AutoLoad.js');
importScript('MediaWiki:Compare.js');
/* Any JavaScript here will be loaded for all users on every page load. */
function saveContentAsSubpage(currentPage, contents) {
console.log("[SaveDiv] Starting saveDivContentAsSubpage");
console.log("[SaveDiv] Provided currentPage:", currentPage);
var api = new mw.Api();
var targetPage;
if (typeof currentPage !== "string" || !currentPage) {
targetPage = mw.config.get("wgPageName").replace(/ /g, "_");
}else{
targetPage = currentPage.replace(/ /g, "_");
040
1:0
Return to MediaWiki:Common.js.