MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 1: Line 1:
var customizeToolbar = function() {
var customizeToolbar = function() {
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
section: 'advanced',
group: 'format',
group: 'format',
tools: {
tools: {
"ISDAprov": {
"redirect": {
label: 'isdaprov',
label: '==>',
type: 'button',
type: 'button',
icon: 'http://amwellclear.co.uk/w/images/e/ed/Button_I.PNG',
icon: 'http://amwellclear.co.uk/w/images/9/91/Redirect.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{isdaprov|",
pre: "#redirect[[",
post: "}}"
post: "]]"
}
}
}
}
Line 23: Line 24:
group: 'format',
group: 'format',
tools: {
tools: {
"redirect": {
"ISDAprov": {
label: '==>',
label: 'isdaprov',
type: 'button',
type: 'button',
icon: 'http://amwellclear.co.uk/w/images/f/f7/redirect.png',
icon: 'http://amwellclear.co.uk/w/images/e/ed/Button_I.PNG',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "#redirect[[",
pre: "{{isdaprov|",
post: "]]"
post: "}}"
}
}
}
}
Line 37: Line 38:
}
}
});
});




Navigation menu