Jump to content

User:Quadell/common.js/wikilove.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
var thisPageNamespace = mw.config.get( 'wgNamespaceNumber' );
if ( thisPageNamespace == 2 || thisPageNamespace == 3 ) {

mw.loader.using( 'ext.wikiLove.defaultOptions', function() {

$.wikiLoveOptions.types.goofy= {
  name: 'Goofy', // name of the type (appears in the types menu)
  select: 'Select goofy image:', // subtype select label
  text: '{| style="background-color: $5; border: 1px solid $6;"\n\
|style="vertical-align: middle; padding: 5px;" | [[$3|$4]]\n\
|style="vertical-align: middle; padding: 3px;" | $1 ~~' + '~~\n\
|}', // custom text
  subtypes: {
    'kitten': {
      fields: [ 'header', 'message' ], // fields to ask for in form
      option: 'Kitten', // option listed in the select list
      descr: 'Cute kitten', // description
      header: 'Meow!', // header that appears at the top of the talk page post (optional)
      image: 'Quatre mains - Titran-s Kasper (by).jpg', // image for the award
      imageSize: '135px' // size to display image
    },
    'monk': {
      fields: [ 'header', 'message' ], // fields to ask for in form
      option: 'Monk', // option listed in the select list
      descr: 'Monk working in the scriptorium', // description
      header: 'A message for you', // header that appears at the top of the talk page post (optional)
      image: 'Scriptorium-monk-at-work.jpg', // image for the award
      imageSize: '135px' // size to display image
    },
    'makewikilove': {
      fields: [ 'header', 'message' ], // fields to ask for in form
      option: 'Make WikiLove', // option listed in the select list
      descr: 'Make WikiLove, not war!', // description
      header: 'Wikipe-tan wants \'\'\'you\'\'\' to...', // header that appears at the top of the talk page post (optional)
      image: 'Uncle Wikipe-tan-MakeLoveNotWar.png', // image for the award
      imageSize: '135px' // size to display image
    },
    'Naughty': {
      fields: [ 'header', 'message' ], // fields to ask for in form
      option: 'Naughty spanking', // option listed in the select list
      descr: 'Naughty spanking', // description
      header: 'You\'re in trouble', // header that appears at the top of the talk page post (optional)
      image: 'Camille2.jpeg', // image for the award
      imageSize: '135px' // size to display image
    },
    'clown': {
      fields: [ 'header', 'message' ], // fields to ask for in form
      option: 'Clown in surgery', // option listed in the select list
      descr: 'Clown in surgery', // description
      header: 'Surprise!', // header that appears at the top of the talk page post (optional)
      image: 'Clown in surgery.jpg', // image for the award
      imageSize: '135px' // size to display image
    },
    'balloons': {
      fields: [ 'header', 'message' ], // fields to ask for in form
      option: 'Balloons', // option listed in the select list
      descr: 'Happy balloons', // description
      header: 'A message of WikiLove', // header that appears at the top of the talk page post (optional)
      image: 'Happy balloons.jpg', // image for the award
      imageSize: '135px' // size to display image
    },
    'flowers': {
      fields: [ 'header', 'message' ], // fields to ask for in form
      option: 'Flowers', // option listed in the select list
      descr: 'A bouquet of flowers', // description
      header: 'A message of WikiLove', // header that appears at the top of the talk page post (optional)
      image: 'Biedermeierstrauß aus Seidenblumen und präparierten Rosen.JPG', // image for the award
      imageSize: '135px' // size to display image
    },
    'giraffe': {
      fields: [ 'header', 'message' ], // fields to ask for in form
      option: 'Giraffe', // option listed in the select list
      descr: 'Giraffe', // description
      header: 'A message of WikiLove', // header that appears at the top of the talk page post (optional)
      image: 'Giraffa camelopardalis reticulata.jpg', // image for the award
      imageSize: '135px' // size to display image
    },
    'nightmare': {
      fields: [ 'header', 'message' ], // fields to ask for in form
      option: 'Nightmare', // option listed in the select list
      descr: 'Nightmare', // description
      header: 'Nightmare', // header that appears at the top of the talk page post (optional)
      image: 'Nachtmahr (Abildgaard).jpg', // image for the award
      imageSize: '135px' // size to display image
    },
    'hillbilly': {
      fields: [ 'header', 'message' ], // fields to ask for in form
      option: 'Hillbilly', // option listed in the select list
      descr: 'WikiLove Hillbilly', // description
      header: 'A message for you', // header that appears at the top of the talk page post (optional)
      image: 'Redneck hillbilly.jpg', // image for the award
      imageSize: '135px' // size to display image
    }
  },
  icon: 'http://upload.wikimedia.org/wikipedia/commons/7/77/Comedyicon.svg'
 };

$.wikiLoveOptions.types.featured= {
  name: 'FAs and GAs', // name of the type (appears in the types menu)
  select: 'Select type of honor:', // subtype select label
  text: '{| style="background-color: $5; border: 1px solid $6;"\n\
|rowspan="2" style="vertical-align: middle; padding: 5px;" | [[$3|$4]]\n\
|style="font-size: x-large; padding: 3px 3px 0 3px; height: 1.5em;" | \'\'\'$2\'\'\'\n\
|-\n\
|style="vertical-align: middle; padding: 3px;" | $1 ~~' + '~~\n\
|}', // custom text
  subtypes: {
    'FA': {
      fields: [ 'image', 'message' ], // fields to ask for in form
      option: 'FA promotion', // option listed in the select list
      descr: 'An article has achieved Featured status.', // description
      header: 'Featured Article promotion', // header that appears at the top of the talk page post (optional)
      title: 'Congratulations!',
      image: 'Cscr-featured.svg', // image for the award
      imageSize: '105px', // size to display image
      message: 'Thanks for all the work you did in making [[xxx]] a Featured Article! Please accept this barnstar. Your work is much appreciated.'
    },
    'GA': {
      fields: [ 'image', 'message' ], // fields to ask for in form
      option: 'GA promotion', // option listed in the select list
      descr: 'An article has been deemed "Good".', // description
      header: 'Good Article promotion', // header that appears at the top of the talk page post (optional)
      title: 'Congratulations!',
      image: 'Symbol support vote.svg', // image for the award
      imageSize: '135px', // size to display image
      message: 'Thanks for all the work you did in making [[xxx]] a certified "Good Article"! Your work is much appreciated.\n\nIn the spirit of celebration, you may wish to review one of the [[Wikipedia:Good article nominations|Good Article nominees]] that someone else nominated, as there is currently a backlog, and any help is appreciated. All the best,'
    },
    'GArev': {
      fields: [ 'image', 'message' ], // fields to ask for in form
      option: 'GA promotion for reviewers', // option listed in the select list
      descr: 'An article has been deemed "Good".', // description
      header: 'Good Article promotion', // header that appears at the top of the talk page post (optional)
      title: 'Congratulations!',
      image: 'Symbol support vote.svg', // image for the award
      imageSize: '135px', // size to display image
      message: 'Thanks for all the work you did in making [[xxx]] a certified "Good Article"! Your work is much appreciated.\n\nThanks also for your reviews. [[Wikipedia:Featured article candidates|Featured article candidate]]s and [[Wikipedia:Good article nominations|Good Article nominees]] always need more reviewers! All the best,'
    },
    'GAmult': {
      fields: [ 'image', 'message' ], // fields to ask for in form
      option: 'GA promotion - multiple', // option listed in the select list
      descr: 'Another article has been deemed "Good".', // description
      header: 'Good Article promotion', // header that appears at the top of the talk page post (optional)
      title: 'You did it again!',
      image: 'Symbol support vote.svg', // image for the award
      imageSize: '135px', // size to display image
      message: 'Another round of congratulations are in order for all the work you did in making [[xxx]] a certified "Good Article"! Thank you; your work is much appreciated. All the best,'
    },
  },
  icon: 'http://upload.wikimedia.org/wikipedia/commons/8/80/-_Flourisch_01_-.svg'
 };

} );

}