Redaktor:Ajrocket1/common.js
Poznámka: Aby sa zmeny prejavili, po uložení musíte vymazať vyrovnávaciu pamäť vášho prehliadača. Mozilla / Firefox / Safari: držte stlačený Shift a kliknite na Reload alebo stlačte buď Ctrl-F5 alebo Ctrl-R (Command-R na Macintosh); Konqueror:: kliknite na tlačidlo Reload alebo stlačte F5; Opera vymazať vyrovnávaciu pamäť prehliadača v ponuke Tools→Preferences; Internet Explorer: držte Ctrl a kliknite na Refresh alebo stlačte Ctrl-F5;
// <nowiki>
// Tlačítka dle https://www.mediawiki.org/wiki/Manual:Custom_edit_buttons
mw.loader.using('user.options', function() {
if(mw.user.options.get('usebetatoolbar')) {
mw.loader.using('ext.wikiEditor', function() {
$(function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'advanced',
group: 'insert',
tools: {
buttonId: {
label: 'Nadpis aktuálního měsíce a roku',
type: 'button',
icon: 'https://upload.wikimedia.org/wikipedia/commons/8/80/Button_exclamation_mark.png',
action: {
type: 'encapsulate',
options: {
pre: '',
peri: '== \x7b\x7bsubst:UCFIRST:\x7b\x7bsubst:CURRENTMONTHNAME}}}} \x7b\x7bsubst:CURRENTYEAR}}==',
post: ''
}
}
}
}
});
});
});
}
});
mw.loader.using('user.options', function() {
if(mw.user.options.get('usebetatoolbar')) {
mw.loader.using('ext.wikiEditor', function() {
$(function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'advanced',
group: 'format',
tools: {
buttonId: {
label: 'Experimenty0',
type: 'button',
icon: '//urbanecmbot.toolforge.org/exps/E0.jpg',
action: {
type: 'encapsulate',
options: {
pre: '',
peri: '{{E0}} --~~~~',
post: ''
}
}
}
}
});
});
});
}
});
mw.loader.using('user.options', function() {
if(mw.user.options.get('usebetatoolbar')) {
mw.loader.using('ext.wikiEditor', function() {
$(function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'advanced',
group: 'format',
tools: {
buttonId: {
label: 'Experimenty0B',
type: 'button',
icon: '//urbanecmbot.toolforge.org/exps/E0B.jpg',
action: {
type: 'encapsulate',
options: {
pre: '',
peri: '{{E0B}} --~~~~',
post: ''
}
}
}
}
});
});
});
}
});
mw.loader.using('user.options', function() {
if(mw.user.options.get('usebetatoolbar')) {
mw.loader.using('ext.wikiEditor', function() {
$(function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'advanced',
group: 'format',
tools: {
buttonId: {
label: 'Experimenty',
type: 'button',
icon: '//urbanecmbot.toolforge.org/exps/E1.jpg',
action: {
type: 'encapsulate',
options: {
pre: '',
peri: '{{E1}} --~~~~',
post: ''
}
}
}
}
});
});
});
}
});
mw.loader.using('user.options', function() {
if(mw.user.options.get('usebetatoolbar')) {
mw.loader.using('ext.wikiEditor', function() {
$(function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'advanced',
group: 'format',
tools: {
buttonId: {
label: 'Experimenty2',
type: 'button',
icon: '//urbanecmbot.toolforge.org/exps/E2.jpg',
action: {
type: 'encapsulate',
options: {
pre: '',
peri: '{{E2}} --~~~~',
post: ''
}
}
}
}
});
});
});
}
});
mw.loader.using('user.options', function() {
if(mw.user.options.get('usebetatoolbar')) {
mw.loader.using('ext.wikiEditor', function() {
$(function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'advanced',
group: 'format',
tools: {
buttonId: {
label: 'Experimenty3',
type: 'button',
icon: '//urbanecmbot.toolforge.org/exps/E3.jpg',
action: {
type: 'encapsulate',
options: {
pre: '',
peri: '{{E3}} --~~~~',
post: ''
}
}
}
}
});
});
});
}
});
mw.loader.using('user.options', function() {
if(mw.user.options.get('usebetatoolbar')) {
mw.loader.using('ext.wikiEditor', function() {
$(function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'advanced',
group: 'format',
tools: {
buttonId: {
label: 'Experimenty0',
type: 'button',
icon: '//urbanecmbot.toolforge.org/exps/S1.jpg',
action: {
type: 'encapsulate',
options: {
pre: '',
peri: '{{Šablóna:Zhrnutie}} --~~~~',
post: ''
}
}
}
}
});
});
});
}
});
mw.loader.using('user.options', function() {
if(mw.user.options.get('usebetatoolbar')) {
mw.loader.using('ext.wikiEditor', function() {
$(function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'advanced',
group: 'format',
tools: {
buttonId: {
label: 'Vítejte',
type: 'button',
icon: '//urbanecmbot.toolforge.org/exps/VTI.jpg',
action: {
type: 'encapsulate',
options: {
pre: '',
peri: '{{Vitajte}} --~~~~',
post: ''
}
}
}
}
});
});
});
}
});
mw.loader.using('user.options', function() {
if(mw.user.options.get('usebetatoolbar')) {
mw.loader.using('ext.wikiEditor', function() {
$(function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'advanced',
group: 'format',
tools: {
buttonId: {
label: 'Pahýl',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/c/c4/PAH_icon.png',
action: {
type: 'encapsulate',
options: {
pre: '',
peri: '{{Výhonok}}',
post: ''
}
}
}
}
});
});
});
}
});
mw.loader.using('user.options', function() {
if(mw.user.options.get('usebetatoolbar')) {
mw.loader.using('ext.wikiEditor', function() {
$(function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'advanced',
group: 'format',
tools: {
buttonId: {
label: 'Smazat',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/c/cd/SMZ_icon.png',
action: {
type: 'encapsulate',
options: {
pre: '',
peri: '{{Zmazať lebo}}',
post: ''
}
}
}
}
});
});
});
}
});
mw.loader.using('user.options', function() {
if(mw.user.options.get('usebetatoolbar')) {
mw.loader.using('ext.wikiEditor', function() {
$(function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'advanced',
group: 'format',
tools: {
buttonId: {
label: 'Urgentně upravit',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/6/69/UU_icon.png',
action: {
type: 'encapsulate',
options: {
pre: '',
peri: '{{Urgentne upraviť}}',
post: ''
}
}
}
}
});
});
});
}
});
mw.loader.using('user.options', function() {
if(mw.user.options.get('usebetatoolbar')) {
mw.loader.using('ext.wikiEditor', function() {
$(function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'advanced',
group: 'format',
tools: {
buttonId: {
label: 'Upravit',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/4/4d/U_icon.png',
action: {
type: 'encapsulate',
options: {
pre: '',
peri: '{{Na úpravu}}',
post: ''
}
}
}
}
});
});
});
}
});
mw.loader.using('user.options', function() {
if(mw.user.options.get('usebetatoolbar')) {
mw.loader.using('ext.wikiEditor', function() {
$(function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'advanced',
group: 'format',
tools: {
buttonId: {
label: 'Kategorizovat do článku',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/6/6b/KT1_icon.png',
action: {
type: 'encapsulate',
options: {
pre: '',
peri: '{{Kategorizovať}}',
post: ''
}
}
}
}
});
});
});
}
});
mw.loader.using('user.options', function() {
if(mw.user.options.get('usebetatoolbar')) {
mw.loader.using('ext.wikiEditor', function() {
$(function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'advanced',
group: 'format',
tools: {
buttonId: {
label: 'Významnost do článku',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/e/ec/VÝZ_icon.png',
action: {
type: 'encapsulate',
options: {
pre: '',
peri: '{{Významnosť}}',
post: ''
}
}
}
}
});
});
});
}
});
mw.loader.using('user.options', function() {
if(mw.user.options.get('usebetatoolbar')) {
mw.loader.using('ext.wikiEditor', function() {
$(function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'advanced',
group: 'format',
tools: {
buttonId: {
label: 'Významnost na diskusi',
type: 'button',
icon: '//urbanecmbot.toolforge.org/exps/NEV.jpg',
action: {
type: 'encapsulate',
options: {
pre: '',
peri: '{{subst:nevýznamné}} --~~~~',
post: ''
}
}
}
}
});
});
});
}
});
mw.loader.using('user.options', function() {
if(mw.user.options.get('usebetatoolbar')) {
mw.loader.using('ext.wikiEditor', function() {
$(function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'advanced',
group: 'format',
tools: {
buttonId: {
label: 'Překlad z Nucleopedie',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/1/13/NUC_icon.png',
action: {
type: 'encapsulate',
options: {
pre: '',
peri: '{{Nucleopedia | článek =název článku | revize =číslo editace }}',
post: ''
}
}
}
}
});
});
});
}
});
// </nowiki>