MediaWiki:PreMarkup.js: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 3:
$('pre').each(function(){
 
var $this = $(this)
var OriginalText = $this.html();
 
$this.parent(".mw-collapsible-content").show(); /// temporary show collapsible content to read its location....
 
var $this = $(this)
function returnBoxedText(match, p1) { return '<box>' + p1 + '</box>'; }
 
var OriginalText = $this.html();
 
 
$this.parent(".mw-collapsible-content").show(); /// temporary show collapsible content to read its location....
$this.parent().parent(".mw-collapsible-content").show(); /// temporary show collapsible content to read its location....
 
function returnBoxedText(match, p1) { return '<box>' + p1 + '</box>'; }
function returnSpanPosStr(match, p1) {
var MarginTop = 0;
Line 15 ⟶ 20:
switch(p1) {
 
case "":
MarginTop = 5;