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:Lineation.js');
importScript('MediaWiki:AutoLoad.js');
importScript('MediaWiki:Compare.js');
importScript('MediaWiki:json.js');
var debug = false;
/* Any JavaScript here will be loaded for all users on every page load. */
function currentChapter(){
var pageName = mw.config.get("wgPageName"); // e.g., Psalms/Psalm_18/alignment/1-20
var chapter = "";
var verseRange = "";
// Extract the chapter number
var chapterMatch = pageName.match(/Psalm_(\d+)/);
if (chapterMatch) {
return chapterMatch[1];
000
1:0
Return to MediaWiki:Common.js.