MediaWiki:Common.js/edit.js: Difference between revisions

updating BSL function/variable template wizards to use BSLjunc
(more width)
(updating BSL function/variable template wizards to use BSLjunc)
Line 569: Line 569:
return false;
return false;
}
}
//=============================================================================
// Popup: BSL Function Template Wizard
//=============================================================================


function XEBPopupBSLfunc(e)
function XEBPopupBSLfunc(e)
Line 682: Line 686:
var f = document.XEBPopupBSLFuncForm;
var f = document.XEBPopupBSLFuncForm;


var call = '{{BSLfunc\n';
var call = '{{BSLjunc\n';
 
call += '|tableform={{{tableform|no}}}\n';
call += '|group={{{group}}}\n';
call += '|kind=func\n';
call += '|type=' + f.inputFuncType.value + '\n';
call += '|type=' + f.inputFuncType.value + '\n';
call += '|default=' + f.inputFuncDefault.value + '\n';
call += '|default=' + f.inputFuncDefault.value + '\n';
Line 794: Line 800:
}
}
call += '}}';
call += '}}<noinclude>\n\n[[Category:BSL functions]]</noinclude>';
hideXEBPopup();
hideXEBPopup();
insertTags('', '', call);
insertTags('', '', call);
Line 801: Line 807:
return false;
return false;
}
}
//=============================================================================
// Popup: BSL Variable Template Wizard
//=============================================================================


function XEBPopupBSLvar(e)
function XEBPopupBSLvar(e)
Line 833: Line 843:
var f = document.XEBPopupBSLVarForm;
var f = document.XEBPopupBSLVarForm;


var call = '{{BSLvar\n';
var call = '{{BSLjunc\n';
 
call += '|tableform={{{tableform|no}}}\n';
call += '|group={{{group}}}\n';
call += '|kind=var\n';
call += '|name=' + f.inputVarName.value + '\n';
call += '|name=' + f.inputVarName.value + '\n';
call += '|type=' + f.inputVarType.value + '\n';
call += '|type=' + f.inputVarType.value + '\n';
Line 841: Line 853:
if (!f.inputVarWin.checked) call += '|win=no\n';
if (!f.inputVarWin.checked) call += '|win=no\n';
call += '}}';
call += '}}<noinclude>\n\n[[Category:BSL variables]]</noinclude>';
hideXEBPopup();
hideXEBPopup();
insertTags('', '', call);
insertTags('', '', call);