MediaWiki:Common.js
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
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', { section: 'advanced', group: 'format', tools: { "redirect": { label: '==>', type: 'button', icon: 'http://amwellclear.co.uk/w/images/9/91/Redirect.png', action: { type: 'encapsulate', options: { pre: "#redirect[[", post: "]]" } } } } });
$('#wpTextbox1').wikiEditor('addToToolbar', { section: 'advanced', group: 'format', tools: { "ISDAprov": { label: 'isdaprov', type: 'button', icon: 'http://amwellclear.co.uk/w/images/e/ed/Button_I.PNG', action: { type: 'encapsulate', options: { pre: "[[", post: " - ISDA Provision|", post: "]]" } } } } }); $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'advanced', group: 'format', tools: { "gmslaprov": { label: 'gmslaprov', type: 'button', icon: 'http://amwellclear.co.uk/w/images/f/f7/G.png', action: { type: 'encapsulate', options: { pre: "[[", post: " - GMSLA Provision|", post: "]]" } } } } });
$('#wpTextbox1').wikiEditor('addToToolbar', { section: 'advanced', group: 'format', tools: { "gmraprov": { label: 'grmaprov', type: 'button', icon: 'http://amwellclear.co.uk/w/images/4/49/Gmr.png', action: { type: 'encapsulate', options: { pre: "[[", post: " - GMRA Provision|", post: "]]" } } } } });
$('#wpTextbox1').wikiEditor('addToToolbar', { section: 'advanced', group: 'format', tools: { "Substitute": { label: 'subst:', type: 'button', icon: 'http://amwellclear.co.uk/w/images/0/03/Sbs.png', action: { type: 'encapsulate', options: { pre: "{{subst:", post: "}}" } } } } });
$('#wpTextbox1').wikiEditor('addToToolbar', { section: 'advanced', group: 'format', tools: { "Equity Derivs": { label: 'eqderivprov', type: 'button', icon: 'http://amwellclear.co.uk/w/images/1/1a/Eq.png', action: { type: 'encapsulate', options: { pre: "[[", post: " - Equity Derivatives Provision|", post: "]]" } } } } });
$('#wpTextbox1').wikiEditor('addToToolbar', { section: 'advanced', group: 'format', tools: { "template": { label: 'Template:-', type: 'button', icon: 'http://amwellclear.co.uk/w/images/3/30/Template.png', action: { type: 'encapsulate', options: { pre: "{{", post: "}}" } } } } });
$('#wpTextbox1').wikiEditor('addToToolbar', { section: 'advanced', group: 'format', tools: { "template": { label: 'tag', type: 'button', icon: 'http://amwellclear.co.uk/w/images/7/7d/Tag2.png', action: { type: 'encapsulate', options: { pre: "[[", post: "]]" } } } } });
$('#wpTextbox1').wikiEditor('addToToolbar', { section: 'advanced', group: 'format', tools: { "template": { label: 'csaprov', type: 'button', icon: 'http://amwellclear.co.uk/w/images/6/69/CSA.png', action: { type: 'encapsulate', options: { pre: "[[", post: " - CSA Provision|", post: "]]" } } } } }); $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'advanced', group: 'format', tools: { "template": { label: 'MI2002', type: 'button', icon: 'https://jollycontrarian.com/images/c/c2/MI2002.png', action: { type: 'encapsulate', options: { pre: "
2002 ISDA Master Agreement
Section ", post: " in a Nutshell™ Use at your own risk, campers!
Full text of Section ", post: "
Related agreements and comparisons
|
Content and comparisons
{{m comp disc 2002 ISDA ", post: " |{{ {{{2}}}prov}} }}
Summary
{{m summ 2002 ISDA ", post: " }}
General discussion
{{m gen 2002 ISDA ", post: "|{{{7}}} }}
See also
{{m sa 2002 ISDA ", post: "}}
References
"
} } } } }); $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'advanced', group: 'format', tools: { "template": { label: 'MI1992', type: 'button', icon: 'https://jollycontrarian.com/images/8/83/MI1992.png', action: { type: 'encapsulate', options: { pre: "
1992 ISDA Master Agreement
Section ", post: " in a Nutshell™ Use at your own risk, campers!
Full text of Section ", post: "
Related agreements and comparisons
|
Content and comparisons
{{m comp disc 1992 ISDA ", post: " |{{ {{{2}}}prov}} }}
Summary
{{m summ 1992 ISDA ", post: " }}
General discussion
{{m gen 1992 ISDA ", post: "|{{{7}}} }}
See also
{{m sa 1992 ISDA ", post: "}}
References
"
} } } } }); $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'advanced', group: 'format', tools: { "template": { label: 'MCAE1995', type: 'button', icon: 'https://jollycontrarian.com/images/b/b3/MCAE1995.png', action: { type: 'encapsulate', options: { pre: "
1995 ISDA Credit Support Annex (English Law)
Paragraph ", post: " in a Nutshell™ Use at your own risk, campers!
Full text of Paragraph ", post: "
|
Content and comparisons
{{m comp disc 1995 CSA ", post: " |{{ {{{2}}}prov}} }}
Summary
{{m summ 1995 CSA ", post: " }}
General discussion
{{m gen 1995 CSA ", post: "|{{{7}}} }}
See also
{{m sa 1995 CSA ", post: "}}
References
"
} } } } }); $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'advanced', group: 'format', tools: { "template": { label: 'MCAE2016', type: 'button', icon: 'https://jollycontrarian.com/images/7/7d/MCAE2016.png', action: { type: 'encapsulate', options: { pre: "
2016 ISDA Credit Support Annex (VM) (English law)
Paragraph ", post: " in a Nutshell™ Use at your own risk, campers!
Full text of Paragraph ", post: "
|
Content and comparisons
{{m comp disc 2016 CSA ", post: " |{{ {{{2}}}prov}} }}
Summary
{{m summ 2016 CSA ", post: " }}
General discussion
{{m gen 2016 CSA ", post: "|{{{7}}} }}
See also
{{m sa 2016 CSA ", post: "}}
References
"
} } } } }); $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'advanced', group: 'format', tools: { "template": { label: 'MCAN1994', type: 'button', icon: 'https://jollycontrarian.com/images/4/44/MCAN1994.png', action: { type: 'encapsulate', options: { pre: "
1994 ISDA Credit Support Annex (New York law)
Paragraph ", post: " in a Nutshell™ Use at your own risk, campers!
Full text of Paragraph ", post: "
Related agreements and comparisons
|
Content and comparisons
{{m comp disc 1994 NY CSA ", post: " |{{ {{{2}}}prov}} }}
Summary
{{m summ 1994 NY CSA ", post: " }}
General discussion
{{m gen 1994 NY CSA ", post: "|{{{7}}} }}
See also
{{m sa 1994 NY CSA ", post: "}}
References
"
} } } } }); $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'advanced', group: 'format', tools: { "template": { label: 'MCAN2016', type: 'button', icon: 'https://jollycontrarian.com/images/2/26/MCAN2016.png', action: { type: 'encapsulate', options: { pre: "
2016 ISDA Credit Support Annex (VM) (New York law)
Paragraph ", post: " in a Nutshell™ Use at your own risk, campers!
Full text of Paragraph ", post: "
Related agreements and comparisons
|
Content and comparisons
{{m comp disc 2016 NY CSA ", post: " |{{ {{{2}}}prov}} }}
Summary
{{m summ 2016 NY CSA ", post: " }}
General discussion
{{m gen 2016 NY CSA ", post: "|{{{7}}} }}
See also
{{m sa 2016 NY CSA ", post: "}}
References
"
} } } } }); $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'advanced', group: 'format', tools: { "template": { label: 'top trumps', type: 'button', icon: 'http://amwellclear.co.uk/w/images/7/7d/Tag2.png', action: { type: 'encapsulate', options: { pre: "
[[File:{{{image}}}|frameless|2000px|center]] |
Docs | {{{docscore}}} | |
Amendability | {{{amendscore}}} | |
Collateral | {{{collateralscore}}} | |
Transferability | {{{transferscore}}} | |
Leverage | {{{leveragescore}}} | |
Fright-o-meter | {{{frightscore}}} |
" } } } } }); $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'advanced', group: 'format', tools: { "template": { label: 'wasteprov', type: 'button', icon: 'https://jollycontrarian.com/images/2/27/Wp.png', action: { type: 'encapsulate', options: { pre: "[[", post: "]]" } } } } }); $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'advanced', group: 'format', tools: { "template": { label: 'confiprov', type: 'button', icon: 'https://jollycontrarian.com/images/e/ec/Cp.png', action: { type: 'encapsulate', options: { pre: "[[", post: " - NDA Provision|", post: "]]" } } } } }); $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'advanced', group: 'format', tools: { "template": {
label: '
|
', type: 'button', icon: 'https://jollycontrarian.com/images/a/a7/Gl.PNG', action: { type: 'encapsulate', options: {
pre: "
|
", post: "" } } } } }); $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'advanced', group: 'format', tools: { "template": { label: '==See also== ', type: 'button', icon: 'https://jollycontrarian.com/images/7/7c/Sa.PNG', action: { type: 'encapsulate', options: { pre: "==See also== ", post: "" } } } } }); $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'advanced', group: 'format', tools: { "template": { label: '[[- UCITS V Provision|]]', type: 'button', icon: 'https://jollycontrarian.com/images/d/d7/U.PNG', action: { type: 'encapsulate', options: { pre: "[[", post: " - UCITS V Provision|", post: "]]" } } } } }); $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'advanced', group: 'format', tools: { "template": { label: '[[- AIFMD Provision|]]', type: 'button', icon: 'https://jollycontrarian.com/images/8/83/Aif.PNG', action: { type: 'encapsulate', options: { pre: "[[", post: " - AIFMD Provision|", post: "]]" } } } } }); };
if ( [ 'edit', 'submit' ].indexOf( mw.config.get( 'wgAction' ) ) !== -1 ) { mw.loader.using( 'user.options' ).then( function () { if ( mw.user.options.get( 'usebetatoolbar' ) == 1 ) { $.when( mw.loader.using( 'ext.wikiEditor' ), $.ready ).then( customizeToolbar ); } } ); }
// Add the customizations to LiquidThreads' edit toolbar, if available
mw.hook( 'ext.lqt.textareaCreated' ).add( customizeToolbar );
/* Any JavaScript here will be loaded for all users on every page load. */
/* Any JavaScript here will be loaded for all users on every page load. */ /* Good site for buttons: http://commons.wikimedia.org/wiki/Mediawiki_edit_toolbar */