Korisnik:Wikiwind/extratoolbarbuttons.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': {
				'Blockquote': {
					label: 'Navodnici',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/2/2f/Toolbaricon_quote_1.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': {
				'Transclude': {
					label: 'Šablon',
					type: 'button',
					icon: 'http://upload.wikimedia.org/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': {
				'Transliteration': {
					label: 'Transliteracija',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/9/9d/Toolbaricon_sr.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: 'Eksterni link',
					type: 'button',
					icon: 'http://upload.wikimedia.org/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šnji link',
					type: 'button',
					icon: 'http://upload.wikimedia.org/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: 'Link',
					type: 'button',
					icon: 'http://upload.wikimedia.org/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': {
				'Vertical line': {
					label: 'Uspravna crta',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/7/71/TableCell.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: 'http://upload.wikimedia.org/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: 'http://upload.wikimedia.org/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: 'kategorija',
					type: 'button',
					icon: 'http://upload.wikimedia.org/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: 'http://upload.wikimedia.org/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 250 piksela',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/1/1c/Button_advanced_image.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "[[Image:",
							post: "|thumb|right|250px|opis]]"
						}
					}
				}
			}
		} );
	} );
}
if ( typeof $ != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'tools': {
				'Welcome': {
					label: 'Dobrodošli',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/e/e3/Button_bienvenido.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "{{Dobrodošli}} ~~~~",
							post: ""
						}
					}
				}
			}
		} );
	} );
}
if ( typeof $ != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'tools': {
				'Cite web': {
					label: 'ref veb',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/9/91/Button_cite_web.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "{{Cite web |url= |title= |accessdate= |last= |first= |coauthors= |date= |work= |publisher=}}",
							post: ""
						}
					}
				}
			}
		} );
	} );
}
if ( typeof $ != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'tools': {
				'Cite web': {
					label: 'ref book',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/e/ef/Button_cite_book.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "{{cite book |last= |first= |authorlink= |coauthors= |title= |url= |accessdate= |edition= |date= |publisher= |location= |language= |id= |doi = |pages= |chapter= |quote = }}",
							post: ""
						}
					}
				}
			}
		} );
	} );
}

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