מדיה ויקי:Gadget-RestoreWarnings.js: הבדלים בין גרסאות בדף

מ סיבוב מיותר לרצות את המפעילים
מ 89 גרסאות של הדף wikipedia:he:מדיה_ויקי:Gadget-RestoreWarnings.js יובאו
 
(2 גרסאות ביניים של משתמש אחר אחד אינן מוצגות)
שורה 78: שורה 78:
{t: "הועתק", m: "העתקה", tl: "הוספת אזהרת העתקה", askExtra: {prompt: 'מקור ההעתקה', param: '|2='}},
{t: "הועתק", m: "העתקה", tl: "הוספת אזהרת העתקה", askExtra: {prompt: 'מקור ההעתקה', param: '|2='}},
{t: "הסבר", m: "הסבר", tl: "הוספת תבנית הסבר", askExtra: {confirm: 'בוטל ? (ביטול=לא)', param: '|בוטל=כן'}, wl: 'unwatch'},
{t: "הסבר", m: "הסבר", tl: "הוספת תבנית הסבר", askExtra: {confirm: 'בוטל ? (ביטול=לא)', param: '|בוטל=כן'}, wl: 'unwatch'},
anon ? {t: "תודה", m: "תודה", tl: "הוספת תבנית תודה", wl: 'unwatch'} : {t: "בה", m: "ברוך בואך", tl:"הוספת תבנית ברוך בואך", wl: 'unwatch', lnk: "ויקיפדיה:ברוכים הבאים|ברוך בואך", noPage: true}
anon ? {t: "תודה", m: "תודה", tl: "הוספת תבנית תודה", wl: 'unwatch'} : {t: "בה", m: "ברוך בואך", tl:"הוספת תבנית ברוך בואך", wl: 'unwatch', noPage: true}
],
],
deletedTemplates = [
deletedTemplates = [
שורה 87: שורה 87:
{t: "הועתק", m: "העתקה", tl: "הוספת אזהרת העתקה"}
{t: "הועתק", m: "העתקה", tl: "הוספת אזהרת העתקה"}
],
],
youWereBlocked = {t: "נחסמת", m: "נחסמת", tl: "הודעה למשתמש שנחסם", askExtra: {prompt: 'סיבת החסימה', param: '|'}, lnk: "תבנית:נחסמת|נחסמת", noPage: true};
youWereBlocked = {t: "נחסמת", m: "נחסמת", tl: "הודעה למשתמש שנחסם", askExtra: {prompt: 'סיבת החסימה', param: '|'}, noPage: true};
if (mw.user.options.get('userjs-RestoreWarnings-all')) {
if (mw.user.options.get('userjs-RestoreWarnings-all')) {
var userTp = mw.user.options.get('userjs-RestoreWarnings-all').split(',');
var userTp = mw.user.options.get('userjs-RestoreWarnings-all').split(',');
שורה 115: שורה 115:
var templ = all[i];
var templ = all[i];
var page = (templ.noPage)
var page = (templ.noPage)
? templ.lnk
? ''
: (($.inArray(mw.config.get('wgNamespaceNumber'), [6, 14]) + 1) ? ':' : '') + mw.config.get('wgPageName').replace(/_/g, " ");
: (($.inArray(mw.config.get('wgNamespaceNumber'), [6, 14]) + 1) ? ':' : '') + mw.config.get('wgPageName').replace(/_/g, " ");
var a = $("<a>", {href: '#', user: forUser, refPage: page, title: templ.tl || templ.t})
var a = $("<a>", {href: '#', user: forUser, refPage: page, title: templ.tl || templ.t})