MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 225: Line 225:
});
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Manual',
section: 'advanced',
group: 'format',
group: 'format',
tools: {
tools: {
"template": {
"template": {
label: 'MI2002',
label: 'top trumps',
type: 'button',
type: 'button',
icon: 'https://jollycontrarian.com/images/c/c2/MI2002.png',
icon: 'http://amwellclear.co.uk/w/images/7/7d/Tag2.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{manual|MI|2002|",
pre: "{{fwmdtt|nickname=",
post: "|Section||medium}}"
post: "|title=|tagline=|documentation=|booklets=|customisability=|asset classes=|amendability=|transferability=|tenor=|leverage=|collateral=|longevity=|frightometer=}}"
}
}
}
}
Line 243: Line 243:
});
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Manual',
section: 'advanced',
group: 'format',
group: 'format',
tools: {
tools: {
"template": {
"template": {
label: 'MI1992',
label: 'wasteprov',
type: 'button',
type: 'button',
icon: 'https://jollycontrarian.com/images/8/83/MI1992.png',
icon: 'https://jollycontrarian.com/images/2/27/Wp.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{manual|MI|1992|",
pre: "{{wasteprov|",
post: "|Section||medium}}"
post: "}}"
}
}
}
}
Line 261: Line 261:
});
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Manual',
section: 'advanced',
group: 'format',
group: 'format',
tools: {
tools: {
"template": {
"template": {
label: 'MCAE1995',
label: 'confiprov',
type: 'button',
type: 'button',
icon: 'https://jollycontrarian.com/images/b/b3/MCAE1995.png',
icon: 'https://jollycontrarian.com/images/e/ec/Cp.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{Manual|MCAE|1995|",
pre: "{{confiprov|",
post: "|Paragraph||medium}}"
post: "}}"
}
}
}
}
}
}
}
}
});
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Manual',
section: 'advanced',
group: 'format',
group: 'format',
tools: {
tools: {
"template": {
"template": {
label: 'MCAE2016',
label: '{{g}}',
type: 'button',
type: 'button',
icon: 'https://jollycontrarian.com/images/7/7d/MCAE2016.png',
icon: 'https://jollycontrarian.com/images/a/a7/Gl.PNG',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{Manual|MCAE|2016|",
pre: "{{g}}",
post: "|Paragraph||medium}}"
post: ""
}
}
}
}
}
}
}
}
});
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Manual',
section: 'advanced',
group: 'format',
group: 'format',
tools: {
tools: {
"template": {
"template": {
label: 'MCAN1994',
label: '{{sa}}',
type: 'button',
type: 'button',
icon: 'https://jollycontrarian.com/images/4/44/MCAN1994.png',
icon: 'https://jollycontrarian.com/images/7/7c/Sa.PNG',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{Manual|MCAN|1994|",
pre: "{{sa}}",
post: "|Paragraph||medium}}"
post: ""
}
}
}
}
}
}
}
}
});
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Manual',
section: 'advanced',
group: 'format',
group: 'format',
tools: {
tools: {
"template": {
"template": {
label: 'MCAN2016',
label: '{{ucits5prov|}}',
type: 'button',
type: 'button',
icon: 'https://jollycontrarian.com/images/2/26/MCAN2016.png',
icon: 'https://jollycontrarian.com/images/d/d7/U.PNG',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{Manual|MCAN|2016|",
pre: "{{ucits5prov|",
post: "|Paragraph||medium}}"
post: "}}"
}
}
}
}
Line 333: Line 333:
});
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Manual',
section: 'advanced',
group: 'format',
group: 'format',
tools: {
tools: {
"template": {
"template": {
label: 'MSG2010',
label: '{{aifmdprov|}}',
type: 'button',
type: 'button',
icon: 'https://jollycontrarian.com/images/2/26/MCAN2016.png',
icon: 'https://jollycontrarian.com/images/8/83/Aif.PNG',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{Manual|MSG|2010|",
pre: "{{aifmdprov|",
post: "|Clause||medium}}"
post: "}}"
}
}
}
}
Line 351: Line 351:
});
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Manual',
section: 'manual',
group: 'format',
group: 'tags',
tools: {
tools: {
"template": {
"template": {
label: 'MRG2000',
label: 'MI2002',
type: 'button',
type: 'button',
icon: 'https://jollycontrarian.com/images/2/26/MCAN2016.png',
icon: 'https://jollycontrarian.com/images/c/c2/MI2002.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{Manual|MRG|2000|",
pre: "{{manual|MI|2002|",
post: "|Paragraph||medium}}"
post: "|Section||medium}}"
}
}
}
}
Line 369: Line 369:
});
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Manual',
section: 'manual',
group: 'format',
group: 'tags',
tools: {
tools: {
"template": {
"template": {
label: 'MCAN2016',
label: 'MI1992',
type: 'button',
type: 'button',
icon: 'https://jollycontrarian.com/images/2/26/MCAN2016.png',
icon: 'https://jollycontrarian.com/images/8/83/MI1992.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{Manual|DEQ|2002|",
pre: "{{manual|MI|1992|",
post: "|Section||medium}}"
post: "|Section||medium}}"
}
}
Line 387: Line 387:
});
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
section: 'manual',
group: 'format',
group: 'tags',
tools: {
tools: {
"template": {
"template": {
label: 'top trumps',
label: 'MCAE1995',
type: 'button',
type: 'button',
icon: 'http://amwellclear.co.uk/w/images/7/7d/Tag2.png',
icon: 'https://jollycontrarian.com/images/b/b3/MCAE1995.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{fwmdtt|nickname=",
pre: "{{Manual|MCAE|1995|",
post: "|title=|tagline=|documentation=|booklets=|customisability=|asset classes=|amendability=|transferability=|tenor=|leverage=|collateral=|longevity=|frightometer=}}"
post: "|Paragraph||medium}}"
}
}
}
}
}
}
}
}
});
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
section: 'manual',
group: 'format',
group: 'tags',
tools: {
tools: {
"template": {
"template": {
label: 'wasteprov',
label: 'MCAE2016',
type: 'button',
type: 'button',
icon: 'https://jollycontrarian.com/images/2/27/Wp.png',
icon: 'https://jollycontrarian.com/images/7/7d/MCAE2016.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{wasteprov|",
pre: "{{Manual|MCAE|2016|",
post: "}}"
post: "|Paragraph||medium}}"
}
}
}
}
}
}
}
}
});
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
section: 'manual',
group: 'format',
group: 'tags',
tools: {
tools: {
"template": {
"template": {
label: 'confiprov',
label: 'MCAN1994',
type: 'button',
type: 'button',
icon: 'https://jollycontrarian.com/images/e/ec/Cp.png',
icon: 'https://jollycontrarian.com/images/4/44/MCAN1994.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{confiprov|",
pre: "{{Manual|MCAN|1994|",
post: "}}"
post: "|Paragraph||medium}}"
}
}
}
}
}
}
}
}
});
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
section: 'manual',
group: 'format',
group: 'tags',
tools: {
tools: {
"template": {
"template": {
label: '{{g}}',
label: 'MCAN2016',
type: 'button',
type: 'button',
icon: 'https://jollycontrarian.com/images/a/a7/Gl.PNG',
icon: 'https://jollycontrarian.com/images/2/26/MCAN2016.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{g}}",
pre: "{{Manual|MCAN|2016|",
post: ""
post: "|Paragraph||medium}}"
}
}
}
}
Line 459: Line 459:
});
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
section: 'manual',
group: 'format',
group: 'tags',
tools: {
tools: {
"template": {
"template": {
label: '{{sa}}',
label: 'MSG2010',
type: 'button',
type: 'button',
icon: 'https://jollycontrarian.com/images/7/7c/Sa.PNG',
icon: 'https://jollycontrarian.com/images/2/26/MCAN2016.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{sa}}",
pre: "{{Manual|MSG|2010|",
post: ""
post: "|Clause||medium}}"
}
}
}
}
Line 477: Line 477:
});
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
section: 'manual',
group: 'format',
group: 'tags',
tools: {
tools: {
"template": {
"template": {
label: '{{ucits5prov|}}',
label: 'MRG2000',
type: 'button',
type: 'button',
icon: 'https://jollycontrarian.com/images/d/d7/U.PNG',
icon: 'https://jollycontrarian.com/images/2/26/MCAN2016.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{ucits5prov|",
pre: "{{Manual|MRG|2000|",
post: "}}"
post: "|Paragraph||medium}}"
}
}
}
}
Line 495: Line 495:
});
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
section: 'manual',
group: 'format',
group: 'tags',
tools: {
tools: {
"template": {
"template": {
label: '{{aifmdprov|}}',
label: 'MCAN2016',
type: 'button',
type: 'button',
icon: 'https://jollycontrarian.com/images/8/83/Aif.PNG',
icon: 'https://jollycontrarian.com/images/2/26/MCAN2016.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{aifmdprov|",
pre: "{{Manual|DEQ|2002|",
post: "}}"
post: "|Section||medium}}"
}
}
}
}
Line 512: Line 512:
}
}
});
});
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'sections': {
'sections': {