Bureaucrats, Interface administrators, Administrators (Semantic MediaWiki), Curators (Semantic MediaWiki), Editors (Semantic MediaWiki), Suppressors, Administrators, trusted
11,022
edits
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-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: '}}'} } }, |