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. |
//<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>