MediaWiki:ProofreadPage.js

Faan Wikipedia

Beaachte: Maage di cache faan dan browser leesag, wan dü a feranrangen sä wel.

  • Firefox / Safari: Hual Shift bi't aktualisiarin, of trak Strg an F5 of Strg an R (⌘an R üüb en Mac)
  • Google Chrome: Trak Strg an Shift an R (⌘an Shift an R üüb en Mac)
  • Internet Explorer/Edge: Hual Strg bi't aktualisiarin, of trak Strg an F5
  • Opera: Extras - Internetspuren löschen - Individuelle Auswahl - Den kompletten Cache löschen
 /*******************************************************************************************/
 /* <pre><nowiki>  MediaWiki:PageviewCounter.js                                             */
 /*-----------------------------------------------------------------------------------------*/
 /* ProofreadPage Extension for Images, Djvu and Pdf                                        */
 /* Author : ThomasV, Xarax                                                                 */
 /*******************************************************************************************/

function moveheaders(){
 
	var pq = document.getElementById("pagequality_message");
	if(!pq) pq = document.getElementById("pagequality");
	var pr_bstand = document.getElementById("pr_bstand");
	if(pq && pr_bstand) pr_bstand.appendChild(pq.removeChild(pq.firstChild));

	var i = document.getElementById("pr_container");
	if (!i) { return; }

	//i.childNodes[0].width = self.proofreadPageWidth/2;
 
	var a = document.getElementById("content");
	var c = document.getElementById("catlinks");
	if (c) var b = c.parentNode;
	if (b && a) a.appendChild(b.removeChild(c));

    if(!proofreadPageIsEdit) {
	var s = document.getElementById("bstand");
	if (s) {
		var t = document.getElementById("textBoxTable");
		t.parentNode.insertBefore(s, t);
	}
 
	s = document.getElementById("zitierhilfe");
	if (s) {
		t = document.getElementById("textBoxTable");
		t.parentNode.insertBefore(s, t.nextSibling);
	}
    }

    if (!wgCurRevisionId && mw.config.get('wgAction') == "view" && self.ifEmptyEdit) {
        t = document.getElementById("ca-edit");
        if (t) window.location.href = t.firstChild.href;
    }
}
 
$(moveheaders);



/*indexlink*/
function IndexLink() {
	if(self.proofreadpage_debug_check_load) alert("ok");
	var l = document.getElementById("textdaten_index"); if(!l) return;
	var q = document.getElementById("pr_index")
	if( q ) {
		l.innerHTML = q.innerHTML;
		href = l.firstChild; if(!href) return;
		href.innerHTML = "<span>Link tu't indekssidj</span>";
	}
}
$(IndexLink);
 


self.ws_messages = { 
 'optlist':'Muude för't uunwisin',
 'hide_page_numbers':'Sidjentaalen fersteeg',
 'show_page_numbers':'Sidjentaalen uunwise',
 'layout':'Layout',
}


/*scripts imported from wikisource.org*/
mw.loader.load('https://wikisource.org/w/index.php?title=MediaWiki:Base.js&action=raw&ctype=text/javascript');
/*importScriptURI('https://wikisource.org/w/index.php?title=MediaWiki:OCR.js&action=raw&ctype=text/javascript');*/
mw.loader.load('https://wikisource.org/w/index.php?title=MediaWiki:PageNumbers.js&action=raw&ctype=text/javascript');
mw.loader.load('https://wikisource.org/w/index.php?title=MediaWiki:InterWikiTransclusion.js&action=raw&ctype=text/javascript');

self.proofreadpage_numbers_inline = true;


/*******************************************************************************************/
/* </nowiki></pre><noinclude>[[Kategorie:Wikisource:Javascript]]</noinclude>               */
/*******************************************************************************************/