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

תוכן שנמחק תוכן שנוסף
updated based on translate from brother Zachariah
מ label support, language support
שורה 96:
while (m = paramExtractor.exec(data)) {
var paramName = $.trim(m[1]);
templateParams[paramName] = {desc: '', options: {multiline: 5}, label: paramName};
addParam(paramName);
}
שורה 107:
function onemore(name) {
var param = params[name];
templateParams[name] = { desc: param.description && param.description.he || '', options: { required: param.required }, label: param.label || name };
addParam(name);
}
שורה 452:
def = templateParams[paramName],
desc = def.desc || '';
if (!def) return ''; // early terminate if param name is not valid
if (def.htmlDesc)
return def.htmlDesc;
שורה 485 ⟵ 486:
$('<td>', {width: 120})
.css({fontWeight: 'bold', color: nameColor})
.text(templateParams[paramName].label)
.tipsy({html: true, trigger: 'manual', title: tipsyContent})
.mouseenter(function() {
שורה 643 ⟵ 644:
$.ajax({
url: mw.util.wikiScript('api'),
data: {action: 'templatedata', titles: templatePage(), redirects: true, format: 'json', lang: mw.config.get('wgUserLanguage') },
dataType: 'json',
success: function(data) {