455
edits
The PCB wiki has now been archived and is read-only. |
TheOctopus (talk | contribs) |
TheOctopus (talk | contribs) |
||
Line 1: | Line 1: | ||
( function ( $ ) { | ( function ( $ ) { | ||
'use strict'; | 'use strict'; | ||
delete $.wikiLoveOptions.types.kitten; | delete $.wikiLoveOptions.types.kitten; | ||
delete $.wikiLoveOptions.types.barnstar; | delete $.wikiLoveOptions.types.barnstar; | ||
delete $.wikiLoveOptions.types.food; | delete $.wikiLoveOptions.types.food; | ||
$.extend(true, $.wikiLoveOptions, { | $.extend(true, $.wikiLoveOptions, { | ||
types: { | |||
'barnstar': { | |||
name: mw.msg( 'wikilove-type-barnstars' ), // name of the type (appears in the types menu) | name: mw.msg( 'wikilove-type-barnstars' ), // name of the type (appears in the types menu) | ||
select: mw.msg( 'wikilove-barnstar-select' ), // subtype select label | select: mw.msg( 'wikilove-barnstar-select' ), // subtype select label | ||
Line 21: | Line 21: | ||
descr: "Diamonds are one of the rarest and most recognizable materials in Minecraft." // description | descr: "Diamonds are one of the rarest and most recognizable materials in Minecraft." // description | ||
image: 'Diamond.png' // image for the award | 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 | icon: 'http://hydra-media.cursecdn.com/minecraft.gamepedia.com/c/c5/Grass.png' // icon for left-side menu | ||
} | |||
} | |||
}); | }); | ||
var bst = $.wikiLoveOptions.types.barnstar.subtypes, | var bst = $.wikiLoveOptions.types.barnstar.subtypes, | ||
del_bst = function (what) { | del_bst = function (what) { | ||
if (bst[what]) { | if (bst[what]) { | ||
Line 35: | Line 35: | ||
}; | }; | ||
del_bst('writers'); | del_bst('writers'); | ||
del_bst('editors'); | del_bst('editors'); | ||
del_bst('copyeditor'); | del_bst('copyeditor'); | ||
del_bst('citation'); | del_bst('citation'); | ||
}( jQuery ) ); | }( jQuery ) ); | ||
//</nowiki> | //</nowiki> |