מדיה ויקי:Gadget-TemplateParamWizard.js: הבדלים בין גרסאות בדף
| שורה 6: | שורה 6: | ||
// template parameter is an object with the following fields: | // template parameter is an object with the following fields: | ||
// desc: desciption string | |||
// select: array of possible values (optional) | // select: array of possible values (optional) | ||
// defval: default value (optional) | // defval: default value (optional) | ||
| שורה 226: | שורה 226: | ||
else | else | ||
f = $('<input>', {type: 'text'}); | f = $('<input>', {type: 'text'}); | ||
if (!checkbox && f.autoCompleteWikiText) // teach the controls to autocomplete. | |||
f.autoCompleteWikiText(); | f.autoCompleteWikiText(); | ||
f.css({width: checkbox ? '1em' : '28em'}) | f.css({width: checkbox ? '1em' : '28em'}) | ||
.data({paramName: paramName, options: options}) | .data({paramName: paramName, options: options}) | ||