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", "WelcomeSambut userpengguna" );
}
};
Baris 102:
 
Morebits.wiki.actionCompleted.redirect = mw.config.get('wgPageName');
Morebits.wiki.actionCompleted.notice = "WelcomingPenyambutan completeselesai, reloadinghalaman talkakan pagedimuat inulang abeberapa fewsaat secondslagi";
 
var wikipedia_page = new Morebits.wiki.page(mw.config.get('wgPageName'), "UserMengubah talkhalaman pagepembicaraan modificationpengguna");
wikipedia_page.setFollowRedirect(true);
wikipedia_page.setCallbackParameters(params);
Baris 111:
 
Twinkle.welcome.callback = function friendlywelcomeCallback( uid ) {
if( uid === mw.config.get('wgUserName') && !confirm( 'AreAnda youyakin reallyingin suremenyambut youdiri wantAnda to welcome yourself?...sendiri' ) ){
return;
}
 
var Window = new Morebits.simpleWindow( 600, 420 );
Window.setTitle( "WelcomeSambut userpengguna" );
Window.setScriptName( "Twinkle" );
Window.addFooterLink( "WelcomingPanitia Committeepenyambutan", "WP:WC" );
Window.addFooterLink( "TwinkleBantuan helpTwinkle", "WP:TW/DOC#welcome" );
 
var form = new Morebits.quickForm( Twinkle.welcome.callback.evaluate );
Baris 129:
event: Twinkle.welcome.populateWelcomeList,
list: [
{ type: 'option', value: 'standard', label: 'StandardPenyambutan welcomesbiasa', selected: !Morebits.isIPAddress(mw.config.get('wgTitle')) },
{ type: 'option', value: 'anonymous', label: 'IPPenyambutan userpengguna welcomesberalamat IP', selected: Morebits.isIPAddress(mw.config.get('wgTitle')) },
{ type: 'option', value: 'wikiProject', label: 'WikiProjectPenyambutan welcomesWikiProject' },
{ type: 'option', value: 'nonEnglish', label: 'NonPenyambutan pengguna non-Englishbahasa welcomesInggris' }
]
});
Baris 145:
type: 'input',
name: 'article',
label: '* LinkedArtikel articleterkait (ifjika supporteddidukung byoleh templatetemplat):',
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.'
tooltip: 'An article might be linked from within the welcome if the template supports it. Leave empty for no article to be linked. Templates that support a linked article are marked with an asterisk.'
} );
 
Baris 176:
 
if ((type === "standard" || type === "anonymous") && Twinkle.getFriendlyPref("customWelcomeList").length) {
container.append({ type: 'header', label: 'CustomTemplat welcomesambutan templatesyang disesuaikan' });
container.append({
type: 'radio',
Baris 207:
switch (type) {
case "standard":
container.append({ type: 'header', label: 'GeneralTemplat welcomepenyambutan templatesumum' });
appendTemplates([
"welcome",
Baris 220:
"welcome non-latin"
]);
container.append({ type: 'header', label: 'ProblemTemplat userpenyambutan welcomepengguna templatesbermasalah' });
appendTemplates([
"welcomelaws",
Baris 236:
break;
case "anonymous":
container.append({ type: 'header', label: 'AnonymousTemplat userpenyambutan welcomepengguna templatesanonim' });
appendTemplates([
"welcome-anon",
Baris 246:
break;
case "wikiProject":
container.append({ type: 'header', label: 'WikiProject-specificTemplat welcomepenyambutan WikiProject templatestertentu' });
appendTemplates([
"welcome-au",
Baris 275:
break;
case "nonEnglish":
container.append({ type: 'header', label: 'Non-EnglishTemplat welcomepenyambutan templatespengguna bukan pengguna bahasa Inggris' });
appendTemplates([
"welcomeen-sq",
Baris 298:
break;
default:
container.append({ type: 'div', label: 'Twinkle.welcome.populateWelcomeList: somethingterjadi went wrongkesalahan' });
break;
}
Baris 333:
},
"welcome-short": {
description: "apesan shortersambutan welcome messagependek",
linkedArticle: false,
syntax: "{{subst:welcome-short|$USERNAME$}} $EXTRA$ ~~~~"
},
"welcome-personal": {
description: "moresambutan personallebih welcomeramah, includingdengan asemangkuk plate of cookieskue",
linkedArticle: false,
syntax: "{{subst:welcome-personal|$USERNAME$}} ~~~~"
},
"welcome-graphical": {
description: "colorfulpesan welcomesambutan messageberwarna withdengan tabletabel of aboutberisi 20 linkspranala",
linkedArticle: false,
syntax: "$HEADER$ {{subst:welcome-graphical|$EXTRA$}}"
},
"welcome-menu": {
description: "welcomepesan messagesambutan withdengan largetabel tablelebih of aboutbesar (60 linkspranala)",
linkedArticle: false,
syntax: "{{subst:welcome-menu}}"
},
"welcome-screen": {
description: "welcomepesan messagesambutan withdengan clear,tabel annotatedbertanda tabledan ofjelas dengan 10 linkspranala",
linkedArticle: false,
syntax: "$HEADER$ {{subst:welcome-screen|static=true}}"
},
"welcome-belated": {
description: "welcomesambutan foruntuk userspengguna withdengan morekontribusi substantial contributionsberguna",
linkedArticle: false,
syntax: "{{subst:welcome-belated|$USERNAME$}}"