Jump to content

User:Ocaasi/WikiLoveinstallscript.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Ocaasi (talk | contribs) at 01:57, 3 December 2012 (test). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
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.badges= {
  name: 'Badges', // name of the type (appears in the types menu)
 
  subtypes: {

  'Teahouse profile badge': {
      fields: [ 'header', 'message' ], // fields to ask for in form
      option: 'Teahouse Profile Creator', // option listed in the select list
      descr: 'Created Teahouse profile', // description
      header: 'Congrats... You created your Teahouse profile!', // header that appears at the top of the talk page post (optional)
      text:   '$1 {{Wikipedia:BADGE/profilecreator}}<br><nowiki>~~~~</nowiki>' , // custom text
    },

  'Teahouse good question badge': {
      fields: [ 'header', 'message' ], // fields to ask for in form
      option: 'Teahouse Great Question', // option listed in the select list
      descr: 'For asking a great Teahouse question', // description
      header: 'Congrats... You asked an awesome question in the Teahouse!', // header that appears at the top of the talk page post (optional)
      text:   '$1 {{Wikipedia:BADGE/greatquestion}}', // custom text
    },

  'Teahouse good answer badge': {
      fields: [ 'header', 'message' ], // fields to ask for in form
      option: 'Teahouse Great Answer', // option listed in the select list
      descr: 'For giving a great Teahouse answer', // description
      header: 'Congrats... You gave an awesome answer in the Teahouse!', // header that appears at the top of the talk page post (optional)
      text:   '$1 {{Wikipedia:BADGE/greatanswer}}', // custom text
    },

  'Teahouse maître d badge': {
      fields: [ 'header', 'message' ], // fields to ask for in form
      option: 'Teahouse Maître d', // option listed in the select list
      descr: 'For hosting as  maître d in the Teahouse', // description
      header: 'Congrats... You were an awesome Teahouse maître d!', // header that appears at the top of the talk page post (optional)
      text:   '$1 {{Wikipedia:BADGE/maitrd}}', // custom text
    },

  'Teahouse civility leader': {
      fields: [ 'header', 'message' ], // fields to ask for in form
      option: 'Teahouse Cup and Saucer', // option listed in the select list
      descr: 'For helping keep Teahouse civil, warm, and welcoming for everyone', // description
      header: 'Congrats... You helped keep Teahouse an awesome, welcoming, safe, and helpful place!', // header that appears at the top of the talk page post (optional)
      text:   '$1 {{Wikipedia:BADGE/cupandsaucer}}', // custom text
    },

 },

  icon: '/media/wikipedia/commons/2/26/Rank_insignia_of_generale_di_divisione_con_funzioni_superiori_of_the_Alpini.svg'
 };
 
} );
 
}