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

?
מ 148 גרסאות של הדף wikipedia:he:מדיה_ויקי:Gadget-TemplateParamWizard.js יובאו
 
(3 גרסאות ביניים של 2 משתמשים אינן מוצגות)
שורה 118: שורה 118:
function onemore(name) {
function onemore(name) {
var param = params[name];
var param = params[name];
if (param.deprecated)
return; // ignore deprecated parameters - pretend they are not in TD.
templateParams[name] = {  
templateParams[name] = {  
desc: param.description || '',  
desc: param.description || '',  
שורה 477: שורה 479:
}
}
function templatePage() {return mw.config.get('wgFormattedNamespaces')[10] + ':' + $.trim(template);}
function templatePage() {
var t = $.trim(template)
return t.match(':') ? t : mw.config.get('wgFormattedNamespaces')[10] + ':' + t;
}


function updateRawPreview(){
function updateRawPreview(){
שורה 575: שורה 580:


if (options.defval && ! checkbox)
if (options.defval && ! checkbox)
f.val(mw.html.escape(options.defval.trim()));
f.val(options.defval.trim());


if (options.required)
if (options.required)