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

קול המון כקול שדי
live on the edge
שורה 313: שורה 313:
case 'he':
case 'he':
switch (key) {
switch (key) {
case 'explain': return rawTemplate
case 'explain': return hebExplain();
? 'לתבנית "' + template + '" אין דף פרמטרים, ולכן לשדות אין תיאור.'
: 'השדות המסומנים באדום הם חובה, השאר אופציונליים.';
case 'wizard dialog title': return 'מילוי הפרמטרים עבור ' + '<a href="' + mw.util.getUrl('תבנית:' + template) + '" target="_blank">' + 'תבנית:' + template + '</a>';
case 'wizard dialog title': return 'מילוי הפרמטרים עבור ' + '<a href="' + mw.util.getUrl('תבנית:' + template) + '" target="_blank">' + 'תבנית:' + template + '</a>';
case 'ok': return 'אישור';
case 'ok': return 'אישור';
שורה 403: שורה 401:
}
}


function hebExplain() {
var explanation;
if (rawTemplate) return 'לתבנית "' + template + '" אין דף פרמטרים, ולכן לשדות אין תיאור.';
if (anyRequiredParam()) return 'השדות המסומנים באדום הם חובה, השאר אופציונליים.';
return '';
}
function anyRequiredParam() {
for (name in templateParams) {
var param = templateParams[name];
if (param.options.required) return true;
}
return false;
}
function paramPage() {return mw.config.get('wgFormattedNamespaces')[10] + ':' + $.trim(template) + '/' + i18n('params subpage');}
function paramPage() {return mw.config.get('wgFormattedNamespaces')[10] + ':' + $.trim(template) + '/' + i18n('params subpage');}