Корисник:Bas-Celik/extratoolbarbuttons.js

Напомена: Пошто објавите измене, можда ћете морати да обришете кеш меморију прегледача како бисте их видели. Google Chrome, Firefox, Microsoft Edge и Safari: Држите ⇧ Shift и кликните дугме Reload на траци са алаткама. За детаље и упутства о другим прегледачима, погледајте en:Wikipedia:Bypass your cache.

/*<nowiki><pre>*/
if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'tools': {
				'Šablon': {
					label: 'Шаблон',
					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': {
				'Šablon': {
					label: 'Шаблон',
					type: 'button',
			            icon: 'http://upload.wikimedia.org/wikipedia/commons/5/53/Button_ext_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': {
				'Šablon': {
					label: 'Шаблон',
					type: 'button',
			icon: 'http://upload.wikimedia.org/wikipedia/commons/thumb/f/fb/Template_icon.svg/128px-Template_icon.svg.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': {
				'Transliteracija': {
					label: 'Транслитерација',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/9/9d/Toolbaricon_sr.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': {
				'Transliteracija': {
					label: 'Усправна линија',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/7/71/TableCell.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': {
				'Transliteracija': {
					label: 'Водоравна линија',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/0/0d/Button_hr.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': {
				'Transliteracija': {
					label: 'Цитат',
					type: 'button',
				     icon: 'http://upload.wikimedia.org/wikipedia/commons/2/2f/Button_tableau.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "{{Цитат3|",
							post: "|аутор}}"
						}
					}
				}
			}
		} );
	} );
}
if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'tools': {
				'Podvučeno': {
					label: 'Подвучен текст',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/f/fd/Button_underline.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "<u>",
							post: "</u>"
						}
					}
				}
			}
		} );
	} );
}
if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'tools': {
				'Precrtano': {
					label: 'Прецртан текст',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/c/c9/Button_strike.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "<s>",
							post: "</s>"
						}
					}
				}
			}
		} );
	} );
}
if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'tools': {
				'Slika': {
					label: 'Слика 250п',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/1/1c/Button_advanced_image.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "[[Датотека:",
							post: "|мини|десно|250п|Опис]]"
						}
					}
				}
			}
		} );
	} );
}
if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'tools': {
				'Test': {
					label: 'Тест',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/e/ec/Button_aviso.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': {
				'BB': {
					label: 'бб',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/e/e4/Bouton_Vandale3.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': {
				'Tri vraćanja': {
					label: 'Три враћања',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/8/80/Button_number_3.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': {
				'Početnički članak': {
					label: 'Почетнички чланак',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/8/8b/Button_portail.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "{{почетник",
							post: "|дд|2|2012}}"
						}
					}
				}
			}
		} );
	} );
}
if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'tools': {
				'Aski članak': {
					label: 'Аски чланак',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/8/8d/Button_rouge.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': {
				'Srećan': {
					label: 'Срећан',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/f/f5/Button_smiley_face_grin.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "[[Слика:Face-grin.svg|20п]]",
							post: ""
						}
					}
				}
			}
		} );
	} );
}
if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'tools': {
				'Namiguje': {
					label: 'Намигује',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/7/74/Button_oeil.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "[[Слика:Face-wink.svg|20п]]",
							post: ""
						}
					}
				}
			}
		} );
	} );
}
if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'tools': {
				'Zatvaranje glasanja': {
					label: 'Затварање гласања',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/d/da/Vote_choice_button.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "{{Гласање-крај|за = 0|уздржаних = 0|против = 0|слободно_поље = Чланак се не брише.}}~~",
							post: "~~"
						}
					}
				}
			}
		} );
	} );
}
if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'tools': {
				'Bez potpisa': {
					label: 'Без потписа',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/3/38/Button_plume.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "{{БП|",
							post: "|00:00, 00. мјесец 2012}}"
						}
					}
				}
			}
		} );
	} );
}
if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'tools': {
				'Dobrodošlica': {
					label: 'Добродошлица',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/e/e3/Button_bienvenido.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': {
				'Sortiranje': {
					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 $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'tools': {
				'Kategorija': {
					label: 'Категорија',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/5/5a/Button_category_alt.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': {
				'Navodnici': {
					label: 'Наводници',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/2/23/Quotes-Lithuanian.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': {
				'Odjeljak 1': {
					label: 'Одјељак 1',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/commons/f/fb/Button_headline.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': {
				'Odjeljak 2': {
					label: 'Одјељак 2',
					type: 'button',
					icon: 'http://upload.wikimedia.org/wikipedia/en/e/e9/Button_headline2.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': {
				'Drugi jezici': {
					label: 'Други језици',
					type: 'button',
			icon: 'http://upload.wikimedia.org/wikipedia/commons/9/9a/Nuvola_apps_kmessedwords.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "[[en:",
							post: "]]"
						}
					}
				}
			}
		} );
	} );
}
if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
	$(document).ready( function() {
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'tools': {
				'Drugi jezici': {
					label: 'Commonscat',
					type: 'button',
  icon: 'http://upload.wikimedia.org/wikipedia/commons/thumb/4/4a/Commons-logo.svg/40px-Commons-logo.svg.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "{{Commonscat|",
							post: "}}"
						}
					}
				}
			}
		} );
	} );
}
/*</nowiki></pre>*/