MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 273: Line 273:
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{fullanat|AGMT|CLAUSE|EDITION|CLAUSE|EDITION}}",
pre: "{{fullanat2|AGMT|CLAUSE|EDITION|CLAUSE|EDITION}}",
post: ""
post: ""
}
}
Line 280: Line 280:
}
}
});
});
};
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
group: 'format',
tools: {
"template": {
label: 'FullAnatOpen',
type: 'button',
icon: 'http://amwellclear.co.uk/w/images/2/22/Vector_toolbar_bold_F2_button.png',
action: {
type: 'encapsulate',
options: {
pre: "{{fullanatopen|AGMT|{{AGMTquote|CLAUSE}}<br>{{AGMTquote|CLAUSE}}}}",
post: ""
}
}
}
}
});};