Korisnik:Edgar Allan Poe/vector.js

Izvor: Wikipedija
Prijeđi na navigaciju Prijeđi na pretragu

Napomena: Nakon objave možda ćete trebate očistiti međuspremnik (keš) svog preglednika kako biste vidjeli promjene.

  • Firefox / Safari: držite Shift i pritisnite Reload, ili pritisnite bilo Ctrl-F5 ili Ctrl-R (Command-R na Macu)
  • Google Chrome: pritisnite Ctrl-Shift-R (Command-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 $ != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'tools': {
				'Template': {
					label: 'Šablon',
					type: 'button',
					icon: '/media/wikipedia/commons/2/20/Toolbaricon_transclude.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "{{",
							post: "}}"
						}
					}
				}
			}
		} );
	} );
}
if ( typeof $ != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'tools': {
				'Blockquote': {
					label: 'Navodnici',
					type: 'button',
					icon: '/media/wikipedia/commons/4/4e/Toolbaricon_quote.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "„",
							post: "“"
						}
					}
				}
			}
		} );
	} );
}
if ( typeof $ != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'tools': {
				'External link': {
					label: 'Spoljašnja veza',
					type: 'button',
					icon: '/media/wikipedia/commons/5/53/Button_ext_link.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "[",
							post: "]"
						}
					}
				}
			}
		} );
	} );
}
if ( typeof $ != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'tools': {
				'Internal link': {
					label: 'Unutrašnja veza',
					type: 'button',
					icon: '/media/wikipedia/commons/9/97/Button_int_link.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "[[",
							post: "]]"
						}
					}
				}
			}
		} );
	} );
}
if ( typeof $ != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'tools': {
				'Link': {
					label: 'Veza',
					type: 'button',
					icon: '/media/wikipedia/commons/0/0c/Button_Link_DifferentName.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "[[|",
							post: "]]"
						}
					}
				}
			}
		} );
	} );
}
if ( typeof $ != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'tools': {
				'Underline': {
					label: 'Podvučen tekst',
					type: 'button',
					icon: '/media/wikipedia/commons/f/fd/Button_underline.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "<u>",
							post: "</u>"
						}
					}
				}
			}
		} );
	} );
}
if ( typeof $ != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'tools': {
				'Strikethrough': {
					label: 'Precrtan tekst',
					type: 'button',
					icon: '/media/wikipedia/commons/c/c9/Button_strike.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "<s>",
							post: "</s>"
						}
					}
				}
			}
		} );
	} );
}
if ( typeof $ != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'tools': {
				'Category': {
					label: 'Категорија',
					type: 'button',
					icon: '/media/wikipedia/commons/b/b6/Button_category_link.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "[[Kategorija:",
							post: "]]"
						}
					}
				}
			}
		} );
	} );
}
if ( typeof $ != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'tools': {
				'DEFAULTSORT': {
					label: 'DEFAULTSORT',
					type: 'button',
					icon: '/media/wikipedia/commons/b/b6/Vjazyce-button.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "{{DEFAULTSORT:",
							post: "}}"
						}
					}
				}
			}
		} );
	} );
}
if ( typeof $ != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'tools': {
				'Advanced image': {
					label: 'Slika 250px',
					type: 'button',
					icon: '/media/wikipedia/commons/1/1c/Button_advanced_image.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "[[File:",
							post: "|thumb|right|250px|Opis]]"
						}
					}
				}
			}
		} );
	} );
}
if ( typeof $ != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'tools': {
				'Smile': {
					label: 'Smeje se',
					type: 'button',
					icon: '/media/wikipedia/commons/f/f5/Button_smiley_face_grin.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "[[File:Face-grin.svg|20px]]",
							post: ""
						}
					}
				}
			}
		} );
	} );
}
if ( typeof $ != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'tools': {
				'Winking': {
					label: 'Namiguje',
					type: 'button',
					icon: '/media/wikipedia/commons/7/74/Button_oeil.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "[[File:Face-wink.svg|20px]]",
							post: ""
						}
					}
				}
			}
		} );
	} );
}
if ( typeof $ != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'tools': {
				'Signature': {
					label: 'Potpis',
					type: 'button',
					icon: '/media/wikipedia/commons/7/79/Insert-signature.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: " ~~~~",
							post: ""
						}
					}
				}
			}
		} );
	} );
}
/*</nowiki></pre>*/

importScript('MediaWiki:Gadget-ReferenceTooltips.js‎')