MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 142: Line 142:
label: 'tag',
label: 'tag',
type: 'button',
type: 'button',
icon: 'http://amwellclear.co.uk/w/images/3/30/Template.png',
icon: 'http://amwellclear.co.uk/w/images/7/7d/Tag2.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
Line 148: Line 148:
pre: "{{tag|",
pre: "{{tag|",
post: "}}"
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: "{{csaprov|",
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: "’"
}
}
}
}

Navigation menu