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 copyPageContents(sourcePage, chapter) {
var api = new mw.Api();
console.log("[CopyPage] Starting with source:", sourcePage);
console.log("[CopyPage] Replacing '200' with chapter:", chapter);
// Replace "200" with chapter in the sourcePage string
var targetPage = sourcePage.replace("200", chapter);
console.log("[CopyPage] Target page:", targetPage);
// Step 1: Get source page content
040
1:0
Return to MediaWiki:Common.js.