User:RLJ/extratoolbarbuttons.js
< User:RLJ
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: "{{Image}}\n=={{int:Taxonavigation}}==\n{{{{Subst:RLJ/nix}}{{Subst:RLJ/lword|{{Subst:BASEPAGENAME}}}}}}\nSpecies: ''[[{{Subst:BASEPAGENAME}}]]''\n\n=={{int:Name}}==\n''{{Subst:BASEPAGENAME}}''\n\n==={{int:Synonyms}}===\n{{BA}}\n{{HOT}}\n{{HET}}\n\n=={{int:References}}==\n\n",
post: "{{Taxonbar}}\n"
}
}
}
}
} );
} );
}
if ( typeof $ != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
$(document).ready( function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'insert',
'tools': {
'Systematics': {
label: 'Subspecies',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/c/cf/FPWorldMap_Symbol_Plant.png',
action: {
type: 'encapsulate',
options: {
pre: "=={{int:Taxonavigation}}==\n{{{{Subst:RLJ/nix}}{{Subst:RLJ/lword|{{Subst:BASEPAGENAME}}}}}}\nSpecies: ''[[{{Subst:BASEPAGENAME}}]]''<br>\nSubspecies: {{Taxit|{{Subst:PAGENAME}}|linked=yes}}\n\n=={{int:Name}}==\n''{{Subst:BASEPAGENAME}}''\n\n==={{int:Synonyms}}===\n{{BA}}\n{{HOT}}\n{{HET}}\n\n=={{int:References}}==\n\n",
post: "{{Taxonbar}}\n"
}
}
}
}
} );
} );
}
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/c/cf/FPWorldMap_Symbol_Plant.png',
action: {
type: 'encapsulate',
options: {
pre: "=={{int:Taxonavigation}}==\n{{TEMPLATE}}\nGenus: ''[[{{Subst:BASEPAGENAME}}]]''\n\n=={{int:Name}}==\n''{{Subst:BASEPAGENAME}}''\n\n==={{int:Synonyms}}===\n{{BA}}\n{{HOT}}\n{{HET}}\n\n=={{int:References}}==\n\n",
post: "{{Taxonbar}}\n"
}
}
}
}
} );
} );
}
if ( typeof $ != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
$(document).ready( function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'insert',
'tools': {
'Templates': {
label: 'Authors',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/6/67/Book--ico.svg',
action: {
type: 'encapsulate',
options: {
pre: "'''{{Subst:PAGENAME}}''' ([[Floruit|fl.]] 1899–1993), botanist.\n\n{{IPNI standard form|{{Subst:#property:P428}}}}\n\n{{Taxa authored}}\n\n=={{int:Publications}}==\n\n{{Authority control}}\n{{DEFAULTSORT:Surname, Forename}}\n[[Category:Botanists]]\n[[Category:Taxon authorities]]\n",
post: ""
}
}
}
}
} );
} );
}
if ( typeof $ != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
$(document).ready( function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'insert',
'tools': {
'Templates': {
label: 'TemplateAuthors',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/6/67/Book--ico.svg',
action: {
type: 'encapsulate',
options: {
pre: "{{a|Forename Name|Name, F.}}<noinclude>[[Category:Author templates|{{PAGENAME}}]]</noinclude>\n",
post: ""
}
}
}
}
} );
} );
}
if ( typeof $ != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
$(document).ready( function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'insert',
'tools': {
'Templates': {
label: 'TaxaAuthored',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/6/67/Book--ico.svg',
action: {
type: 'encapsulate',
options: {
pre: "{{Taxa by author| FName FName Name | Name, FName FName }}\n",
post: ""
}
}
}
}
} );
} );
}
if ( typeof $ != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
$(document).ready( function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'insert',
'tools': {
'Templates': {
label: 'Herbarium',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/c/cf/FPWorldMap_Symbol_Plant.png',
action: {
type: 'encapsulate',
options: {
pre: "{{Ti|{{Subst:BASEPAGENAME}}}} ADRESS \n\n=={{int:Links}}==\n* [http://sweetgum.nybg.org/science/ih/herbarium_list.php?NamOrganisationAcronym={{Subst:BASEPAGENAME}} Index Herbariorum]\n\n[[Category:{{Subst:BASEPAGENAME}}| ]]\n[[Category:Repositories]]\n",
post: ""
}
}
}
}
} );
} );
}
if ( typeof $ != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
$(document).ready( function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'insert',
'tools': {
'Templates': {
label: 'HerbariumCat',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/c/cf/FPWorldMap_Symbol_Plant.png',
action: {
type: 'encapsulate',
options: {
pre: "List of taxa whose type specimens are housed in [[{{Subst:BASEPAGENAME}}|{{Subst:BASEPAGENAME}} ( ADRESS )]]\n\n[[Category:Repositories]]\n",
post: ""
}
}
}
}
} );
} );
}
if ( typeof $ != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
$(document).ready( function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'insert',
'tools': {
'Templates': {
label: 'GenusTemplate',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/6/67/Book--ico.svg',
action: {
type: 'encapsulate',
options: {
pre: "{{DISPLAYTITLE:{{Taxit|{{BASEPAGENAME}}}}|noreplace}}",
post: "\nGenus: {{gbr|{{Subst:BASEPAGENAME}}}}\n<noinclude>[[Category:Taxonavigation templates]]</noinclude>\n<includeonly>[[Category:Pages with taxonavigation templates]]</includeonly>"
}
}
}
}
} );
} );
}
if ( typeof $ != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
$(document).ready( function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'insert',
'tools': {
'Templates': {
label: 'Taxonbar',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/c/cf/FPWorldMap_Symbol_Plant.png',
action: {
type: 'encapsulate',
options: {
pre: "{{Taxonbar}}\n",
post: ""
}
}
}
}
} );
} );
}
if ( typeof $ != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
$(document).ready( function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'insert',
'tools': {
'Templates': {
label: 'BPN',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/c/cf/FPWorldMap_Symbol_Plant.png',
action: {
type: 'encapsulate',
options: {
pre: "[[{{Subst:BASEPAGENAME}}]]",
post: ""
}
}
}
}
} );
} );
}
if ( typeof $ != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
$(document).ready( function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'insert',
'tools': {
'Templates': {
label: 'int:',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/6/67/Book--ico.svg',
action: {
type: 'encapsulate',
options: {
pre: "{{int:",
post: "}}"
}
}
}
}
} );
} );
}
if ( typeof $ != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
$(document).ready( function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'insert',
'tools': {
'Templates': {
label: 'grey',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/6/67/Book--ico.svg',
action: {
type: 'encapsulate',
options: {
pre: "{{grey|",
post: "}}"
}
}
}
}
} );
} );
}
if ( typeof $ != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
$(document).ready( function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'insert',
'tools': {
'Templates': {
label: 'Taxit',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/6/67/Book--ico.svg',
action: {
type: 'encapsulate',
options: {
pre: "{{Taxit|",
post: "|linked=yes}}"
}
}
}
}
} );
} );
}
if ( typeof $ != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
$(document).ready( function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'insert',
'tools': {
'Templates': {
label: '≡',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/c/cf/FPWorldMap_Symbol_Plant.png',
action: {
type: 'encapsulate',
options: {
pre: "≡",
post: ""
}
}
}
}
} );
} );
}
if ( typeof $ != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
$(document).ready( function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'insert',
'tools': {
'Templates': {
label: '()',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/6/67/Book--ico.svg',
action: {
type: 'encapsulate',
options: {
pre: "(",
post: ")"
}
}
}
}
} );
} );
}
if ( typeof $ != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
$(document).ready( function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'insert',
'tools': {
'Templates': {
label: 'floruit',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/6/67/Book--ico.svg',
action: {
type: 'encapsulate',
options: {
pre: "[[Floruit|fl.]]",
post: ""
}
}
}
}
} );
} );
}
/*</nowiki></pre>*/