User:Ocaasi/WikiLoveinstallscript.js
Appearance
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
![]() | This user script seems to have a documentation page at User:Ocaasi/WikiLoveinstallscript. |
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: {
'first edit badge': {
fields: [ 'header', 'message' ], // fields to ask for in form
option: '1st edit', // option listed in the select list
descr: '1st edit', // description
header: 'Congrats... You achieved a Badge!', // header that appears at the top of the talk page post (optional)
text: '$1 {{Wikipedia:BADGE/mockup}}', // custom text
},
'100th edit badge': {
fields: [ 'header', 'message' ], // fields to ask for in form
option: '100th edit', // option listed in the select list
descr: '100th edit', // description
header: 'Congrats... You achieved a Badge!', // header that appears at the top of the talk page post (optional)
text: '$1 {{Wikipedia:BADGE/mockup2}}', // custom text
},
'Teahouse profile badge': {
fields: [ 'header', 'message' ], // fields to ask for in form
option: 'Created Teahouse profile', // 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/teahouse1}}', // custom text
},
'Teahouse good question badge': {
fields: [ 'header', 'message' ], // fields to ask for in form
option: 'Great Teahouse question', // option listed in the select list
descr: '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/teahouse2}}', // custom text
},
'Teahouse good answer badge': {
fields: [ 'header', 'message' ], // fields to ask for in form
option: 'Great Teahouse answer', // option listed in the select list
descr: 'Created Teahouse answer', // description
header: 'Congrats... You gave an aweseome answer in the Teahouse!', // header that appears at the top of the talk page post (optional)
text: '$1 {{Wikipedia:BADGE/teahouse3}}', // custom text
},
'Teahouse maître d' badge': {
fields: [ 'header', 'message' ], // fields to ask for in form
option: 'Hosted as maître d'', // option listed in the select list
descr: 'Hosted as maître d'', // 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/teahouse4}}', // custom text
},
'Teahouse civility leader': {
fields: [ 'header', 'message' ], // fields to ask for in form
option: 'Teahouse civility leader', // option listed in the select list
descr: 'Helped keep Teahouse civil', // 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/teahouse5}}', // custom text
},
},
icon: '/media/wikipedia/commons/2/26/Rank_insignia_of_generale_di_divisione_con_funzioni_superiori_of_the_Alpini.svg'
};
} );
}
Categories:
- Wikipedia Badges
- Users who achieved the ''Teahouse profile'' Badge
- Users who have achieved a Badge in the Teahouse
- Users who have achieved a Badge
- Teahouse Badges
- Users who achieved the ''Teahouse good question'' Badge
- Users who achieved the ''Teahouse good answer'' Badge
- Users who achieved the ''Teahouse maître d'!'' Badge
- Users who achieved the ''Teahouse civility leader'!'' Badge