User:Micki/extratoolbarbuttons.js

From Meta, a Wikimedia project coordination wiki
This is an archived version of this page, as edited by Micki (talk | contribs) at 08:42, 14 October 2011. It may differ significantly from the current version.

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 $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
	$j( document ).ready( function() {
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'sections': {
				'dugmići': {
					'type': 'toolbar',
					'label': 'Dugmići'
				}
			}
		} );
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'dugmići',
			'groups': {
				'dugmići': {
					'label': 'Dugmići'
				}
			}
		} );
	} );
}
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
	$j(document).ready( function() {
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'dugmići',
			'group': 'dugmići',
			'tools': {
				'Internal link': {
					label: 'Poveznica',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/9/97/Button_int_link.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "[[",
							post: "]]"
						}
					}
				}
			}
		} );
	} );
}

if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
	$j(document).ready( function() {
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'dugmići',
			'group': 'dugmići',
			'tools': {
				'DEFAULTSORT': {
					label: 'Umetni sliku‎',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/3/3c/Icons-mini-image_new.gif',
					action: {
						type: 'encapsulate',
						options: {
							pre: "[[Slika:|minijatura|desno|250px|",
							post: "]]"
						}
					}
				}
			}
		} );
	} );
}

if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
	$j(document).ready( function() {
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'dugmići',
			'group': 'dugmići',
			'tools': {
				'Internal link': {
					label: 'Za',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/b/ba/Button_conserver.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "{{Za}}",
							post: ""
						}
					}
				}
			}
		} );
	} );
}

if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
	$j(document).ready( function() {
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'dugmići',
			'group': 'dugmići',
			'tools': {
				'Internal link': {
					label: 'Protiv',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/f/fc/Button_supp.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "{{Protiv}}",
							post: ""
						}
					}
				}
			}
		} );
	} );
}

if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
	$j(document).ready( function() {
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'dugmići',
			'group': 'dugmići',
			'tools': {
				'Internal link': {
					label: 'Komentar',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/2/2e/Button_pict_comment.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "{{komentar}}",
							post: ""
						}
					}
				}
			}
		} );
	} );
}

if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
	$j(document).ready( function() {
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'dugmići',
			'group': 'dugmići',
			'tools': {
				'Internal link': {
					label: 'Smajli',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/1/1c/Button_smiley_face_smile.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "[[Slika:Face-smile.svg|20px]]",
							post: ""
						}
					}
				}
			}
		} );
	} );
}

if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
	$j(document).ready( function() {
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'dugmići',
			'group': 'dugmići',
			'tools': {
				'Internal link': {
					label: 'Smajli',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/f/f5/Button_smiley_face_grin.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "[[Slika:Face-grin.svg|20px]]",
							post: ""
						}
					}
				}
			}
		} );
	} );
}

if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
	$j(document).ready( function() {
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'dugmići',
			'group': 'dugmići',
			'tools': {
				'Internal link': {
					label: 'Smajli',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/b/b0/Button_blocage.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "[[Slika:Face-sad.svg|20px]]",
							post: ""
						}
					}
				}
			}
		} );
	} );
}

if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
	$j(document).ready( function() {
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'dugmići',
			'group': 'dugmići',
			'tools': {
				'Internal link': {
					label: 'Smajli',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/7/74/Button_oeil.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "[[Slika:Face-wink.svg|20px]]",
							post: ""
						}
					}
				}
			}
		} );
	} );
}

if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
	$j(document).ready( function() {
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'dugmići',
			'group': 'dugmići',
			'tools': {
				'Internal link': {
					label: '<ref>',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/7/79/Button_reflink.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "<ref>",
							post: "</ref>"
						}
					}
				}
			}
		} );
	} );
}

if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
	$j(document).ready( function() {
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'dugmići',
			'group': 'dugmići',
			'tools': {
				'Link': {
					label: 'Reference footer',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/a/a0/Button_references_alt.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "{{reflist|2}}",
							post: ""
						}
					}
				}
			}
		} );
	} );
}

if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
	$j(document).ready( function() {
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'dugmići',
			'group': 'dugmići',
			'tools': {
				'Underline': {
					label: 'Noinclude',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/c/ce/Button_no_include.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "<noinclude>",
							post: "</noinclude>"
						}
					}
				}
			}
		} );
	} );
}

if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
	$j(document).ready( function() {
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'dugmići',
			'group': 'dugmići',
			'tools': {
				'Underline': {
					label: 'Includeonly',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/7/79/Button_include.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "<includeonly>",
							post: "</includeonly>"
						}
					}
				}
			}
		} );
	} );
}

if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
	$j(document).ready( function() {
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'dugmići',
			'group': 'dugmići',
			'tools': {
				'Strikethrough': {
					label: 'Dot',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/a/aa/Button_dot1.PNG',
					action: {
						type: 'encapsulate',
						options: {
							pre: "•",
							post: ""
						}
					}
				}
			}
		} );
	} );
}

if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
	$j(document).ready( function() {
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'dugmići',
			'group': 'dugmići',
			'tools': {
				'Strikethrough': {
					label: 'Crta',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/7/71/TableCell.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "&#124;",
							post: ""
						}
					}
				}
			}
		} );
	} );
}

