User:Wlodzimierz/extratoolbarbuttons.js
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
/*<nowiki><pre>*/
if ( typeof $ != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
$(document).ready( function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'insert',
'tools': {
'Systematics': {
label: 'Species',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/c/cf/FPWorldMap_Symbol_Plant.png',
action: {
type: 'encapsulate',
options: {
pre: "==Taxonavigation==\nSpecies: '''''{{BASEPAGENAME}}'''''\n==Name==\n''{{BASEPAGENAME}}''\n==References==\n",
post: "*{{}}"
}
}
}
}
} );
} );
}
if ( typeof $ != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
$(document).ready( function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'insert',
'tools': {
'Systematics': {
label: 'Genus',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/6/67/Book--ico.svg',
action: {
type: 'encapsulate',
options: {
pre: "==Taxonavigation==\nGenus: '''''{{BASEPAGENAME}}'''''\n==Name==\n''{{BASEPAGENAME}}''\n==References==\n",
post: "*{{}}"
}
}
}
}
} );
} );
}
/*</nowiki></pre>*/