MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 92: Line 92:
}
}
});
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
section: 'advanced',
group: 'format',
group: 'format',
tools: {
tools: {
"redirect": {
"Substitute": {
label: '==>',
label: 'subst:',
type: 'button',
type: 'button',
icon: 'https://jollycontrarian.com/images/9/91/Redirect.png',
icon: 'https://jollycontrarian.com/images/0/03/Sbs.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "#redirect[[",
pre: "{{subst:",
post: "]]"
post: "}}"
}
}
}
}
Line 115: Line 116:
group: 'format',
group: 'format',
tools: {
tools: {
"ISDAprov": {
"redirect": {
label: 'isdaprov',
label: '==>',
type: 'button',
type: 'button',
icon: 'https://jollycontrarian.com/images/5/50/Isd.png',
icon: 'https://jollycontrarian.com/images/9/91/Redirect.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{isdaprov|",
pre: "#redirect[[",
post: "}}"
post: "]]"
}
}
}
}
Line 129: Line 130:
}
}
});
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
section: 'advanced',
group: 'format',
group: 'format',
tools: {
tools: {
"gmslaprov": {
"template": {
label: 'gmslaprov',
label: 'tag',
type: 'button',
type: 'button',
icon: 'https://jollycontrarian.com/images/e/e9/Gms.png',
icon: 'https://jollycontrarian.com/images/7/76/Tag.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{gmslaprov|",
pre: "{{t|",
post: "}}"
post: "}}"
}
}
Line 152: Line 155:
group: 'format',
group: 'format',
tools: {
tools: {
"gmraprov": {
"ISDAprov": {
label: 'grmaprov',
label: 'isdaprov',
type: 'button',
type: 'button',
icon: 'https://jollycontrarian.com/images/4/49/Gmr.png',
icon: 'https://jollycontrarian.com/images/5/50/Isd.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{gmraprov|",
pre: "{{isdaprov|",
post: "}}"
post: "}}"
}
}
Line 166: Line 169:
}
}
});
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
section: 'advanced',
group: 'format',
group: 'format',
tools: {
tools: {
"Substitute": {
"gmslaprov": {
label: 'subst:',
label: 'gmslaprov',
type: 'button',
type: 'button',
icon: 'https://jollycontrarian.com/images/0/03/Sbs.png',
icon: 'https://jollycontrarian.com/images/e/e9/Gms.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{subst:",
pre: "{{gmslaprov|",
post: "}}"
post: "}}"
}
}
Line 190: Line 192:
group: 'format',
group: 'format',
tools: {
tools: {
"Equity Derivs": {
"gmraprov": {
label: 'eqderivprov',
label: 'grmaprov',
type: 'button',
type: 'button',
icon: 'https://jollycontrarian.com/images/c/c3/Eqd.png',
icon: 'https://jollycontrarian.com/images/4/49/Gmr.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{eqderivprov|",
pre: "{{gmraprov|",
post: "}}"
post: "}}"
}
}
Line 204: Line 206:
}
}
});
});


$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
Line 210: Line 211:
group: 'format',
group: 'format',
tools: {
tools: {
"template": {
"Equity Derivs": {
label: 'tag',
label: 'eqderivprov',
type: 'button',
type: 'button',
icon: 'https://jollycontrarian.com/images/7/76/Tag.png',
icon: 'https://jollycontrarian.com/images/c/c3/Eqd.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{t|",
pre: "{{eqderivprov|",
post: "}}"
post: "}}"
}
}
Line 224: Line 225:
}
}
});
});


$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {