User:VarunFEB2003/IndianMilitaryBadges.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. |
![]() | Documentation for this user script can be added at User:VarunFEB2003/IndianMilitaryBadges. |
var thisPageNamespace = mw.config.get( 'wgNamespaceNumber' );
if ( thisPageNamespace == 2 || thisPageNamespace == 3 ) {
mw.loader.using( 'ext.wikiLove.defaultOptions', function() {
$.wikiLoveOptions.types.badges= {
name: 'Indian Military Badges', // name of the type (appears in the types menu)
subtypes: {
'Teahouse Welcome': {
fields: [ 'header', 'message' ], // fields to ask for in form
option: 'Teahouse Welcome Badge', // option listed in the select list
descr: 'Created a Teahouse', // description
header: 'Congrats... You created your Teahouse!', // header that appears at the top of the talk page post (optional)
text: '{{Wikipedia:Teahouse/Badge/Welcome|size=|signed=~~'+'~~|message=$1}}\n<br style="clear: both"/>' , // custom text
},
'Teahouse Welcomer badge': {
fields: [ 'header', 'message' ], // fields to ask for in form
option: 'Teahouse Welcomer', // option listed in the select list
descr: 'Awarded to editors who show extraordinary welcoming spirit at the Wikipedia Teahouse.', // description
header: 'Congrats... You brought a spirit of good cheer and warm invitation to the Teahouse!', // header that appears at the top of the talk page post (optional)
text: '{{Wikipedia:Teahouse/Badge/Welcoming|size=|signed=~~'+'~~|message=$1}}\n<br style="clear: both"/>', // custom text
},
'Teahouse host badge': {
fields: [ 'header', 'message' ], // fields to ask for in form
option: 'Teahouse Host', // option listed in the select list
descr: 'For creating a host profile', // description
header: 'Congrats... You have joined a team of awesome helpers!', // header that appears at the top of the talk page post (optional)
text: '{{Wikipedia:Teahouse/Badge/Host|size=|signed=~~'+'~~|message=$1}}\n<br style="clear: both"/>', // custom text
},
},
icon: 'http://upload.wikimedia.org/wikipedia/commons/thumb/2/26/Rank_insignia_of_generale_di_divisione_con_funzioni_superiori_of_the_Alpini.svg/53px-Rank_insignia_of_generale_di_divisione_con_funzioni_superiori_of_the_Alpini.svg.png'
};
} );
}