MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 134: Line 134:
}
}
});
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
group: 'format',
tools: {
"template": {
label: 'tag',
type: 'button',
icon: 'http://amwellclear.co.uk/w/images/3/30/Template.png',
action: {
type: 'encapsulate',
options: {
pre: "{{tag|",
post: "}}"
}
}
}
}
});
};
};