MediaWiki:Common.js: Difference between revisions

m
+ small capitals button
m (+Vertical space)
m (+ small capitals button)
Line 4: Line 4:


/** -pm- WikiEditor additional features **/
/** -pm- WikiEditor additional features **/
/** list of images: https://www.mediawiki.org/wiki/User:24pm/Icons**/
/** list of images: https://www.mediawiki.org/wiki/User:24pm/Icons **/
var customizeToolbar = function () {
var customizeToolbar = function () {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
Line 102: Line 102:
options: {
options: {
pre: "{{Vertical space|",
pre: "{{Vertical space|",
post: "}}"
}
}
},
"small_capitals": {
label: 'Small capitals',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/8/89/Button_bigger.png',
action: {
type: 'encapsulate',
options: {
pre: "{{Style S-Small capitals|",
post: "}}"
post: "}}"
}
}
Line 148: Line 160:
type: 'select',
type: 'select',
list: {
list: {
'Style-S-Small-capitals': {label: 'Small capitals', action: {type: 'encapsulate',
options: {pre: '{{Style S-Small capitals|', post: '}}'} } },
'Style-S-Double-underline': {label: 'Double underline', action: {type: 'encapsulate',
options: {pre: '{{Style S-Double underline|', post: '}}'} } },
'Style-S-Dialog-speaker': {label: 'Dialog speaker', action: {type: 'encapsulate',
'Style-S-Dialog-speaker': {label: 'Dialog speaker', action: {type: 'encapsulate',
options: {pre: '{{Style S-Dialog speaker|', post: '}}'} } },
options: {pre: '{{Style S-Dialog speaker|', post: '}}'} } },