MediaWiki:Gadget-cs.js: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
No edit summary
No edit summary
Line 1: Line 1:
mw.hook( 'wikipage.content' ).add( function ( $content ) {
mw.hook( 'wikipage.content' ).add( function ( $content ) {
$('.cs-js').each(function(){ /* 'this' means the element */
$('.cs-js').each(function(){ /* 'this' means the element */
var preview = Morebits.wiki.preview(this);
var preview = new Morebits.wiki.preview(this);
preview.beginRender("{{cite source|Rose (TV story)}}");
preview.beginRender("{{cite source|Rose (TV story)}}");
});
});
} );
} );

Revision as of 21:31, 7 April 2024

mw.hook( 'wikipage.content' ).add( function ( $content ) {
	$('.cs-js').each(function(){ /* 'this' means the element */
		var preview = new Morebits.wiki.preview(this);
		preview.beginRender("{{cite source|Rose (TV story)}}");
	});
} );