MediaWiki:Minerva.js: Difference between revisions

From Ekatra Wiki
Jump to navigation Jump to search
(Created page with "$( function(){ if( mw.config.get('wgPageName').split( '/' ).length > 1 ){ var tempPageName = mw.config.get('wgPageName').split( '/' )[0]; var tempLink ='< <a href="https://wiki.ekatrafoundation.org/wiki/' + tempPageName + '">' + tempPageName.replaceAll("_", " ") + '</a>'; $(".page-heading").after( $( '<p>').css( 'font-size', '17px').html( tempLink ) ); } })")
Tags: Mobile edit Mobile web edit
 
No edit summary
Tags: Mobile edit Mobile web edit
 
Line 3: Line 3:
var tempPageName = mw.config.get('wgPageName').split( '/' )[0];
var tempPageName = mw.config.get('wgPageName').split( '/' )[0];
var tempLink ='&#60;  <a href="https://wiki.ekatrafoundation.org/wiki/' +  tempPageName + '">' + tempPageName.replaceAll("_", " ") + '</a>';
var tempLink ='&#60;  <a href="https://wiki.ekatrafoundation.org/wiki/' +  tempPageName + '">' + tempPageName.replaceAll("_", " ") + '</a>';
$(".page-heading").after(  $( '<p>').css( 'font-size', '17px').html( tempLink ) );
$(".page-heading").after(  $( '<p>').css( 'font-size', '17px').css("margin-bottom", "8px").html( tempLink ) );
}
}
})
})

Latest revision as of 17:43, 12 October 2023

$( function(){
	if( mw.config.get('wgPageName').split( '/' ).length > 1 ){
		var tempPageName = mw.config.get('wgPageName').split( '/' )[0];
		var tempLink ='&#60;  <a href="https://wiki.ekatrafoundation.org/wiki/' +  tempPageName + '">' + tempPageName.replaceAll("_", " ") + '</a>';
		$(".page-heading").after(  $( '<p>').css( 'font-size', '17px').css("margin-bottom", "8px").html( tempLink ) );
	}
})