MediaWiki:WikiLove.js

From PCBWiki
Revision as of 21:45, 18 December 2015 by TheOctopus (talk | contribs)
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
( function ( $ ) {
	'use strict';

	delete $.wikiLoveOptions.types.kitten;
	delete $.wikiLoveOptions.types.barnstar;
	delete $.wikiLoveOptions.types.food;



	$.extend(true, $.wikiLoveOptions, {
		types: {
			'barnstar': {
		      name: mw.msg( 'wikilove-type-barnstars' ), // name of the type (appears in the types menu)
		      select: mw.msg( 'wikilove-barnstar-select' ), // subtype select label
		      subtypes: { // some different subtypes
		        // note that when not using subtypes you should use these subtype options
		        // for the top-level type
		        'diamond': {
		          fields: [ 'message' ], // fields to ask for in form
		          option: "Diamond", // option listed in the select list
		          descr: "Diamonds are one of the rarest and most recognizable materials in Minecraft." // description
		          image: 'Diamond.png' // image for the award
		      }
		            		icon: 'http://hydra-media.cursecdn.com/minecraft.gamepedia.com/c/c5/Grass.png' // icon for left-side menu

 			},
  		}
	}	
});


}( jQuery ) );
//</nowiki>