MediaWiki:Gadget-friendlywelcome.js: Perbedaan revisi

Repo at d9666d4: Update Twinkle from upstream
(Repo at d9666d4: Update Twinkle from upstream)
****************************************
* Mode of invocation: Tab ("Wel"), or from links on diff pages
* Active on: ExistingAny userpage talkwith pages,relevant diffuser pagesname (userspace,
* contribs, etc.) and diff pages
* Config directives in: FriendlyConfig
*/
 
Twinkle.welcome.semiauto = function() {
Twinkle.welcome.callback( mw.config.get( 'wgTitlewgRelevantUserName' ).split( '/' )[0].replace( /\"/, "\\\"") );
};
 
}
}
if( mw.config.get( 'wgNamespaceNumberwgRelevantUserName' ) === 3 ) {
Twinkle.addPortletLink( function(){ Twinkle.welcome.callback(usernamemw.config.get( 'wgRelevantUserName' )); }, "Wel", "friendly-welcome", "Sambut pengguna" );
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", "Sambut pengguna" );
}
};
};
 
Morebitsvar userTalkPage = mw.wikiconfig.actionCompleted.redirectget('wgFormattedNamespaces')[3] =+ ':' + mw.config.get('wgPageNamewgRelevantUserName');
Morebits.wiki.actionCompleted.redirect = userTalkPage;
Morebits.wiki.actionCompleted.notice = "Penyambutan selesai, halaman akan dimuat ulang beberapa saat lagi";
 
var wikipedia_page = new Morebits.wiki.page(mw.config.get('wgPageName')userTalkPage, "Mengubah halaman pembicaraan pengguna");
wikipedia_page.setFollowRedirect(true);
wikipedia_page.setCallbackParameters(params);
event: Twinkle.welcome.populateWelcomeList,
list: [
{ type: 'option', value: 'standard', label: 'Penyambutan biasa', selected: !Morebitsmw.util.isIPAddress(mw.config.get('wgTitlewgRelevantUserName')) },
{ type: 'option', value: 'anonymous', label: 'Penyambutan pengguna beralamat IP', selected: Morebitsmw.util.isIPAddress(mw.config.get('wgTitlewgRelevantUserName')) },
{ type: 'option', value: 'wikiProject', label: 'Penyambutan WikiProject' },
{ type: 'option', value: 'nonEnglish', label: 'Penyambutan pengguna non-bahasa Inggris' }
container.append({ type: 'header', label: 'Templat penyambutan WikiProject tertentu' });
appendTemplates([
"welcome-anatomy",
"welcome-athletics",
"welcome-au",
"welcome-bd",
container.append({ type: 'header', label: 'Templat penyambutan pengguna bukan pengguna bahasa Inggris' });
appendTemplates([
"welcomeen-mr",
"welcomeen-sq",
"welcomeen-ar",
"welcomeen-ja",
"welcomeen-ko",
"welcomeen-mr",
"welcomeen-ml",
"welcomeen-mr": {,
"welcomeen-or",
"welcomeen-pt",
"welcomeen-ro",
"welcomeen-ru",
"welcomeen-es",
description: "pesan sambutan dengan tabel bertanda dan jelas dengan 10 pranala",
linkedArticle: false,
syntax: "$HEADER$ {{subst:welcome-screen|static=true}}"
},
"welcome-belated": {
// WIKIPROJECT-SPECIFIC WELCOMES
 
"welcome-anatomy": {
description: "welcome for users whosewith firstan languageapparent appearsinterest toin beanatomy Marathitopics",
linkedArticle: false,
syntax: "{{subst:welcomeenwelcome-mranatomy}} ~~~~"
},
"welcome-athletics": {
description: "welcome for users with an apparent interest in athletics (track and field) topics",
linkedArticle: false,
syntax: "{{subst:welcome-athletics}}"
},
"welcome-au": {
description: "welcome for users with an apparent interest in Australia topics",
description: "invite the user to The Wikipedia Adventure (not a welcome template)",
linkedArticle: false,
syntax: "{{WP:TWA/InviteInviteTW|signature=~~~~}}"
},
 
// NON-ENGLISH WELCOMES
 
"welcomeen": {
description: "welcome for users whose first language is not listed here",
linkedArticle: false,
syntax: "{{subst:welcomeen}}"
},
"welcomeen-ar": {
description: "welcome for users whose first language appears to be Arabic",
linkedArticle: false,
syntax: "{{subst:welcomeen-ko}}"
},
"welcomeen-mr": {
description: "welcome for users whose first language appears to be Marathi",
linkedArticle: false,
syntax: "{{subst:welcomeen-mr}}"
},
"welcomeen-ml": {
linkedArticle: false,
syntax: "{{subst:welcomeen-ml}}"
},
"welcomeen-mr": {
description: "welcome for users whose first language appears to be Marathi",
linkedArticle: false,
syntax: "{{subst:welcomeen-mr}}"
},
"welcomeen-or": {
linkedArticle: false,
syntax: "{{subst:welcomeen-pt}}"
},
"welcomeen-ro": {
description: "welcome for users whose first language appears to be Romanian",
linkedArticle: false,
syntax: "{{subst:welcomeen-ro}}"
},
"welcomeen-ru": {
 
var previewer = new Morebits.wiki.preview(previewdiv);
previewer.beginRender(Twinkle.welcome.getTemplateWikitext(form.getChecked("template"), form.article.value), 'User talk:' + mw.config.get('wgRelevantUserName')); // Force wikitext/correct username
 
var submit = document.createElement("input");
previewDialog.display();
 
$(submit).click(function(e) {
previewDialog.close();
});
Morebits.status.init( form );
 
Morebitsvar userTalkPage = mw.wikiconfig.actionCompleted.redirectget('wgFormattedNamespaces')[3] =+ ':' + mw.config.get('wgPageNamewgRelevantUserName');
Morebits.wiki.actionCompleted.redirect = userTalkPage;
Morebits.wiki.actionCompleted.notice = "Welcoming complete, reloading talk page in a few seconds";
 
var wikipedia_page = new Morebits.wiki.page(mw.config.get('wgPageName')userTalkPage, "User talk page modification");
wikipedia_page.setFollowRedirect(true);
wikipedia_page.setCallbackParameters(params);