Thread:Project:Support desk/Customizing Extension:WikiLove/reply (16)

How do I add an additional type?

this is what I have:

//  $.wikiLoveOptions.defaultBackgroundColor = '#151515'; $.wikiLoveOptions.defaultBorderColor = '#FF0000';

// Medals

$.wikiloveOptions.types.medals = { name: 'Medals', select: 'Select a medal', subtypes: 'example' };

$.wikiLoveOptions.types.medals.subtypes.example = { fields: [ 'header', 'message' ], // fields to ask for in form option: 'Example Medal', // option listed in the select list descr: 'This is an example medal. Glory to the Emperor!', header: 'You have been awarded a medal, glorious adept of the Emperor', // header that appears at the top of the talk page post (optional) image: 'sternkreuz.png', // image for the item imageSize: '120px' // size to display image (optional) };

//

I'm trying to add a section for medals.