MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 135: Line 135:
}
}
}
}
}
}
}
}
}
} );
$textarea.wikiEditor( 'addToToolbar', {
section: 'advanced',
groups: {
list: {
tools: {
templates2: {
label: 'Templates2',
type: 'select',
list: {
'Ping-button': {
label: '{{dsa|birth=|death=}}',
action: {
type: 'encapsulate',
options: {
pre: '{{dsa|birth=',
post: '|death=}}'
}
}
},
'Clear-button': {
label: '{{dsa|birth=|birthphrase=|death=|deathphrase=}}',
action: {
type: 'encapsulate',
options: {
pre: '{{dsa|birth=',
post: '|birthphrase=|death=|deathphrase=}}'
}
}
},
}
}
}
}