/** * Dodaj przyciski do końca paska narzędzi */ function addCustomButton(imageFile, speedTip, tagOpen, tagClose, sampleText, imageId) { mwCustomEditButtons[mwCustomEditButtons.length] = {"imageId": imageId, "imageFile": imageFile, "speedTip": speedTip, "tagOpen": tagOpen, "tagClose": tagClose, "sampleText": sampleText}; } if ( (mw.config.get('wgAction') == 'edit' || mw.config.get('wgAction') == 'submit') && (mw.config.get('wgNamespaceNumber') > -1)) { /** * Générateur de tableaux * English: Generate an array using Mediawiki syntax * * @author: fr:user:dake * @version: 0.2 */ function generateTableau(nbCol, nbRow, styleHeader) { var code = "\n{| " + ((styleHeader==1) ? 'class="wikitable"' : '')+ '\n|+ Tytuł tabeli\n'; for (var i=0; iParametry tworzonej tabeli'); popup.document.write(javaCode); popup.document.write('