User:Technical 13/Scripts/ACC WikiLove.js

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.
//<nowiki>
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) [[User:Technical 13/Scripts/ACC WikiLove]]
			subtypes: {
/* W-screen */// [[Template:W-screen]]
				'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!',
					message:	'Welcome to the English Wikipedia; I have created your account for you!',// header that appears at the top of the talk page post (optional)
					text:		'{{SUBST:W-screen|1=$1}}\n<br style="clear: both"/>',// Automatically signs by default// Default welcome message
				},
/* Welcome */// [[Template:Welcome]]
				'Welcome': {
					fields:	[ 'header', 'message' ],
					option:	'{{Welcome}}',
					descr:	'The standard welcome',
					header:	'Welcome to the English Wikipedia!',
					message:	'Welcome to the English Wikipedia; I have created your account for you!',
					text:		'{{SUBST:Welcome|1={{SUBST:REVISIONUSER}}|heading=no|newuser=yes}}\n* $1 ~~~~\n<br style="clear: both"/>',
				},
/* Welcome-COI */// [[Template:Welcome-COI]]
				'Welcome-COI': {
					fields: [ 'header', 'message' ],
					option:	'{{Welcome-COI}}',
					descr:	'A welcome for users that want an account to edit a specific topic they may have a COI with.',
					header:	'Welcome to the English Wikipedia!',
					message:	'<!-- please replace this comment with the conflict of interest -->',// Page or topic they want to work on in COI
					text:		'{{SUBST:Welcome-COI|heading=no|newuser=yes|newuser_topic=$1}}\n~~~~[[Category:User talk pages with conflict of interest notices]]<br style="clear: both"/>',
				},
/* W-cust */// [[Template:W-cust]]
				'W-cust': {
					fields: [ 'header', 'message' ],
					option:	'{{W-cust}}',
					descr:	'A welcome with a bunch of icons and links',
					header:	'Welcome to the English Wikipedia!',
					message:	'Welcome to the English Wikipedia; I have created your account for you!',
					text:		'{{SUBST:W-cust|icons=true|newuser=yes|nosig=yes|1=$1 ~~~~}}\n<br style="clear: both"/>',
				},
/* W-shout */// [[Template:W-shout]]
				'W-shout': {
					fields: [ 'header', 'message' ],
					option:	'{{W-shout}}',
					descr:	'A slightly louder welcome',
					header:	'Welcome to the English Wikipedia!',
					message:	'Welcome to the English Wikipedia; I have created your account for you!',
					text:		'{{SUBST:W-shout|1=$1}}\n<br style="clear: both"/>',
				},
/* Welcome cookie */// [[Template:Welcome cookie]]
				'Welcome cookie': {
					fields: [ 'header', 'message' ],
					option:	'{{Welcome cookie}}',
					descr:	'Standard welcome with a plate of cookies',
					header:	'Welcome to the English Wikipedia!',
					message:	'Welcome to the English Wikipedia; I have created your account for you!',
					text:		'{{SUBST:Welcome cookie|1=$1}}\n<br style="clear: both"/>',
				},
/* Welcome kitten */// [[Template:Welcome kitten]]
				'Welcome kitten': {
					fields: [ 'header', 'message' ],
					option:	'{{Welcome kitten}}',
					descr:	'Standard welcome with a kitten',
					header:	'Welcome to the English Wikipedia!',
					message:	'Welcome to the English Wikipedia; I have created your account for you!',
					text:		'{{SUBST:Welcome kitten|1=$1}}\n<br style="clear: both"/>',
				},
/* Welcome-t */// [[Template:Welcome-t]]
				'Welcome-t': {
					fields: [ 'header', 'message' ],
					option:	'{{Welcome-t}}',
					descr:	'Standard welcome with a teahouse link and image',
					header:	'Welcome to the English Wikipedia!',
					message:	'Welcome to the English Wikipedia; I have created your account for you!',
					text:		'{{SUBST:Welcome-t|1=$1|heading=no}}\n<br style="clear: both"/>',
				},
/* Welcomeg */// [[Template:Welcomeg]]
				'Welcomeg': {
					fields: [ 'header', 'message' ],
					option:	'{{Welcomeg}}',
					descr:	'A welcome with many links and a graphical look to it',
					header:	'Welcome to the English Wikipedia!',
					message:	'Welcome to the English Wikipedia; I have created your account for you!',
					text:		'{{SUBST:Welcomeg|1=$1 ~~~~|nosig=yes}}\n<br style="clear: both"/>',
				},
/* Welcome-image */// [[Template:Welcome-image]]
				'Welcome-image': {
					fields: [ 'header', 'message' ],
					option:	'{{Welcome-image}}',
					descr:	'A welcome for those interested in adding images',
					header:	'Welcome to the English Wikipedia!',
					message:	'Welcome to the English Wikipedia; I have created your account for you!',
					text:		'{{SUBST:Welcome-image|1=$1|heading=n|newuser=y}}\n<br style="clear: both"/>',// custom text
				},
/* Welcome teacher */// [[Template:Welcome teacher]]
				'Welcome teacher': {
					fields: [ 'header', 'message' ],
					option:	'{{Welcome teacher}}',
					descr:	'For welcoming a new teacher account',
					header:	'Welcome to the English Wikipedia!',
					message:	'Welcome to the English Wikipedia; I have created your account for you!',
					text:		'{{SUBST:Welcome teacher}}\n* $1 ~~~~\n<br style="clear: both"/>',
				},
/* Welcome student */// [[Template:Welcome student]]
				'Welcome student': {
					fields:	[ 'header', 'message' ],
					option:	'{{Welcome student}}',
					descr:	'For welcoming a new student account',
					header:	'Welcome to the English Wikipedia!',
					message:	'Welcome to the English Wikipedia; I have created your account for you!',
					text:		'{{SUBST:Welcome student|1={{SUBST:REVISIONUSER}}}}\n* $1 ~~~~\n<br style="clear: both"/>',
				},
			},
/* Icon */// [[File:Acc-barnstar.png]]
			icon: '//upload.wikimedia.org/wikipedia/commons/f/fe/Acc-barnstar.png'
		};
	});
}
//<nowiki>