Użytkownik:Michał56/common.js: Różnice pomiędzy wersjami
Z Nonsensopedii, polskiej encyklopedii humoru
M Znacznik: edytor źródłowy |
M Znacznik: edytor źródłowy |
||
Linia 1: | Linia 1: | ||
//importy |
//importy |
||
importScript('User:Michał56/ostatnie zmiany.js'); |
importScript('User:Michał56/ostatnie zmiany.js'); |
||
importScript('User:Michał56/przyciski.js'); |
|||
importScript('User:Expert3222/RollbackAll.js'); |
importScript('User:Expert3222/RollbackAll.js'); |
||
importScript('User:Michał56/golab pocztowy.js'); |
importScript('User:Michał56/golab pocztowy.js'); |
||
Linia 9: | Linia 8: | ||
importScript('MediaWiki:Gadget-ReferencePopups.js'); |
importScript('MediaWiki:Gadget-ReferencePopups.js'); |
||
importScript('MediaWiki:Gadget-AutoEd.js'); |
importScript('MediaWiki:Gadget-AutoEd.js'); |
||
//dodatkowe przyciski w edytorze |
|||
if (typeof (mwCustomEditButtons) != 'undefined') { |
|||
mwCustomEditButtons[mwCustomEditButtons.length] = { |
|||
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/2/26/Button_latinas.png", |
|||
"speedTip": "Wstaw polskie cudzysłowy", |
|||
"tagOpen": "„", |
|||
"tagClose": "”", |
|||
"sampleText": "" |
|||
}; |
|||
mwCustomEditButtons[mwCustomEditButtons.length] = { |
|||
"imageFile": "https://upload.wikimedia.org/wikipedia/commons/3/3f/Button_headline_-_2.png", |
|||
"speedTip": "Wstaw półpauzę", |
|||
"tagOpen": "–", |
|||
"tagClose": "", |
|||
"sampleText": "" |
|||
}; |
|||
} |
|||
//fast delete buttons |
|||
window.fdButtons = []; |
|||
window.fdButtons.push( |
|||
{ |
|||
summary: '[[Nonsensopedia:Bo tak|Bo tak]]', |
|||
label: 'Bo tak' |
|||
}, |
|||
{ |
|||
summary: '[[Nonsensopedia:Wandalizm|Wandalizm]]', |
|||
label: 'Wandalizm' |
|||
}, |
|||
{ |
|||
summary: '[[Nonsensopedia:Prywata|Prywata]]', |
|||
label: 'Prywata' |
|||
} |
|||
); |
|||
importArticles( { |
|||
type: 'script', |
|||
articles: [ |
|||
// ... |
|||
'u:dev:FastDelete/code.js', |
|||
// ... |
|||
] |
|||
} ); |
Wersja z 00:22, 25 sty 2016
//importy
importScript('User:Michał56/ostatnie zmiany.js');
importScript('User:Expert3222/RollbackAll.js');
importScript('User:Michał56/golab pocztowy.js');
importScript('MediaWiki:Gadget-HotCat.js');
importScript('MediaWiki:Gadget-myNotepad.js');
importScript('MediaWiki:Gadget-AjaxRC.js');
importScript('MediaWiki:Gadget-ReferencePopups.js');
importScript('MediaWiki:Gadget-AutoEd.js');
//dodatkowe przyciski w edytorze
if (typeof (mwCustomEditButtons) != 'undefined') {
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/2/26/Button_latinas.png",
"speedTip": "Wstaw polskie cudzysłowy",
"tagOpen": "„",
"tagClose": "”",
"sampleText": ""
};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "https://upload.wikimedia.org/wikipedia/commons/3/3f/Button_headline_-_2.png",
"speedTip": "Wstaw półpauzę",
"tagOpen": "–",
"tagClose": "",
"sampleText": ""
};
}
//fast delete buttons
window.fdButtons = [];
window.fdButtons.push(
{
summary: '[[Nonsensopedia:Bo tak|Bo tak]]',
label: 'Bo tak'
},
{
summary: '[[Nonsensopedia:Wandalizm|Wandalizm]]',
label: 'Wandalizm'
},
{
summary: '[[Nonsensopedia:Prywata|Prywata]]',
label: 'Prywata'
}
);
importArticles( {
type: 'script',
articles: [
// ...
'u:dev:FastDelete/code.js',
// ...
]
} );