MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 236: Line 236:
options: {
options: {
pre: "{{manual|MI|2002|",
pre: "{{manual|MI|2002|",
post: "Section||medium}}"
post: "|Section||medium}}"
}
}
}
}
Line 254: Line 254:
options: {
options: {
pre: "{{manual|MI|1992|",
pre: "{{manual|MI|1992|",
post: "Section||medium}}"
post: "|Section||medium}}"
}
}
}
}
Line 332: Line 332:
}
}
});
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
group: 'format',
tools: {
"template": {
label: 'FullAnat',
type: 'button',
icon: 'http://amwellclear.co.uk/w/images/3/3c/Vector_toolbar_bold_F_button.png',
action: {
type: 'encapsulate',
options: {
pre: "{{fullanat|AGMT|CLAUSE|EDITION}}",
post: ""
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
section: 'advanced',