Template:Manualbutton: Difference between revisions

From The Jolly Contrarian
Jump to navigation Jump to search
Amwelladmin created the page Template:Manualbutton using a non-default content model "JavaScript"
 
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}}"
				}
			}
		}
	}
});