Jump to content

User:Technical 13/Scripts/ACC WikiLove.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Technical 13 (talk | contribs) at 20:53, 20 January 2014 (Add some anchors and backlinks for those using User:Technical 13/Scripts/Gadget-codeAnchors and User:Technical 13/Scripts/Gadget-codeBacklinks respectively.). 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.acc= {
			name: 'ACC Welcomes',// name of the type (appears in the types menu) [[User:Technical 13/Scripts/ACC WikiLove]]
			subtypes: {
/* Welcome */// [[Template:Welcome]]
				'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 */// [[Template:W-cust]]
				'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 */// [[Template:W-shout]]
				'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 */// [[Template:Welcome cookie]]
				'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 */// [[Template:Welcome kitten]]
				'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 */// [[Template:Welcome-t]]
				'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 */// [[Template:Welcomeg]]
				'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 */// [[Template:W-graphical]]
				'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 */// [[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!',// 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 */// [[Template:Welcome teacher]]
				'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 */// [[Template:Welcome student]]
				'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 */// [[File:Acc-barnstar.png]]
			icon: '/media/wikipedia/commons/f/fe/Acc-barnstar.png'
		};
	});
}