83,493
edits
Amwelladmin (talk | contribs) No edit summary |
Amwelladmin (talk | contribs) No edit summary |
||
(28 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
var customizeToolbar = function() { | var customizeToolbar = function() { | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | |||
'sections': { | |||
'manual': { | |||
'type': 'toolbar', // Can also be 'booklet' | |||
'label': 'Manual' | |||
// or 'labelMsg': 'section-manual-label' for a localized label | |||
} | |||
} | |||
} ); | |||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | |||
'section': 'manual', | |||
'groups': { | |||
'tags': { | |||
'label': 'Tags' // or use labelMsg for a localized label, see above | |||
} | |||
} | |||
} ); | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
Line 8: | Line 26: | ||
label: 'long dash', | label: 'long dash', | ||
type: 'button', | type: 'button', | ||
icon: ' | icon: 'https://jollycontrarian.com/images/5/55/Dash.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
Line 26: | Line 44: | ||
label: 'scarequotes', | label: 'scarequotes', | ||
type: 'button', | type: 'button', | ||
icon: ' | icon: 'https://jollycontrarian.com/images/b/ba/Scare.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
Line 44: | Line 62: | ||
label: 'apostrophe', | label: 'apostrophe', | ||
type: 'button', | type: 'button', | ||
icon: ' | icon: 'https://jollycontrarian.com/images/5/5b/Apo.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
Line 54: | Line 72: | ||
} | } | ||
} | } | ||
}); | |||
}); | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
Line 78: | Line 78: | ||
group: 'format', | group: 'format', | ||
tools: { | tools: { | ||
" | "template": { | ||
label: ' | label: '{{ - }}', | ||
type: 'button', | type: 'button', | ||
icon: ' | icon: 'https://jollycontrarian.com/images/3/30/Template.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "{{ | pre: "{{", | ||
post: "}}" | post: "}}" | ||
} | } | ||
Line 137: | Line 100: | ||
label: 'subst:', | label: 'subst:', | ||
type: 'button', | type: 'button', | ||
icon: ' | icon: 'https://jollycontrarian.com/images/0/03/Sbs.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
Line 153: | Line 116: | ||
group: 'format', | group: 'format', | ||
tools: { | tools: { | ||
" | "redirect": { | ||
label: ' | label: '==>', | ||
type: 'button', | type: 'button', | ||
icon: ' | icon: 'https://jollycontrarian.com/images/9/91/Redirect.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: " | pre: "#redirect[[", | ||
post: "]]" | |||
post: " | |||
} | } | ||
} | } | ||
Line 186: | Line 130: | ||
} | } | ||
}); | }); | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
Line 194: | Line 139: | ||
label: 'tag', | label: 'tag', | ||
type: 'button', | type: 'button', | ||
icon: ' | icon: 'https://jollycontrarian.com/images/7/76/Tag.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
Line 210: | Line 155: | ||
group: 'format', | group: 'format', | ||
tools: { | tools: { | ||
" | "Prov": { | ||
label: ' | label: 'isdaprov', | ||
type: 'button', | type: 'button', | ||
icon: ' | icon: 'https://jollycontrarian.com/images/5/50/Isd.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "{{ | pre: "{{isdaprov|", | ||
post: "}}" | post: "}}" | ||
} | } | ||
Line 224: | Line 169: | ||
} | } | ||
}); | }); | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'advanced', | section: 'advanced', | ||
group: 'format', | group: 'format', | ||
tools: { | tools: { | ||
" | "Prov": { | ||
label: ' | label: 'euaprov', | ||
type: 'button', | type: 'button', | ||
icon: 'https://jollycontrarian.com/images/ | icon: 'https://jollycontrarian.com/images/5/50/eua.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "{{ | pre: "{{euaprov|", | ||
post: "}}" | |||
post: " | |||
} | } | ||
} | } | ||
Line 282: | Line 192: | ||
group: 'format', | group: 'format', | ||
tools: { | tools: { | ||
" | "ietaprov": { | ||
label: ' | label: 'ietaprov', | ||
type: 'button', | type: 'button', | ||
icon: 'https://jollycontrarian.com/images/ | icon: 'https://jollycontrarian.com/images/e/e9/Gms.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "{{ | pre: "{{ietaprov|", | ||
post: " | post: "}}" | ||
} | } | ||
} | } | ||
Line 296: | Line 206: | ||
} | } | ||
}); | }); | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'advanced', | section: 'advanced', | ||
group: 'format', | group: 'format', | ||
tools: { | tools: { | ||
" | "gmraprov": { | ||
label: ' | label: '{{{1}}}|', | ||
type: 'button', | type: 'button', | ||
icon: 'https://jollycontrarian.com/images/4/ | icon: 'https://jollycontrarian.com/images/4/49/blank.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "{{ | pre: "{{{{{1}}}|", | ||
post: " | post: "}}" | ||
} | } | ||
} | } | ||
Line 314: | Line 225: | ||
} | } | ||
}); | }); | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'advanced', | section: 'advanced', | ||
group: 'format', | group: 'format', | ||
tools: { | tools: { | ||
" | "Equity Derivs": { | ||
label: ' | label: 'eqderivprov', | ||
type: 'button', | type: 'button', | ||
icon: 'https://jollycontrarian.com/images/ | icon: 'https://jollycontrarian.com/images/c/c3/Eqd.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "{{ | pre: "{{eqderivprov|", | ||
post: " | post: "}}" | ||
} | } | ||
} | } | ||
Line 332: | Line 244: | ||
} | } | ||
}); | }); | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'advanced', | section: 'advanced', | ||
Line 337: | Line 251: | ||
tools: { | tools: { | ||
"template": { | "template": { | ||
label: ' | label: 'vmcsaprov', | ||
type: 'button', | type: 'button', | ||
icon: ' | icon: 'https://jollycontrarian.com/images/3/37/Csa.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "{{ | pre: "{{vmcsaprov|", | ||
post: "" | post: "}}" | ||
} | } | ||
} | } | ||
Line 357: | Line 271: | ||
label: 'top trumps', | label: 'top trumps', | ||
type: 'button', | type: 'button', | ||
icon: 'http:// | icon: 'http://jollycontrarian.com/w/images/7/7d/Tag2.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "{{fwmdtt|nickname=", | pre: "{{fwmdtt|nickname=", | ||
post: "| | post: "| imagetype=png| tagline= | documentation= | docscore=0| amendability= |amendscore=0| collateral= | collateralscore =0| transferability= | transferscore =0| leverage= | leveragescore =0| frightometer= | frightscore=0}}" | ||
} | } | ||
} | } | ||
Line 391: | Line 305: | ||
tools: { | tools: { | ||
"template": { | "template": { | ||
label: ' | 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 397: | Line 311: | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "{{ | pre: "{{cddprov|", | ||
post: "}}" | post: "}}" | ||
} | } | ||
Line 463: | Line 377: | ||
tools: { | tools: { | ||
"template": { | "template": { | ||
label: '{{ | 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 469: | Line 383: | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "{{ | pre: "{{strike|", | ||
post: "|}}" | |||
} | |||
} | |||
} | |||
} | |||
}); | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | |||
section: 'advanced', | |||
group: 'tags', | |||
tools: { | |||
"template": { | |||
label: 'isdamanual', | |||
type: 'button', | |||
icon: 'https://jollycontrarian.com/images/c/c2/MI2002.png', | |||
action: { | |||
type: 'encapsulate', | |||
options: { | |||
pre: "{{isdamanual|", | |||
post: "}}" | post: "}}" | ||
} | } | ||
Line 476: | Line 408: | ||
} | } | ||
}); | }); | ||
}; | }; | ||