מדיה ויקי:Gadget-TemplateParamWizard.js: הבדלים בין גרסאות בדף
כתיבת כל השדות באופן בלתי מותנה. |
←using [[mw:CodeEditor|CodeEditor]]: צריך גם לבדוק שנתמך. |
||
| שורה 11: | שורה 11: | ||
//// depends: another field's name | //// depends: another field's name | ||
//// required: boolean | //// required: boolean | ||
////choices: array of legal values for the field | //// choices: array of legal values for the field | ||
// templateParams is keyed by paramName. | // templateParams is keyed by paramName. | ||
var templateParams, | var templateParams, | ||
| שורה 389: | שורה 389: | ||
setTimeout(function() { | setTimeout(function() { | ||
var buttonImage = '//upload.wikimedia.org/wikipedia/commons/e/eb/Button_plantilla.png'; | var buttonImage = '//upload.wikimedia.org/wikipedia/commons/e/eb/Button_plantilla.png'; | ||
if (typeof $.wikiEditor | if (typeof $.wikiEditor == 'object' && $.wikiEditor.supported) | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'advanced', | section: 'advanced', | ||