if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
	$j(document).ready( function() {
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'dugmići',
			'group': 'dugmići',
			'tools': {
				'Category': {
					label: 'Wprojekti',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/1/12/Button_find.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "{{ WProjekti \n|commons        = \n|commonshr      = \n|commonscat     = \n|commonscathr   = \n|wikivrste      = \n|wikivrstehr    = \n|wikizvor       = \n|wikizvor_autor = \n|wječnik        = \n|wikiknjige     = \n|wikicitat      = \n}}",
							post: ""
						}
					}
				}
			}
		} );
	} );
}

if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
	$j(document).ready( function() {
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'dugmići',
			'group': 'dugmići',
			'tools': {
				'DEFAULTSORT': {
					label: 'Premjestiti na Commons‎',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/6/6c/Button_commons.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "{{Premjestiti na Commons‎}}",
							post: ""
						}
					}
				}
			}
		} );
	} );
}

if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
	$j(document).ready( function() {
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'dugmići',
			'group': 'dugmići',
			'tools': {
				'Smile': {
					label: 'Srediti slike',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/2/22/Button_radio_activite.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "{{ Srediti slike \n|slika1 = \n|slika2 = \n|slika3 = \n|slika4 = \n|slika5 = \n|slika6 = \n|slika7 = \n|slika8 = \n|slika9 = \n|datum = {{subst:#time: d. xg Y.|+1hours+14days}} \n|potpis = --~~~~ \n}}",
							post: ""
						}
					}
				}
			}
		} );
	} );
}

if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
	$j(document).ready( function() {
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'dugmići',
			'group': 'dugmići',
			'tools': {
				'Advanced image': {
					label: 'Slika za brisanje',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/7/79/Button_bombe.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "{{subst:SBris}}",
							post: ""
						}
					}
				}
			}
		} );
	} );
}

if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
	$j(document).ready( function() {
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'dugmići',
			'group': 'dugmići',
			'tools': {
				'Winking': {
					label: 'Neodgovarajući sadržaj',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/2/2e/Button_broom.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "{{subst:NSBris}}",
							post: ""
						}
					}
				}
			}
		} );
	} );
}

if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
	$j(document).ready( function() {
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'dugmići',
			'group': 'dugmići',
			'tools': {
				'Signature': {
					label: 'Bris',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/5/50/Button_tidyman.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "{{bris|",
							post: "}}"
						}
					}
				}
			}
		} );
	} );
}

if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
	$j(document).ready( function() {
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'dugmići',
			'group': 'dugmići',
			'tools': {
				'Smile': {
					label: 'Copyright?',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/7/72/Button_copy_vio_plagio.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "{{subst:CBris|",
							post: "}}"
						}
					}
				}
			}
		} );
	} );
}

if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
	$j(document).ready( function() {
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'dugmići',
			'group': 'dugmići',
			'tools': {
				'DEFAULTSORT': {
					label: 'Nedostaje izvor‎',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/1/1a/Button_fact.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "{{Nedostaje izvor}}",
							post: ""
						}
					}
				}
			}
		} );
	} );
}

if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
	$j(document).ready( function() {
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'dugmići',
			'group': 'dugmići',
			'tools': {
				'DEFAULTSORT': {
					label: 'Nepotpisan',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/6/6d/Button_unsigned.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "{{subst:nepotpisan|",
							post: "}}"
						}
					}
				}
			}
		} );
	} );
}

if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
	$j(document).ready( function() {
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'dugmići',
			'group': 'dugmići',
			'tools': {
				'DEFAULTSORT': {
					label: 'Prikaži‎',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/b/bb/Seealso.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "{{subst:NS-prikaži1}}--~~~~",
							post: ""
						}
					}
				}
			}
		} );
	} );
}

if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
	$j(document).ready( function() {
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'dugmići',
			'group': 'dugmići',
			'tools': {
				'DEFAULTSORT': {
					label: 'Test‎',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/7/76/Testwarn1.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "{{subst:NS-test1}}--~~~~",
							post: ""
						}
					}
				}
			}
		} );
	} );
}

if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
	$j(document).ready( function() {
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'dugmići',
			'group': 'dugmići',
			'tools': {
				'DEFAULTSORT': {
					label: 'Suradnik i članak',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/4/41/Button_userandarticle.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "{{subst:suradnik i članak}}--~~~~",
							post: ""
						}
					}
				}
			}
		} );
	} );
}

if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
	$j(document).ready( function() {
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'dugmići',
			'group': 'dugmići',
			'tools': {
				'DEFAULTSORT': {
					label: 'NS-osnove1‎',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/1/1e/Button_ns-basics.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "{{subst:NS-osnove1|",
							post: "}}--~~~~"
						}
					}
				}
			}
		} );
	} );
}

if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
	$j(document).ready( function() {
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'dugmići',
			'group': 'dugmići',
			'tools': {
				'DEFAULTSORT': {
					label: 'Popis stanovništva 2011.‎',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/8/89/Exquisite-khelpcenter.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "{{subst:Popis stanovništva 2011.}}--~~~~",
							post: ""
						}
					}
				}
			}
		} );
	} );
}

if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
	$j(document).ready( function() {
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'dugmići',
			'group': 'dugmići',
			'tools': {
				'Signature': {
					label: 'Arhiv - početak',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/3/32/BTA-1.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "{{ArhivPočetak}}",
							post: ""
						}
					}
				}
			}
		} );
	} );
}

if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
	$j(document).ready( function() {
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'dugmići',
			'group': 'dugmići',
			'tools': {
				'Signature': {
					label: 'Arhiv - kraj',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/5/5b/BTA-2.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "{{ArhivKraj}}",
							post: ""
						}
					}
				}
			}
		} );
	} );
}

/*</nowiki></pre>*/