Template:Manualbutton: Difference between revisions
Jump to navigation
Jump to search
Amwelladmin (talk | contribs) Amwelladmin created the page Template:Manualbutton using a non-default content model "JavaScript" |
Amwelladmin (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | |||
section: 'advanced', | |||
group: 'format', | |||
tools: { | |||
"template": { | |||
label: 'MCAE2016', | |||
type: 'button', | |||
icon: 'https://jollycontrarian.com/images/7/7d/{{{1}}}{{{2}}}.png', | |||
action: { | |||
type: 'encapsulate', | |||
options: { | |||
pre: "{{Manual|{{{{1}}}|{{{2}}}|", | |||
post: "|Paragraph||medium}}" | |||
} | |||
} | |||
} | |||
} | |||
}); |
Latest revision as of 15:51, 9 April 2020
$('#wpTextbox1').wikiEditor('addToToolbar', { section: 'advanced', group: 'format', tools: { "template": { label: 'MCAE2016', type: 'button', icon: 'https://jollycontrarian.com/images/7/7d/{{{1}}}{{{2}}}.png', action: { type: 'encapsulate', options: { pre: "{{Manual|{{{{1}}}|{{{2}}}|", post: "|Paragraph||medium}}" } } } } });