Suradnik:Frka/vector.js

Izvor: Wikipedija

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: '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 $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'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 $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'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 $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'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 $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'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 $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'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 $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'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 $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'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 $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'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 $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'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 $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'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 $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'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 $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'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 $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'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 $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'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 $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'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 $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'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 $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'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 $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'tools': {
				'Winking': {
					label: 'Neodgovarajući sadržaj',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/4/45/Memo_button.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "{{subst:NSBris}}",
							post: ""
						}
					}
				}
			}
		} );
	} );
}

if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'tools': {
				'Signature': {
					label: 'Bris',
					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': {
				'Signature': {
					label: 'IČ',
					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 $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'tools': {
				'Signature': {
					label: 'IČ',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/5/5b/BTA-2.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "{{ArhivKraj}}",
							post: ""
						}
					}
				}
			}
		} );
	} );
}

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