User:Technical 13/Scripts/ACC WikiLove.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:Technical 13/Scripts/ACC WikiLove. |
var thisPageNamespace = mw.config.get( 'wgNamespaceNumber' );
if ( thisPageNamespace == 2 || thisPageNamespace == 3 ) {
mw.loader.using( 'ext.wikiLove.defaultOptions', function() {
$.wikiLoveOptions.types.acc= {
name: 'ACC Welcomes',// name of the type (appears in the types menu)
subtypes: {
'Welcome': {
fields: [ 'header', 'message' ],// fields to ask for in form
option: '{'+'{Welcome}'+'}',// option listed in the select list
descr: 'The standard welcome',// description
header: 'Welcome to the English Wikipedia!',// header that appears at the top of the talk page post (optional)
text: '{{SUBST:'+'Welcome|1={{SUBST:'+'REVISIONUSER}}}}\n* $1 ~~'+'~~\n<br style="clear: both"/>',// custom text
},
'W-cust': {
fields: [ 'header', 'message' ],// fields to ask for in form
option: '{'+'{W-cust}'+'}',// option listed in the select list
descr: 'A welcome with a bunch of icons and links',// description
header: 'Welcome to the English Wikipedia!',// header that appears at the top of the talk page post (optional)
text: '{{SUBST:'+'W-cust|icons=true|1=$1}}\n<br style="clear: both"/>',// custom text
},
'W-shout': {
fields: [ 'header', 'message' ],// fields to ask for in form
option: '{'+'{W-shout}'+'}',// option listed in the select list
descr: 'A slightly louder welcome',// description
header: 'Welcome to the English Wikipedia!',// header that appears at the top of the talk page post (optional)
text: '{{SUBST:'+'W-shout|1=$1 ~~'+'~~}}\n<br style="clear: both"/>',// custom text
},
'Welcome cookie': {
fields: [ 'header', 'message' ],// fields to ask for in form
option: '{'+'{Welcome cookie}'+'}',// option listed in the select list
descr: 'Standard welcome with a plate of cookies',// description
header: 'Welcome to the English Wikipedia!',// header that appears at the top of the talk page post (optional)
text: '{{SUBST:'+'Welcome cookie}}\n* $1 ~~'+'~~\n<br style="clear: both"/>',// custom text
},
'Welcome kitten': {
fields: [ 'header', 'message' ],// fields to ask for in form
option: '{'+'{Welcome kitten}'+'}',// option listed in the select list
descr: 'Standard welcome with a kitten',// description
header: 'Welcome to the English Wikipedia!',// header that appears at the top of the talk page post (optional)
text: '{{SUBST:'+'Welcome kitten}}\n* $1 ~~'+'~~\n<br style="clear: both"/>',// custom text
},
'Welcome-t': {
fields: [ 'header', 'message' ],// fields to ask for in form
option: '{'+'{Welcome-t}'+'}',// option listed in the select list
descr: 'Standard welcome with a teahouse link and image',// description
header: 'Welcome to the English Wikipedia!',// header that appears at the top of the talk page post (optional)
text: '{{SUBST:'+'Welcome-t|1={{SUBST:'+'REVISIONUSER}}}}\n* $1 ~~'+'~~\n<br style="clear: both"/>',// custom text
},
'Welcomeg': {
fields: [ 'header', 'message' ],// fields to ask for in form
option: '{'+'{Welcomeg}'+'}',// option listed in the select list
descr: 'A welcome with many links and a graphical look to it',// description
header: 'Welcome to the English Wikipedia!',// header that appears at the top of the talk page post (optional)
text: '{{SUBST:'+'Welcomeg|1={{SUBST:'+'REVISIONUSER}}}}\n* $1 ~~'+'~~\n<br style="clear: both"/>',// custom text
},
'W-graphical': {
fields: [ 'header', 'message' ],// fields to ask for in form
option: '{'+'{W-graphical}'+'}',// option listed in the select list
descr: 'A welcome with a graphical look to it',// description
header: 'Welcome to the English Wikipedia!',// header that appears at the top of the talk page post (optional)
text: '{{SUBST:'+'Welcome-graphical|1=$1 ~~'+'~~}}\n<br style="clear: both"/>',// custom text
},
'W-screen': {
fields: [ 'header', 'message' ],// fields to ask for in form
option: '{'+'{W-screen}'+'}',// option listed in the select list
descr: 'A welcome designed to fit the size of the user\'s screen',// description
header: 'Welcome to the English Wikipedia!',// header that appears at the top of the talk page post (optional)
text: '{{SUBST:'+'W-screen|1=$1 ~~'+'~~|sig=}}\n<br style="clear: both"/>',// custom text
},
'Welcome teacher': {
fields: [ 'header', 'message' ],// fields to ask for in form
option: '{'+'{Welcome teacher}'+'}',// option listed in the select list
descr: 'For welcoming a new teacher account',// description
header: 'Welcome to the English Wikipedia!',// header that appears at the top of the talk page post (optional)
text: '{{SUBST:'+'Welcome teacher}}\n* $1 ~~'+'~~\n<br style="clear: both"/>',// custom text
},
'Welcome student': {
fields: [ 'header', 'message' ],// fields to ask for in form
option: '{'+'{Welcome student}'+'}',// option listed in the select list
descr: 'For welcoming a new student account',// description
header: 'Welcome to the English Wikipedia!',// header that appears at the top of the talk page post (optional)
text: '{{SUBST:'+'Welcome student|1={{SUBST:'+'REVISIONUSER}}}}\n* $1 ~~'+'~~\n<br style="clear: both"/>',// custom text
},
},
icon: '/media/wikipedia/commons/f/fe/Acc-barnstar.png'
};
});
}