MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 224: Line 224:
}
}
});
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
section: 'advanced',
Line 230: Line 229:
tools: {
tools: {
"template": {
"template": {
label: 'MCAE1995',
label: 'MI2002',
type: 'button',
type: 'button',
icon: 'https://jollycontrarian.com/images/b/b3/MCAE1995.png',
icon: 'https://jollycontrarian.com/images/c/c2/MI2002.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{Manual|MCAE|1995|",
pre: "{{manual|MI|2002|",
post: "|Paragraph||medium}}"
post: "Section||medium}}"
}
}
}
}
}
}
}
}
});
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
section: 'advanced',
Line 248: Line 247:
tools: {
tools: {
"template": {
"template": {
label: 'MCAE2016',
label: 'MI1992',
type: 'button',
type: 'button',
icon: 'https://jollycontrarian.com/images/7/7d/MCAE2016.png',
icon: 'https://jollycontrarian.com/images/8/83/MI1992.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{Manual|MCAE|2016|",
pre: "{{manual|MI|1992|",
post: "|Paragraph||medium}}"
post: "Section||medium}}"
}
}
}
}
}
}
}
}
});
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
section: 'advanced',
Line 266: Line 265:
tools: {
tools: {
"template": {
"template": {
label: 'MCAN1994',
label: 'MCAE1995',
type: 'button',
type: 'button',
icon: 'https://jollycontrarian.com/images/4/44/MCAN1994.png',
icon: 'https://jollycontrarian.com/images/b/b3/MCAE1995.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{Manual|MCAN|1994|",
pre: "{{Manual|MCAE|1995|",
post: "|Paragraph||medium}}"
post: "|Paragraph||medium}}"
}
}
Line 284: Line 283:
tools: {
tools: {
"template": {
"template": {
label: 'MCAN2016',
label: 'MCAE2016',
type: 'button',
type: 'button',
icon: 'https://jollycontrarian.com/images/2/26/MCAN2016.png',
icon: 'https://jollycontrarian.com/images/7/7d/MCAE2016.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{Manual|MCAN|2016|",
pre: "{{Manual|MCAE|2016|",
post: "|Paragraph||medium}}"
post: "|Paragraph||medium}}"
}
}
Line 297: Line 296:
}
}
});
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
section: 'advanced',
Line 303: Line 301:
tools: {
tools: {
"template": {
"template": {
label: 'MI2002',
label: 'MCAN1994',
type: 'button',
type: 'button',
icon: 'https://jollycontrarian.com/images/c/c2/MI2002.png',
icon: 'https://jollycontrarian.com/images/4/44/MCAN1994.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{manual|MI|2002|",
pre: "{{Manual|MCAN|1994|",
post: "Section||medium}}"
post: "|Paragraph||medium}}"
}
}
}
}
}
}
}
}
});
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
section: 'advanced',
Line 321: Line 319:
tools: {
tools: {
"template": {
"template": {
label: 'MI1992',
label: 'MCAN2016',
type: 'button',
type: 'button',
icon: 'https://jollycontrarian.com/images/8/83/MI1992.png',
icon: 'https://jollycontrarian.com/images/2/26/MCAN2016.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{manual|MI|1992|",
pre: "{{Manual|MCAN|2016|",
post: "Section||medium}}"
post: "|Paragraph||medium}}"
}
}
}
}
}
}
}
}
});
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
section: 'advanced',
Line 346: Line 344:
options: {
options: {
pre: "{{fullanat|AGMT|CLAUSE|EDITION}}",
pre: "{{fullanat|AGMT|CLAUSE|EDITION}}",
post: ""
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
group: 'format',
tools: {
"template": {
label: 'FullAnat2',
type: 'button',
icon: 'http://amwellclear.co.uk/w/images/2/22/Vector_toolbar_bold_F2_button.png',
action: {
type: 'encapsulate',
options: {
pre: "{{fullanat2|AGMT|CLAUSE|EDITION|CLAUSE|EDITION}}",
post: ""
}
}
}
}
});
$('#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|AGMT|YEAR|CLAUSE}}<br>{{AGMTquote|AGMT|YEAR|CLAUSE}}}}",
post: ""
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
group: 'format',
tools: {
"template": {
label: 'isdaanat',
type: 'button',
icon: 'http://amwellclear.co.uk/w/images/e/ed/Button_I.PNG',
action: {
type: 'encapsulate',
options: {
pre: "{{isdaanat|CLAUSE}}",
post: ""
post: ""
}
}