MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(14 intermediate revisions by the same user not shown)
Line 68: Line 68:
pre: "’",
pre: "’",
post: ""
post: ""
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
group: 'format',
tools: {
"template": {
label: '{{ - }}',
type: 'button',
icon: 'https://jollycontrarian.com/images/3/30/Template.png',
action: {
type: 'encapsulate',
options: {
pre: "{{",
post: "}}"
}
}
}
}
Line 73: 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 96: 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 110: 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 133: Line 155:
group: 'format',
group: 'format',
tools: {
tools: {
"gmraprov": {
"Prov": {
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 146: Line 168:
}
}
}
}
});
});


$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
Line 152: Line 174:
group: 'format',
group: 'format',
tools: {
tools: {
"Substitute": {
"Prov": {
label: 'subst:',
label: 'euaprov',
type: 'button',
type: 'button',
icon: 'https://jollycontrarian.com/images/0/03/Sbs.png',
icon: 'https://jollycontrarian.com/images/5/50/eua.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{subst:",
pre: "{{euaprov|",
post: "}}"
post: "}}"
}
}
Line 166: Line 188:
}
}
});
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
section: 'advanced',
group: 'format',
group: 'format',
tools: {
tools: {
"Equity Derivs": {
"ietaprov": {
label: 'eqderivprov',
label: 'ietaprov',
type: 'button',
type: 'button',
icon: 'https://jollycontrarian.com/images/c/c3/Eqd.png',
icon: 'https://jollycontrarian.com/images/e/e9/Gms.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{eqderivprov|",
pre: "{{ietaprov|",
post: "}}"
post: "}}"
}
}
Line 190: Line 211:
group: 'format',
group: 'format',
tools: {
tools: {
"template": {
"gmraprov": {
label: '{{ - }}',
label: '{{{1}}}|',
type: 'button',
type: 'button',
icon: 'https://jollycontrarian.com/images/3/30/Template.png',
icon: 'https://jollycontrarian.com/images/4/49/blank.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{",
pre: "{{{{{1}}}|",
post: "}}"
post: "}}"
}
}
Line 209: Line 230:
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 223: Line 244:
}
}
});
});


$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
Line 229: Line 251:
tools: {
tools: {
"template": {
"template": {
label: 'csaprov',
label: 'vmcsaprov',
type: 'button',
type: 'button',
icon: 'https://jollycontrarian.com/images/3/37/Csa.png',
icon: 'https://jollycontrarian.com/images/3/37/Csa.png',
Line 235: Line 257:
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{csaprov|",
pre: "{{vmcsaprov|",
post: "}}"
post: "}}"
}
}
Line 254: Line 276:
options: {
options: {
pre: "{{fwmdtt|nickname=",
pre: "{{fwmdtt|nickname=",
post: "|title=|tagline=|documentation=|booklets=|customisability=|asset classes=|amendability=|transferability=|tenor=|leverage=|collateral=|longevity=|frightometer=}}"
post: "| imagetype=png| tagline= | documentation= | docscore=0| amendability= |amendscore=0| collateral= | collateralscore =0| transferability= | transferscore =0| leverage= | leveragescore =0| frightometer= | frightscore=0}}"
}
}
}
}
Line 283: Line 305:
tools: {
tools: {
"template": {
"template": {
label: 'confiprov',
label: 'cddprov',
type: 'button',
type: 'button',
icon: 'https://jollycontrarian.com/images/e/ec/Cp.png',
icon: 'https://jollycontrarian.com/images/e/ec/Cp.png',
Line 289: Line 311:
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{confiprov|",
pre: "{{cddprov|",
post: "}}"
post: "}}"
}
}
Line 355: Line 377:
tools: {
tools: {
"template": {
"template": {
label: '{{aifmdprov|}}',
label: '{{strike|}}',
type: 'button',
type: 'button',
icon: 'https://jollycontrarian.com/images/8/83/Aif.PNG',
icon: 'https://jollycontrarian.com/images/8/83/Aif.PNG',
Line 361: Line 383:
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{aifmdprov|",
pre: "{{strike|",
post: "}}"
post: "|}}"
}
}
}
}
Line 369: Line 391:
});
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'manual',
section: 'advanced',
group: 'tags',
group: 'tags',
tools: {
tools: {
"template": {
"template": {
label: 'MI2002',
label: 'isdamanual',
type: 'button',
type: 'button',
icon: 'https://jollycontrarian.com/images/c/c2/MI2002.png',
icon: 'https://jollycontrarian.com/images/c/c2/MI2002.png',
Line 379: Line 401:
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{manual|MI|2002|",
pre: "{{isdamanual|",
post: "|Section||medium}}"
post: "}}"
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'manual',
group: 'tags',
tools: {
"template": {
label: 'MI1992',
type: 'button',
icon: 'https://jollycontrarian.com/images/8/83/MI1992.png',
action: {
type: 'encapsulate',
options: {
pre: "{{manual|MI|1992|",
post: "|Section||medium}}"
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'manual',
group: 'tags',
tools: {
"template": {
label: 'MCAE1995',
type: 'button',
icon: 'https://jollycontrarian.com/images/b/b3/MCAE1995.png',
action: {
type: 'encapsulate',
options: {
pre: "{{Manual|MCAE|1995|",
post: "|Paragraph||medium}}"
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'manual',
group: 'tags',
tools: {
"template": {
label: 'MCAE2016',
type: 'button',
icon: 'https://jollycontrarian.com/images/7/7d/MCAE2016.png',
action: {
type: 'encapsulate',
options: {
pre: "{{Manual|MCAE|2016|",
post: "|Paragraph||medium}}"
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'manual',
group: 'tags',
tools: {
"template": {
label: 'MCAN1994',
type: 'button',
icon: 'https://jollycontrarian.com/images/4/44/MCAN1994.png',
action: {
type: 'encapsulate',
options: {
pre: "{{Manual|MCAN|1994|",
post: "|Paragraph||medium}}"
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'manual',
group: 'tags',
tools: {
"template": {
label: 'MCAN2016',
type: 'button',
icon: 'https://jollycontrarian.com/images/2/26/MCAN2016.png',
action: {
type: 'encapsulate',
options: {
pre: "{{Manual|MCAN|2016|",
post: "|Paragraph||medium}}"
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'manual',
group: 'tags',
tools: {
"template": {
label: 'MSG2010',
type: 'button',
icon: 'https://jollycontrarian.com/images/2/26/MCAN2016.png',
action: {
type: 'encapsulate',
options: {
pre: "{{Manual|MSG|2010|",
post: "|Clause||medium}}"
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'manual',
group: 'tags',
tools: {
"template": {
label: 'MRG2000',
type: 'button',
icon: 'https://jollycontrarian.com/images/2/26/MCAN2016.png',
action: {
type: 'encapsulate',
options: {
pre: "{{Manual|MRG|2000|",
post: "|Paragraph||medium}}"
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'manual',
group: 'tags',
tools: {
"template": {
label: 'MCAN2016',
type: 'button',
icon: 'https://jollycontrarian.com/images/2/26/MCAN2016.png',
action: {
type: 'encapsulate',
options: {
pre: "{{Manual|DEQ|2002|",
post: "|Section||medium}}"
}
}
}
}