MediaWiki:Gadget-friendlywelcome.js: Perbedaan antara revisi
Konten dihapus Konten ditambahkan
←Membuat halaman berisi '//<nowiki> (function($){ /* **************************************** *** friendlywelcome.js: Welcome module **************************************** * Mode of...' |
Tidak ada ringkasan suntingan |
||
Baris 87:
if( mw.config.get( 'wgNamespaceNumber' ) === 3 ) {
var username = mw.config.get( 'wgTitle' ).split( '/' )[0].replace( /\"/, "\\\""); // only first part before any slashes
Twinkle.addPortletLink( function(){ Twinkle.welcome.callback(username); }, "Wel", "friendly-welcome", "
}
};
Baris 102:
Morebits.wiki.actionCompleted.redirect = mw.config.get('wgPageName');
Morebits.wiki.actionCompleted.notice = "
var wikipedia_page = new Morebits.wiki.page(mw.config.get('wgPageName'), "
wikipedia_page.setFollowRedirect(true);
wikipedia_page.setCallbackParameters(params);
Baris 111:
Twinkle.welcome.callback = function friendlywelcomeCallback( uid ) {
if( uid === mw.config.get('wgUserName') && !confirm( '
return;
}
var Window = new Morebits.simpleWindow( 600, 420 );
Window.setTitle( "
Window.setScriptName( "Twinkle" );
Window.addFooterLink( "
Window.addFooterLink( "
var form = new Morebits.quickForm( Twinkle.welcome.callback.evaluate );
Baris 129:
event: Twinkle.welcome.populateWelcomeList,
list: [
{ type: 'option', value: 'standard', label: '
{ type: 'option', value: 'anonymous', label: '
{ type: 'option', value: 'wikiProject', label: '
{ type: 'option', value: 'nonEnglish', label: '
]
});
Baris 145:
type: 'input',
name: 'article',
label: '*
value:( Morebits.queryString.exists( 'vanarticle' ) ? Morebits.queryString.get( 'vanarticle' ) : '' ),
tooltip: 'Artikel mungkin dapat ditautkan dari proses penyambutan ini jika didukung oleh templat. Kosongkan untuk tidak menautkan artikel. Templat yang mendukung penautan artikel ditandai dengan tanda bintang.'
} );
Baris 176:
if ((type === "standard" || type === "anonymous") && Twinkle.getFriendlyPref("customWelcomeList").length) {
container.append({ type: 'header', label: '
container.append({
type: 'radio',
Baris 207:
switch (type) {
case "standard":
container.append({ type: 'header', label: '
appendTemplates([
"welcome",
Baris 220:
"welcome non-latin"
]);
container.append({ type: 'header', label: '
appendTemplates([
"welcomelaws",
Baris 236:
break;
case "anonymous":
container.append({ type: 'header', label: '
appendTemplates([
"welcome-anon",
Baris 246:
break;
case "wikiProject":
container.append({ type: 'header', label: '
appendTemplates([
"welcome-au",
Baris 275:
break;
case "nonEnglish":
container.append({ type: 'header', label: '
appendTemplates([
"welcomeen-sq",
Baris 298:
break;
default:
container.append({ type: 'div', label: 'Twinkle.welcome.populateWelcomeList:
break;
}
Baris 333:
},
"welcome-short": {
description: "
linkedArticle: false,
syntax: "{{subst:welcome-short|$USERNAME$}} $EXTRA$ ~~~~"
},
"welcome-personal": {
description: "
linkedArticle: false,
syntax: "{{subst:welcome-personal|$USERNAME$}} ~~~~"
},
"welcome-graphical": {
description: "
linkedArticle: false,
syntax: "$HEADER$ {{subst:welcome-graphical|$EXTRA$}}"
},
"welcome-menu": {
description: "
linkedArticle: false,
syntax: "{{subst:welcome-menu}}"
},
"welcome-screen": {
description: "
linkedArticle: false,
syntax: "$HEADER$ {{subst:welcome-screen|static=true}}"
},
"welcome-belated": {
description: "
linkedArticle: false,
syntax: "{{subst:welcome-belated|$USERNAME$}}"
|