MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 268: Line 268:
tools: {
tools: {
"template": {
"template": {
label: 'flannel',
label: 'MI2002',
type: 'button',
type: 'button',
icon: 'http://amwellclear.co.uk/w/images/c/c5/Flannel.png',
icon: 'http://amwellclear.co.uk/w/images/c/c5/Flannel.png',
Line 274: Line 274:
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{f|",
pre: "{{manual|MI|2002|",
post: "}}"
post: "Section||medium}}"
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
group: 'format',
tools: {
"template": {
label: 'MI1992',
type: 'button',
icon: 'http://amwellclear.co.uk/w/images/c/c5/Flannel.png',
action: {
type: 'encapsulate',
options: {
pre: "{{manual|MI|1992|",
post: "Section||medium}}"
}
}
}
}