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

using [[mw:CodeEditor|CodeEditor]]: על המשמר. שינוי קטן בקבוצות
שורה 80: שורה 80:
{t: 'חבצלת'},
{t: 'חבצלת'},
{t: 'המליץ'},
{t: 'המליץ'},
{t: 'על המשמר'},
{t: 'PalPost'},
{t: 'PalPost'},
{t: 'תנ"ך', p: [8,9,10], op:[2]},
{t: 'תנ"ך', p: [8,9,10], op:[2]},
שורה 167: שורה 168:
template = templatesAr[i];
template = templatesAr[i];


var historic = {"דבר": "DAV", "מעריב": "MAR", "הצבי": "HZV", "הצפירה": "HZF", "המגיד": "MGD", "המליץ": "HMZ", "חבצלת": "HZT", "PalPost": "PLS"};
var historic = {"דבר": "DAV", "מעריב": "MAR", "הצבי": "HZV", "הצפירה": "HZF", "המגיד": "MGD", "המליץ": "HMZ", "חבצלת": "HZT", "PalPost": "PLS", "על המשמר" : "AHR"};
if (historic[template.t]) {
if (historic[template.t]) {
var r = new RegExp('=HISTNAME/(\\d{4}/\\d{1,2}/\\d{1,2})(?:.*&EntityId=|/\\d+/)([A-Z][a-z])(\\d+)'.replace('HISTNAME', historic[template.t]));
var r = new RegExp('=HISTNAME/(\\d{4}/\\d{1,2}/\\d{1,2})(?:.*&EntityId=|/\\d+/)([A-Z][a-z])(\\d+)'.replace('HISTNAME', historic[template.t]));
שורה 388: שורה 389:
);
);
if (typeof $.wikiEditor != 'undefined')
if (typeof $.wikiEditor != 'undefined')
            mw.loader.using('ext.wikiEditor.toolbar', function() {
$('#wpTextbox1').wikiEditor('addToToolbar', {
    $('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
    section: 'advanced',
group: 'wizards',
    groups: {
tools: {
    'wizards': {
'linkTemplatewizard': {
    tools: {
label: 'תבנית קישור',
    'linkTemplatewizard': {
type: 'button',
    label: 'תבנית קישור',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/5/5e/Gnome-web-browser.svg/22px-Gnome-web-browser.svg.png',
    type: 'button',
action: {type: 'callback', execute: fireDialog}
    icon: '//upload.wikimedia.org/wikipedia/commons/thumb/5/5e/Gnome-web-browser.svg/22px-Gnome-web-browser.svg.png',
}
    action: {type: 'callback', execute: fireDialog}
}
    }
});
    }}}
    });
            });
});
});


});
});
});
});