Suradnik:TheMinishCap/vector.js

Napomena: Nakon objave možda ćete trebati očistiti međuspremnik svog preglednika kako biste vidjeli promjene.

  • Firefox / Safari: držite Shift i pritisnite Reload, ili pritisnite bilo Ctrl-F5 ili Ctrl-R (⌘-R na Macu)
  • Google Chrome: pritisnite Ctrl-Shift-R (⌘-Shift-R na Macu)
  • Internet Explorer / Edge: držite Ctrl i kliknite Refresh, ili pritisnite Ctrl-F5
  • Opera: pritisnite Ctrl-F5.
/*<nowiki><pre>*/

if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'tools': {
				'Internal link': {
					label: 'Sretan',
					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 $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'tools': {
				'Internal link': {
					label: 'Grin',
					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 $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'tools': {
				'Internal link': {
					label: 'Tužan',
					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 $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'tools': {
				'Internal link': {
					label: 'Wink',
					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 $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'tools': {
				'Internal link': {
					label: 'Jezičina',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/2/26/Button_Tongue.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "[[Slika:Face-espiegle.svg|20px]]",
							post: ""
						}
					}
				}
			}
		} );
	} );
}

if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'tools': {
				'Strikethrough': {
					label: 'Točka',
					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 $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'tools': {
				'Signature': {
					label: 'Brisanje',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/6/66/Button_mort.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "{{bris}}",
							post: ""
						}
					}
				}
			}
		} );
	} );
}

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

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