MediaWiki:Common.js: Difference between revisions
Amwelladmin (talk | contribs) No edit summary Tag: content model change |
Amwelladmin (talk | contribs) No edit summary |
||
Line 12: | Line 12: | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "—", | ||
post: | post: "" | ||
} | } | ||
} | } | ||
Line 30: | Line 30: | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "“", | ||
post: | post: "”" | ||
} | } | ||
} | } | ||
Line 48: | Line 48: | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "’", | ||
post: | post: "" | ||
} | } | ||
} | } | ||
Line 66: | Line 66: | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "#redirect[[", | ||
post: | post: "]]" | ||
} | } | ||
} | } | ||
Line 85: | Line 85: | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "{{isdaprov|", | ||
post: | post: "}}" | ||
} | } | ||
} | } | ||
Line 103: | Line 103: | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "{{gmslaprov|", | ||
post: | post: "}}" | ||
} | } | ||
} | } | ||
Line 122: | Line 122: | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "{{gmraprov|", | ||
post: | post: "}}" | ||
} | } | ||
} | } | ||
Line 141: | Line 141: | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "{{subst:", | ||
post: | post: "}}" | ||
} | } | ||
} | } | ||
Line 160: | Line 160: | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "{{eqderivprov|", | ||
post: | post: "}}" | ||
} | } | ||
} | } | ||
Line 179: | Line 179: | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "{{", | ||
post: | post: "}}" | ||
} | } | ||
} | } | ||
Line 198: | Line 198: | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "{{t|", | ||
post: | post: "}}" | ||
} | } | ||
} | } | ||
Line 217: | Line 217: | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "{{csaprov|", | ||
post: | post: "}}" | ||
} | } | ||
} | } | ||
Line 235: | Line 235: | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "{{manual|MI|2002|", | ||
post: | post: "|Section||medium}}" | ||
} | } | ||
} | } | ||
Line 253: | Line 253: | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "{{manual|MI|1992|", | ||
post: | post: "|Section||medium}}" | ||
} | } | ||
} | } | ||
Line 271: | Line 271: | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "{{Manual|MCAE|1995|", | ||
post: | post: "|Paragraph||medium}}" | ||
} | } | ||
} | } | ||
Line 289: | Line 289: | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "{{Manual|MCAE|2016|", | ||
post: | post: "|Paragraph||medium}}" | ||
} | } | ||
} | } | ||
Line 307: | Line 307: | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "{{Manual|MCAN|1994|", | ||
post: | post: "|Paragraph||medium}}" | ||
} | } | ||
} | } | ||
Line 325: | Line 325: | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "{{Manual|MCAN|2016|", | ||
post: | post: "|Paragraph||medium}}" | ||
} | } | ||
} | } | ||
Line 343: | Line 343: | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "{{fwmdtt|nickname=", | ||
post: | post: "|title=|tagline=|documentation=|booklets=|customisability=|asset classes=|amendability=|transferability=|tenor=|leverage=|collateral=|longevity=|frightometer=}}" | ||
} | } | ||
} | } | ||
Line 361: | Line 361: | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "{{wasteprov|", | ||
post: | post: "}}" | ||
} | } | ||
} | } | ||
Line 379: | Line 379: | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "{{confiprov|", | ||
post: | post: "}}" | ||
} | } | ||
} | } | ||
Line 397: | Line 397: | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "{{g}}", | ||
post: | post: "" | ||
} | } | ||
} | } | ||
Line 415: | Line 415: | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "{{sa}}", | ||
post: | post: "" | ||
} | } | ||
} | } | ||
Line 433: | Line 433: | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "{{ucits5prov|", | ||
post: | post: "}}" | ||
} | } | ||
} | } | ||
Line 451: | Line 451: | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "{{aifmdprov|", | ||
post: | post: "}}" | ||
} | } | ||
} | } |
Revision as of 13:42, 23 March 2020
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 */