MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 1: Line 1:
var customizeToolbar = function() {
var customizeToolbar = function() {


$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
group: 'format',
tools: {
"template": {
label: 'long dash',
type: 'button',
icon: 'http://amwellclear.co.uk/w/images/5/55/Dash.png',
action: {
type: 'encapsulate',
options: {
pre: "—",
post: ""
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
group: 'format',
tools: {
"template": {
label: 'scarequotes',
type: 'button',
icon: 'http://amwellclear.co.uk/w/images/6/65/Quotes.png',
action: {
type: 'encapsulate',
options: {
pre: "“",
post: "”"
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
group: 'format',
tools: {
"template": {
label: 'apostrophe',
type: 'button',
icon: 'http://amwellclear.co.uk/w/images/5/57/Apostrophe.png',
action: {
type: 'encapsulate',
options: {
pre: "’",
post: ""
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
section: 'advanced',
Line 38: Line 92:
}
}
});
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
section: 'advanced',
Line 178: Line 230:
tools: {
tools: {
"template": {
"template": {
label: 'csaanat 95 UK',
label: 'MCAE1995',
type: 'button',
type: 'button',
icon: 'http://amwellclear.co.uk/w/images/6/69/CSA.png',
icon: 'https://jollycontrarian.com/images/b/b3/MCAE1995.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{csaanat|",
pre: "{{Manual|MCAE|1995|",
post: "|1995}}"
post: "|Paragraph||medium}}"
}
}
}
}
Line 196: Line 248:
tools: {
tools: {
"template": {
"template": {
label: 'csaanat VM UK',
label: 'MCAE2016',
type: 'button',
type: 'button',
icon: 'http://amwellclear.co.uk/w/images/6/69/CSA.png',
icon: 'https://jollycontrarian.com/images/7/7d/MCAE2016.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{csaanat|",
pre: "{{Manual|MCAE|2016|",
post: "|2016}}"
post: "|Paragraph||medium}}"
}
}
}
}
Line 214: Line 266:
tools: {
tools: {
"template": {
"template": {
label: 'csaanat VM NY',
label: 'MCAN1994',
type: 'button',
type: 'button',
icon: 'http://amwellclear.co.uk/w/images/6/69/CSA.png',
icon: 'https://jollycontrarian.com/images/4/44/MCAN1994.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{nycsaanat|",
pre: "{{Manual|MCAN|1994|",
post: "|}}"
post: "|Paragraph||medium}}"
}
}
}
}
Line 232: Line 284:
tools: {
tools: {
"template": {
"template": {
label: 'scarequotes',
label: 'MCAN2016',
type: 'button',
type: 'button',
icon: 'http://amwellclear.co.uk/w/images/6/65/Quotes.png',
icon: 'https://jollycontrarian.com/images/2/26/MCAN2016.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "",
pre: "{{Manual|MCAN|2016|",
post: "”"
post: "|Paragraph||medium}}"
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
group: 'format',
tools: {
"template": {
label: 'apostrophe',
type: 'button',
icon: 'http://amwellclear.co.uk/w/images/5/57/Apostrophe.png',
action: {
type: 'encapsulate',
options: {
pre: "’",
post: ""
}
}
}
}
Line 263: Line 297:
}
}
});
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
section: 'advanced',
Line 294: Line 329:
pre: "{{manual|MI|1992|",
pre: "{{manual|MI|1992|",
post: "Section||medium}}"
post: "Section||medium}}"
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
group: 'format',
tools: {
"template": {
label: 'long dash',
type: 'button',
icon: 'http://amwellclear.co.uk/w/images/5/55/Dash.png',
action: {
type: 'encapsulate',
options: {
pre: "—",
post: ""
}
}
}
}