MediaWiki:Common.js: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 1: | Zeile 1: | ||
var customizeToolbar = function() { | var customizeToolbar = function() { | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
'sections': { ' | 'sections': { 'garetienwiki': { 'type': 'toolbar', 'label': 'KoschWiki' | ||
} } } ); | } } } ); | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
'section': ' | 'section': 'garetienwiki', 'groups': { 'briefspielbuttons': { 'label': 'Briefspiel' | ||
} } } ); | } } } ); | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'garetienwiki', group: 'briefspielbuttons', | ||
tools: { 'briefspielbuttonshaupt': { label: 'Hautpdarsteller ist', type: 'button', icon: '/images/Button_Hauptdarstellerist.png', | tools: { 'briefspielbuttonshaupt': { label: 'Hautpdarsteller ist', type: 'button', icon: '/images/8/88/Button_Hauptdarstellerist.png', | ||
action: { type: 'encapsulate', options: { pre: "Hauptdarsteller ist::" | action: { type: 'encapsulate', options: { pre: "Hauptdarsteller ist::" | ||
} } } } }); | } } } } }); | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'garetienwiki', group: 'briefspielbuttons', | ||
tools: { 'briefspielbuttonsneben': { label: 'Nebendarsteller ist', type: 'button', icon: '/images/Button_Nebendarstellerist.png', | tools: { 'briefspielbuttonsneben': { label: 'Nebendarsteller ist', type: 'button', icon: '/images/a/ab/Button_Nebendarstellerist.png', | ||
action: { type: 'encapsulate', options: { pre: "Nebendarsteller ist::" | action: { type: 'encapsulate', options: { pre: "Nebendarsteller ist::" | ||
} } } } }); | } } } } }); | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'garetienwiki', group: 'briefspielbuttons', | ||
tools: { 'briefspielbuttonsbrief': { label: 'Briefspieltext mit', type: 'button', icon: '/images/Button_Briefspieltextmit.png', | tools: { 'briefspielbuttonsbrief': { label: 'Briefspieltext mit', type: 'button', icon: '/images/3/36/Button_Briefspieltextmit.png', | ||
action: { type: 'encapsulate', options: { pre: "Briefspieltext mit::" | action: { type: 'encapsulate', options: { pre: "Briefspieltext mit::" | ||
} } } } }); | } } } } }); | ||
| Zeile 29: | Zeile 28: | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'garetienwiki', group: 'briefspielbuttons', | ||
tools: { 'briefspielbuttonsorthandl': { label: 'Handlungsort ist', type: 'button', icon: '/images/Button_Handlungsortist.png', | tools: { 'briefspielbuttonsorthandl': { label: 'Handlungsort ist', type: 'button', icon: '/images/5/51/Button_Handlungsortist.png', | ||
action: { type: 'encapsulate', options: { pre: "Handlungsort ist::" | action: { type: 'encapsulate', options: { pre: "Handlungsort ist::" | ||
} } } } }); | } } } } }); | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'garetienwiki', group: 'briefspielbuttons', | ||
tools: { 'briefspielbuttonsortnenn': { label: 'Ortsnennung ist', type: 'button', icon: '/images/Button_Ortsnennungist.png', | tools: { 'briefspielbuttonsortnenn': { label: 'Ortsnennung ist', type: 'button', icon: '/images/6/68/Button_Ortsnennungist.png', | ||
action: { type: 'encapsulate', options: { pre: "Ortsnennung ist::" | action: { type: 'encapsulate', options: { pre: "Ortsnennung ist::" | ||
} } } } }); | } } } } }); | ||
| Zeile 42: | Zeile 41: | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'garetienwiki', group: 'briefspielbuttons', | ||
tools: { ' | tools: { 'briefspielbuttonshaupta': { label: 'Hauptakteure sind', type: 'button', icon: '/images/8/85/Button_Hauptakteuresind.png', | ||
action: { type: 'encapsulate', options: { pre: " | action: { type: 'encapsulate', options: { pre: "Hauptakteure sind::" | ||
} } } } }); | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | |||
section: 'garetienwiki', group: 'briefspielbuttons', | |||
tools: { 'briefspielbuttonsnebena': { label: 'Nebenakteure sind', type: 'button', icon: '/images/c/c2/Button_Nebenakteuresind.png', | |||
action: { type: 'encapsulate', options: { pre: "Nebenakteure sind::" | |||
} } } } }); | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | |||
section: 'garetienwiki', group: 'briefspielbuttons', | |||
tools: { 'briefspielbuttonsakteursn': { label: 'Akteursnennung ist', type: 'button', icon: '/images/e/e9/Button_Akteursnennungist.png', | |||
action: { type: 'encapsulate', options: { pre: "Akteursnennung ist::" | |||
} } } } }); | } } } } }); | ||
} | } | ||
Version vom 8. Mai 2017, 09:26 Uhr
var customizeToolbar = function() {
$('#wpTextbox1').wikiEditor('addToToolbar', {
'sections': { 'garetienwiki': { 'type': 'toolbar', 'label': 'KoschWiki'
} } } );
$('#wpTextbox1').wikiEditor('addToToolbar', {
'section': 'garetienwiki', 'groups': { 'briefspielbuttons': { 'label': 'Briefspiel'
} } } );
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'garetienwiki', group: 'briefspielbuttons',
tools: { 'briefspielbuttonshaupt': { label: 'Hautpdarsteller ist', type: 'button', icon: '/images/8/88/Button_Hauptdarstellerist.png',
action: { type: 'encapsulate', options: { pre: "Hauptdarsteller ist::"
} } } } });
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'garetienwiki', group: 'briefspielbuttons',
tools: { 'briefspielbuttonsneben': { label: 'Nebendarsteller ist', type: 'button', icon: '/images/a/ab/Button_Nebendarstellerist.png',
action: { type: 'encapsulate', options: { pre: "Nebendarsteller ist::"
} } } } });
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'garetienwiki', group: 'briefspielbuttons',
tools: { 'briefspielbuttonsbrief': { label: 'Briefspieltext mit', type: 'button', icon: '/images/3/36/Button_Briefspieltextmit.png',
action: { type: 'encapsulate', options: { pre: "Briefspieltext mit::"
} } } } });
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'garetienwiki', group: 'briefspielbuttons',
tools: { 'briefspielbuttonsorthandl': { label: 'Handlungsort ist', type: 'button', icon: '/images/5/51/Button_Handlungsortist.png',
action: { type: 'encapsulate', options: { pre: "Handlungsort ist::"
} } } } });
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'garetienwiki', group: 'briefspielbuttons',
tools: { 'briefspielbuttonsortnenn': { label: 'Ortsnennung ist', type: 'button', icon: '/images/6/68/Button_Ortsnennungist.png',
action: { type: 'encapsulate', options: { pre: "Ortsnennung ist::"
} } } } });
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'garetienwiki', group: 'briefspielbuttons',
tools: { 'briefspielbuttonshaupta': { label: 'Hauptakteure sind', type: 'button', icon: '/images/8/85/Button_Hauptakteuresind.png',
action: { type: 'encapsulate', options: { pre: "Hauptakteure sind::"
} } } } });
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'garetienwiki', group: 'briefspielbuttons',
tools: { 'briefspielbuttonsnebena': { label: 'Nebenakteure sind', type: 'button', icon: '/images/c/c2/Button_Nebenakteuresind.png',
action: { type: 'encapsulate', options: { pre: "Nebenakteure sind::"
} } } } });
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'garetienwiki', group: 'briefspielbuttons',
tools: { 'briefspielbuttonsakteursn': { label: 'Akteursnennung ist', type: 'button', icon: '/images/e/e9/Button_Akteursnennungist.png',
action: { type: 'encapsulate', options: { pre: "Akteursnennung ist::"
} } } } });
}
if ( $.inArray( mw.config.get( 'wgAction' ), ['edit', 'submit'] ) !== -1 ) {
mw.loader.using( 'user.options', function () {
if ( mw.user.options.get('usebetatoolbar') ) {
mw.loader.using( 'ext.wikiEditor.toolbar', function () {
$(document).ready( customizeToolbar );
} );
}
} );
}