MediaWiki:HotCat.js
Вы находитесь на сайте "Архив статей из ЭЕЭ и статей на еврейские темы из Википедии"
Версия от 12:29, 22 июня 2010; Mliris (Обсуждение | вклад)
Замечание: Чтобы после сохранения увидеть сделанные изменения, очистите кеш своего браузера: Mozilla / Firefox: Ctrl+Shift+R, IE: Ctrl+F5, Safari: Cmd+Shift+R, Konqueror: F5, Opera: через меню Tools→Preferences.
/* Источник: [[:en:User:TheDJ/Gadget-HotCat.js]] * HotCat: Adds an easy way to add, modify and remove categories * Documentation: [[User:TheDJ/HotCat]] * Originally written by: Magnus Manske * * This version was forked from http://commons.wikimedia.org/w/index.php?title=MediaWiki:Gadget-HotCat.js&oldid=10204404 * Major changes: * - blacklist code is disabled. * - all code for the uploadForm has been removed * - autocommit is disabled * - will be enabled on pages without categories so that you can easily add them * - uses javascript:void() as a dummy value for href in order to avoid a conflict with popups. * - checks for {Uncategorized} and removes it if a category is added * - does not use JSconfig for configuration options like its Commons original * - tries to detect other categories and if possible, add to the end of them. * - fixes a bug in the suggestion list with titles containing : character * [[User:TheDJ]] 2008-03-12 <nowiki> */ var hotcat_running = 0; var hotcat_last_v = ""; var hotcat_exists_yes = "http://upload.wikimedia.org/wikipedia/commons/thumb/b/be/P_yes.svg/20px-P_yes.svg.png"; var hotcat_exists_no = "http://upload.wikimedia.org/wikipedia/commons/thumb/4/42/P_no.svg/20px-P_no.svg.png"; var hotcat_no_autocommit = 0; // In Commons hotcat_suggestion_delay is configurable trough JSconfig var hotcat_suggestion_delay = 100; var hotcat_editbox_width = 80; var hotcat_suggestions = "searchindex"; var hotcat_old_onsubmit = null; var hotcat_nosuggestions = false; // hotcat_nosuggestions is set to true if we don't have XMLHttp! (On IE6, XMLHttp uses // ActiveX, and the user may deny execution.) If true, no suggestions will ever be // displayed, and there won't be any checking whether the category exists. // Lupo, 2008-01-20 var hotcat_modify_blacklist = new Array ( "" ); addOnloadHook ( hotcat ); function add_rubrikator() { tree = new dTree('tam4c205407412f0'); for (i in tree.icon) tree.icon[i] = '/w/extensions/TreeAndMenu/'+tree.icon[i]; tree.config.useLines = false; tree.add(0,-1,'<big><b>Рубрикатор</b></big> <a href=\"/wiki/%D0%A3%D1%81%D1%82%D1%80%D0%BE%D0%B9%D1%81%D1%82%D0%B2%D0%BE_%D1%80%D1%83%D0%B1%D1%80%D0%B8%D0%BA%D0%B0%D1%82%D0%BE%D1%80%D0%B0_%D0%B8_%D0%BA%D0%B0%D0%BA_%D0%B5%D0%B3%D0%BE_%D0%B4%D0%B0%D0%BB%D1%8C%D1%88%D0%B5_%D1%80%D0%B0%D0%B7%D0%B2%D0%B8%D0%B2%D0%B0%D1%82%D1%8C\" title=\"Устройство рубрикатора и как его дальше развивать\" class=\"mw-redirect\"><font size=\"-2\"><span style=\"color: rgb(150, 15, 90);\"><b>(пояснение)</b></span></font></a>'); tam4c205407412f0 = tree; tam4c205407412f0.add(1, 0, '<font size=\"-2\"><span style=\"color: rgb(0, 0, 255);\"><b>Иудаизм:</b></span>книги, персоны, идеи, практика</font>'); tam4c205407412f0.add(2, 1, 'ТаНаХ: Структура, текстология '); tam4c205407412f0.add(3, 2, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%A2%D0%B0%D0%9D%D0%B0X\" title=\"Категория:ТаНаX\">ТаНаХ</a>'); tam4c205407412f0.add(4, 2, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%95%D0%B2%D1%80%D0%B5%D0%B9%D1%81%D0%BA%D0%B0%D1%8F_%D0%91%D0%B8%D0%B1%D0%BB%D0%B8%D1%8F\" title=\"Категория:Еврейская Библия\">Еврейская Библия</a> '); tam4c205407412f0.add(5, 2, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%A1%D0%B2%D1%8F%D1%89%D0%B5%D0%BD%D0%BD%D1%8B%D0%B5_%D0%BA%D0%BD%D0%B8%D0%B3%D0%B8_%D0%B8%D1%83%D0%B4%D0%B0%D0%B8%D0%B7%D0%BC%D0%B0\" title=\"Категория:Священные книги иудаизма\">Священные книги иудаизма</a>'); tam4c205407412f0.add(6, 2, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%9A%D0%BD%D0%B8%D0%B3%D0%B8_%D0%A2%D0%B0%D0%9D%D0%B0%D0%A5%D0%B0\" title=\"Категория:Книги ТаНаХа\">Книги ТаНаХа</a>'); tam4c205407412f0.add(7, 2, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%A2%D0%B0%D0%9D%D0%B0X:%D0%9F%D1%80%D0%BE%D1%80%D0%BE%D0%BA%D0%B8\" title=\"Категория:ТаНаX:Пророки\">ТаНаХ:Пророки</a> '); tam4c205407412f0.add(8, 2, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%A2%D0%B0%D0%9D%D0%B0X:%D0%9F%D0%B8%D1%81%D0%B0%D0%BD%D0%B8%D1%8F\" title=\"Категория:ТаНаX:Писания\">ТаНаХ:Писания</a>'); tam4c205407412f0.add(9, 8, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%9F%D1%81%D0%B0%D0%BB%D0%BC%D1%8B\" title=\"Категория:Псалмы\">Псалмы</a> '); tam4c205407412f0.add(10, 2, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%90%D0%BF%D0%BE%D0%BA%D1%80%D0%B8%D1%84%D1%8B\" title=\"Категория:Апокрифы\">Апокрифы</a>'); tam4c205407412f0.add(11, 2, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%9A%D1%83%D0%BC%D1%80%D0%B0%D0%BD%D1%81%D0%BA%D0%B8%D0%B5_%D1%80%D1%83%D0%BA%D0%BE%D0%BF%D0%B8%D1%81%D0%B8\" title=\"Категория:Кумранские рукописи\">Кумранские рукописи</a> '); tam4c205407412f0.add(12, 2, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%98%D1%81%D1%81%D0%BB%D0%B5%D0%B4%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D1%8F_%D0%A2%D0%B0%D0%9D%D0%B0%D0%A5%D0%B0\" title=\"Категория:Исследования ТаНаХа\">Исследования ТаНаХа</a> '); tam4c205407412f0.add(13, 2, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%91%D0%B8%D0%B1%D0%BB%D0%B5%D0%B8%D1%81%D1%82%D0%B8%D0%BA%D0%B0\" title=\"Категория:Библеистика\">Библеистика</a>'); tam4c205407412f0.add(14, 13, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%91%D0%B8%D0%B1%D0%BB%D0%B5%D0%B8%D1%81%D1%82%D1%8B\" title=\"Категория:Библеисты\">Библеисты</a>'); tam4c205407412f0.add(15, 13, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%A0%D1%83%D0%BA%D0%BE%D0%BF%D0%B8%D1%81%D0%B8_%D0%91%D0%B8%D0%B1%D0%BB%D0%B8%D0%B8\" title=\"Категория:Рукописи Библии\">Рукописи Библии</a>'); tam4c205407412f0.add(16, 2, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%9A%D0%BE%D0%BC%D0%BC%D0%B5%D0%BD%D1%82%D0%B0%D1%82%D0%BE%D1%80%D1%8B_%D0%91%D0%B8%D0%B1%D0%BB%D0%B8%D0%B8\" title=\"Категория:Комментаторы Библии\">Комментаторы Библии</a>'); tam4c205407412f0.add(17, 16, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%95%D0%B2%D1%80%D0%B5%D0%B9%D1%81%D0%BA%D0%B8%D0%B5_%D0%BA%D0%BE%D0%BC%D0%BC%D0%B5%D0%BD%D1%82%D0%B0%D1%82%D0%BE%D1%80%D1%8B_%D0%91%D0%B8%D0%B1%D0%BB%D0%B8%D0%B8\" title=\"Категория:Еврейские комментаторы Библии\">Еврейские комментаторы Библии</a> '); tam4c205407412f0.add(18, 2, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%9F%D0%B5%D1%80%D0%B5%D0%B2%D0%BE%D0%B4%D1%8B_%D0%91%D0%B8%D0%B1%D0%BB%D0%B8%D0%B8\" title=\"Категория:Переводы Библии\">Переводы Библии</a> '); tam4c205407412f0.add(19, 18, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%9F%D0%B5%D1%80%D0%B5%D0%B2%D0%BE%D0%B4%D1%87%D0%B8%D0%BA%D0%B8_%D0%91%D0%B8%D0%B1%D0%BB%D0%B8%D0%B8\" title=\"Категория:Переводчики Библии\">Переводчики Библии</a> '); tam4c205407412f0.add(20, 2, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%91%D0%B8%D0%B1%D0%BB%D0%B5%D0%B9%D1%81%D0%BA%D0%B8%D0%B5_%D0%BC%D0%B5%D1%81%D1%82%D0%B0\" title=\"Категория:Библейские места\">Библейские места</a>'); tam4c205407412f0.add(21, 20, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%98%D0%B5%D1%80%D1%83%D1%81%D0%B0%D0%BB%D0%B8%D0%BC\" title=\"Категория:Иерусалим\">Иерусалим</a>'); tam4c205407412f0.add(22, 20, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%A5%D0%B5%D0%B2%D1%80%D0%BE%D0%BD\" title=\"Категория:Хеврон\">Хеврон</a> '); tam4c205407412f0.add(23, 20, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%93%D0%BE%D1%80%D0%BE%D0%B4%D0%B0_%D1%84%D0%B8%D0%BB%D0%B8%D1%81%D1%82%D0%B8%D0%BC%D0%BB%D1%8F%D0%BD\" title=\"Категория:Города филистимлян\">Города филистимлян</a> '); tam4c205407412f0.add(24, 20, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%93%D0%BE%D1%80%D0%BE%D0%B4%D0%B0_%D0%A5%D0%B0%D0%BD%D0%B0%D0%B0%D0%BD%D0%B0\" title=\"Категория:Города Ханаана\">Города Ханаана</a> '); tam4c205407412f0.add(25, 1, 'ТаНаХ: Персонажи и тексты'); tam4c205407412f0.add(26, 25, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%91%D0%B8%D0%B1%D0%BB%D0%B5%D0%B9%D1%81%D0%BA%D0%B8%D0%B5_%D1%81%D1%8E%D0%B6%D0%B5%D1%82%D1%8B\" title=\"Категория:Библейские сюжеты\">Библейские сюжеты</a>'); tam4c205407412f0.add(27, 26, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%92%D1%81%D0%B5%D0%BC%D0%B8%D1%80%D0%BD%D1%8B%D0%B9_%D0%BF%D0%BE%D1%82%D0%BE%D0%BF\" title=\"Категория:Всемирный потоп\">Всемирный потоп</a>'); tam4c205407412f0.add(28, 25, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%91%D0%B8%D0%B1%D0%BB%D0%B5%D0%B9%D1%81%D0%BA%D0%B0%D1%8F_%D1%85%D1%80%D0%BE%D0%BD%D0%BE%D0%BB%D0%BE%D0%B3%D0%B8%D1%8F\" title=\"Категория:Библейская хронология\">Библейская хронология</a> '); tam4c205407412f0.add(29, 25, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%91%D0%B8%D0%B1%D0%BB%D0%B5%D0%B9%D1%81%D0%BA%D0%B8%D0%B5_%D0%BF%D0%B5%D1%80%D1%81%D0%BE%D0%BD%D0%B0%D0%B6%D0%B8\" title=\"Категория:Библейские персонажи\">Библейские персонажи</a>'); tam4c205407412f0.add(30, 25, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%91%D0%B8%D0%B1%D0%BB%D0%B5%D0%B9%D1%81%D0%BA%D0%B8%D0%B5_%D0%B8%D0%BC%D0%B5%D0%BD%D0%B0\" title=\"Категория:Библейские имена\">Библейские имена</a>'); tam4c205407412f0.add(31, 25, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%92%D0%B5%D1%82%D1%85%D0%BE%D0%B7%D0%B0%D0%B2%D0%B5%D1%82%D0%BD%D1%8B%D0%B5_%D0%BD%D0%B0%D1%80%D0%BE%D0%B4%D1%8B\" title=\"Категория:Ветхозаветные народы\">Ветхозаветные народы</a> '); tam4c205407412f0.add(32, 25, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%95%D0%B2%D1%80%D0%B5%D0%B9%D1%81%D0%BA%D0%B0%D1%8F_%D0%BC%D0%B8%D1%84%D0%BE%D0%BB%D0%BE%D0%B3%D0%B8%D1%8F\" title=\"Категория:Еврейская мифология\">Еврейская мифология</a> '); tam4c205407412f0.add(33, 25, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%9F%D1%8F%D1%82%D0%B8%D0%BA%D0%BD%D0%B8%D0%B6%D0%B8%D0%B5\" title=\"Категория:Пятикнижие\">Пятикнижие</a> '); tam4c205407412f0.add(34, 33, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%9D%D0%B5%D0%B4%D0%B5%D0%BB%D1%8C%D0%BD%D0%B0%D1%8F_%D0%B3%D0%BB%D0%B0%D0%B2%D0%B0\" title=\"Категория:Недельная глава\">Недельная глава</a> '); tam4c205407412f0.add(35, 33, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%9F%D0%B5%D1%80%D1%81%D0%BE%D0%BD%D0%B0%D0%B6%D0%B8_%D0%9F%D1%8F%D1%82%D0%B8%D0%BA%D0%BD%D0%B8%D0%B6%D0%B8%D1%8F\" title=\"Категория:Персонажи Пятикнижия\">Персонажи Пятикнижия</a> ****<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%9F%D1%80%D0%B0%D0%BC%D0%B0%D1%82%D0%B5%D1%80%D0%B8\" title=\"Категория:Праматери\">Праматери</a> '); tam4c205407412f0.add(36, 33, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%9F%D1%80%D0%B0%D0%BE%D1%82%D1%86%D1%8B\" title=\"Категория:Праотцы\">Праотцы</a> '); tam4c205407412f0.add(37, 25, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%9A%D0%BE%D0%BB%D0%B5%D0%BD%D0%B0_%D0%98%D0%B7%D1%80%D0%B0%D0%B8%D0%BB%D1%8F\" title=\"Категория:Колена Израиля\">Колена Израиля</a> '); tam4c205407412f0.add(38, 25, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%A5%D0%B0%D0%BD%D0%B0%D0%B0%D0%BD\" title=\"Категория:Ханаан\">Ханаан</a> '); tam4c205407412f0.add(39, 25, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%AD%D0%BF%D0%BE%D1%85%D0%B0_%D0%A1%D1%83%D0%B4%D0%B5%D0%B9\" title=\"Категория:Эпоха Судей\">Эпоха Судей</a> '); tam4c205407412f0.add(40, 25, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%AD%D0%BF%D0%BE%D1%85%D0%B0_%D0%9F%D0%B5%D1%80%D0%B2%D0%BE%D0%B3%D0%BE_%D0%A5%D1%80%D0%B0%D0%BC%D0%B0\" title=\"Категория:Эпоха Первого Храма\">Эпоха Первого Храма</a> '); tam4c205407412f0.add(41, 25, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%94%D1%80%D0%B5%D0%B2%D0%BD%D0%B8%D0%B9_%D0%98%D0%B7%D1%80%D0%B0%D0%B8%D0%BB%D1%8C_%D0%B8_%D0%98%D1%83%D0%B4%D0%B5%D1%8F\" title=\"Категория:Древний Израиль и Иудея\">Древний Израиль и Иудея</a>'); tam4c205407412f0.add(42, 41, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%93%D0%BE%D1%80%D0%BE%D0%B4%D0%B0_%D0%94%D1%80%D0%B5%D0%B2%D0%BD%D0%B5%D0%B3%D0%BE_%D0%98%D0%B7%D1%80%D0%B0%D0%B8%D0%BB%D1%8F_%D0%B8_%D0%98%D1%83%D0%B4%D0%B5%D0%B8\" title=\"Категория:Города Древнего Израиля и Иудеи\">Города Древнего Израиля и Иудеи</a> '); tam4c205407412f0.add(43, 42, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%93%D0%BE%D1%80%D0%BE%D0%B4%D0%B0_%D0%94%D1%80%D0%B5%D0%B2%D0%BD%D0%B5%D0%B3%D0%BE_%D0%98%D0%B7%D1%80%D0%B0%D0%B8%D0%BB%D1%8F\" title=\"Категория:Города Древнего Израиля\">Города Древнего Израиля</a>'); tam4c205407412f0.add(44, 42, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%93%D0%BE%D1%80%D0%BE%D0%B4%D0%B0_%D0%98%D1%83%D0%B4%D0%B5%D0%B8\" title=\"Категория:Города Иудеи\">Города Иудеи</a> '); tam4c205407412f0.add(45, 41, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%9F%D0%B5%D1%80%D1%81%D0%BE%D0%BD%D0%B0%D0%BB%D0%B8%D0%B8:%D0%94%D1%80%D0%B5%D0%B2%D0%BD%D0%B8%D0%B9_%D0%98%D0%B7%D1%80%D0%B0%D0%B8%D0%BB%D1%8C\" title=\"Категория:Персоналии:Древний Израиль\">Персоналии:Древний Израиль</a> ****<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%A6%D0%B0%D1%80%D0%B8_%D0%98%D0%B7%D1%80%D0%B0%D0%B8%D0%BB%D1%8F\" title=\"Категория:Цари Израиля\">Цари Израиля</a> '); tam4c205407412f0.add(46, 41, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%9F%D0%B5%D1%80%D1%81%D0%BE%D0%BD%D0%B0%D0%BB%D0%B8%D0%B8:%D0%98%D1%83%D0%B4%D0%B5%D1%8F\" title=\"Категория:Персоналии:Иудея\">Персоналии:Иудея</a> '); tam4c205407412f0.add(47, 41, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%A6%D0%B0%D1%80%D0%B8_%D0%98%D1%83%D0%B4%D0%B5%D0%B8\" title=\"Категория:Цари Иудеи\">Цари Иудеи</a> '); tam4c205407412f0.add(48, 41, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%98%D1%83%D0%B4%D0%B5%D0%B9%D1%81%D0%BA%D0%B8%D0%B5_%D0%9F%D0%B5%D1%80%D0%B2%D0%BE%D1%81%D0%B2%D1%8F%D1%89%D0%B5%D0%BD%D0%BD%D0%B8%D0%BA%D0%B8\" title=\"Категория:Иудейские Первосвященники\">Иудейские Первосвященники</a>'); tam4c205407412f0.add(49, 25, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%9F%D0%B5%D1%80%D1%81%D0%BE%D0%BD%D0%B0%D0%BB%D0%B8%D0%B8:%D0%98%D0%B5%D1%80%D1%83%D1%81%D0%B0%D0%BB%D0%B8%D0%BC\" title=\"Категория:Персоналии:Иерусалим\">Персоналии:Иерусалим</a> '); tam4c205407412f0.add(50, 25, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%96%D0%B5%D0%BD%D1%89%D0%B8%D0%BD%D1%8B_%D0%B2_%D0%A2%D0%B0%D0%9D%D0%B0%D0%A5%D0%B5\" title=\"Категория:Женщины в ТаНаХе\">Женщины в ТаНаХе</a> '); tam4c205407412f0.add(51, 25, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%92%D0%BE%D0%B9%D0%BD%D1%8B_%D0%94%D1%80%D0%B5%D0%B2%D0%BD%D0%B5%D0%B3%D0%BE_%D0%98%D0%B7%D1%80%D0%B0%D0%B8%D0%BB%D1%8F_%D0%B8_%D0%98%D1%83%D0%B4%D0%B5%D0%B8\" title=\"Категория:Войны Древнего Израиля и Иудеи\">Войны Древнего Израиля и Иудеи</a> ***<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%90%D0%BD%D0%B3%D0%B5%D0%BB%D1%8B_%D0%B2_%D0%B8%D1%83%D0%B4%D0%B0%D0%B8%D0%B7%D0%BC%D0%B5\" title=\"Категория:Ангелы в иудаизме\">Ангелы в иудаизме</a> '); tam4c205407412f0.add(52, 1, 'Талмуд и Мидраш '); tam4c205407412f0.add(53, 52, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%A3%D1%81%D1%82%D0%BD%D1%8B%D0%B9_%D0%97%D0%B0%D0%BA%D0%BE%D0%BD\" title=\"Категория:Устный Закон\">Устный Закон</a> '); tam4c205407412f0.add(54, 52, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%A1%D0%B2%D1%8F%D1%89%D0%B5%D0%BD%D0%BD%D1%8B%D0%B5_%D0%BA%D0%BD%D0%B8%D0%B3%D0%B8_%D0%B8%D1%83%D0%B4%D0%B0%D0%B8%D0%B7%D0%BC%D0%B0\" title=\"Категория:Священные книги иудаизма\">Священные книги иудаизма</a> ***<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%9C%D0%B8%D1%88%D0%BD%D0%B0\" title=\"Категория:Мишна\">Мишна</a> '); tam4c205407412f0.add(55, 54, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%9A%D0%BE%D0%BC%D0%BC%D0%B5%D0%BD%D1%82%D0%B0%D1%82%D0%BE%D1%80%D1%8B_%D0%9C%D0%B8%D1%88%D0%BD%D1%8B\" title=\"Категория:Комментаторы Мишны\">Комментаторы Мишны</a> '); tam4c205407412f0.add(56, 52, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%A2%D0%B0%D0%BB%D0%BC%D1%83%D0%B4\" title=\"Категория:Талмуд\">Талмуд</a> '); tam4c205407412f0.add(57, 56, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%9A%D0%BE%D0%BC%D0%BC%D0%B5%D0%BD%D1%82%D0%B0%D1%82%D0%BE%D1%80%D1%8B_%D0%A2%D0%B0%D0%BB%D0%BC%D1%83%D0%B4%D0%B0\" title=\"Категория:Комментаторы Талмуда\">Комментаторы Талмуда</a> ***<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%90%D0%B3%D0%B0%D0%B4%D0%B8%D1%87%D0%B5%D1%81%D0%BA%D0%B0%D1%8F_%D0%BB%D0%B8%D1%82%D0%B5%D1%80%D0%B0%D1%82%D1%83%D1%80%D0%B0\" title=\"Категория:Агадическая литература\">Агадическая литература</a> ***<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%95%D0%B2%D1%80%D0%B5%D0%B9%D1%81%D0%BA%D0%B0%D1%8F_%D0%BC%D0%B8%D1%84%D0%BE%D0%BB%D0%BE%D0%B3%D0%B8%D1%8F\" title=\"Категория:Еврейская мифология\">Еврейская мифология</a> '); tam4c205407412f0.add(58, 56, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%90%D0%BD%D0%B3%D0%B5%D0%BB%D1%8B_%D0%B2_%D0%B8%D1%83%D0%B4%D0%B0%D0%B8%D0%B7%D0%BC%D0%B5\" title=\"Категория:Ангелы в иудаизме\">Ангелы в иудаизме</a>'); tam4c205407412f0.add(59, 56, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%94%D0%B5%D0%BC%D0%BE%D0%BD%D1%8B_%D0%B2_%D0%B8%D1%83%D0%B4%D0%B0%D0%B8%D0%B7%D0%BC%D0%B5\" title=\"Категория:Демоны в иудаизме\">Демоны в иудаизме</a> '); tam4c205407412f0.add(60, 1, 'Иудаизм — идеи и практика'); tam4c205407412f0.add(61, 60, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%98%D1%83%D0%B4%D0%B0%D0%B8%D0%B7%D0%BC\" title=\"Категория:Иудаизм\">Иудаизм</a>'); tam4c205407412f0.add(62, 60, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%9C%D0%BE%D0%BD%D0%BE%D1%82%D0%B5%D0%B8%D0%B7%D0%BC\" title=\"Категория:Монотеизм\">Монотеизм</a> '); tam4c205407412f0.add(63, 60, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%A3%D1%81%D1%82%D0%BD%D1%8B%D0%B9_%D0%97%D0%B0%D0%BA%D0%BE%D0%BD\" title=\"Категория:Устный Закон\">Устный Закон</a>'); tam4c205407412f0.add(64, 60, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%9F%D0%B5%D1%80%D1%81%D0%BE%D0%BD%D0%B0%D0%BB%D0%B8%D0%B8:%D0%98%D1%83%D0%B4%D0%B0%D0%B8%D0%B7%D0%BC\" title=\"Категория:Персоналии:Иудаизм\">Персоналии:Иудаизм</a> '); tam4c205407412f0.add(65, 60, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%97%D0%B0%D0%BF%D0%BE%D0%B2%D0%B5%D0%B4%D0%B8\" title=\"Категория:Заповеди\">Заповеди</a>'); tam4c205407412f0.add(66, 60, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%9A%D0%B0%D0%BB%D0%B5%D0%BD%D0%B4%D0%B0%D1%80%D1%8C_%D0%B8_%D0%BF%D1%80%D0%B0%D0%B7%D0%B4%D0%BD%D0%B8%D0%BA%D0%B8\" title=\"Категория:Календарь и праздники\">Календарь и праздники</a>'); tam4c205407412f0.add(67, 66, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%95%D0%B2%D1%80%D0%B5%D0%B9%D1%81%D0%BA%D0%B8%D0%B9_%D0%BA%D0%B0%D0%BB%D0%B5%D0%BD%D0%B4%D0%B0%D1%80%D1%8C\" title=\"Категория:Еврейский календарь\">Еврейский календарь</a>'); tam4c205407412f0.add(68, 67, '<a href=\"/w/index.php?title=%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%9C%D0%B5%D1%81%D1%8F%D1%86%D1%8B_%D0%B5%D0%B2%D1%80%D0%B5%D0%B9%D1%81%D0%BA%D0%BE%D0%B3%D0%BE_%D0%BA%D0%B0%D0%BB%D0%B5%D0%BD%D0%B4%D0%B0%D1%80%D1%8F&action=edit&redlink=1\" class=\"new\" title=\"Категория:Месяцы еврейского календаря (такая страница в Ежевике отсутствует). Хотите ли вы посмотреть ее в Википедии, или же импортировать/создать ее?\">Месяцы еврейского календаря</a> '); tam4c205407412f0.add(69, 67, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%A8%D0%B0%D0%B1%D0%B1%D0%B0%D1%82\" title=\"Категория:Шаббат\">Шаббат</a> '); tam4c205407412f0.add(70, 67, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%A5%D0%B0%D0%BD%D1%83%D0%BA%D0%B0\" title=\"Категория:Ханука\">Ханука</a> '); tam4c205407412f0.add(71, 67, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%9F%D1%83%D1%80%D0%B8%D0%BC\" title=\"Категория:Пурим\">Пурим</a>'); tam4c205407412f0.add(72, 67, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%9F%D1%80%D0%B0%D0%B7%D0%B4%D0%BD%D0%B8%D0%BA%D0%B8_%D0%98%D0%B7%D1%80%D0%B0%D0%B8%D0%BB%D1%8F\" title=\"Категория:Праздники Израиля\">Праздники Израиля</a> '); tam4c205407412f0.add(73, 60, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%95%D0%B2%D1%80%D0%B5%D0%B9%D1%81%D0%BA%D0%B8%D0%B5_%D0%B7%D0%B0%D0%BA%D0%BE%D0%BD%D1%8B_%D0%B8_%D0%BE%D0%B1%D1%8B%D1%87%D0%B0%D0%B8\" title=\"Категория:Еврейские законы и обычаи\">Еврейские законы и обычаи</a>'); tam4c205407412f0.add(74, 73, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%A8%D0%B0%D0%B1%D0%B1%D0%B0%D1%82\" title=\"Категория:Шаббат\">Шаббат</a> '); tam4c205407412f0.add(75, 73, '<a href=\"/w/index.php?title=%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%97%D0%B0%D0%BA%D0%BE%D0%BD%D1%8B_%D1%82%D1%80%D0%B0%D1%83%D1%80%D0%B0_%D0%B2_%D0%B8%D1%83%D0%B4%D0%B0%D0%B8%D0%B7%D0%BC%D0%B5&action=edit&redlink=1\" class=\"new\" title=\"Категория:Законы траура в иудаизме (такая страница в Ежевике отсутствует). Хотите ли вы посмотреть ее в Википедии, или же импортировать/создать ее?\">Законы траура в иудаизме</a>'); tam4c205407412f0.add(76, 73, '<a href=\"/w/index.php?title=%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%9F%D0%BE%D1%81%D1%82%D1%8B_%D0%B2_%D0%B8%D1%83%D0%B4%D0%B0%D0%B8%D0%B7%D0%BC%D0%B5&action=edit&redlink=1\" class=\"new\" title=\"Категория:Посты в иудаизме (такая страница в Ежевике отсутствует). Хотите ли вы посмотреть ее в Википедии, или же импортировать/создать ее?\">Посты в иудаизме</a> '); tam4c205407412f0.add(77, 73, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%95%D0%B2%D1%80%D0%B5%D0%B9%D1%81%D0%BA%D0%B8%D0%B5_%D0%BE%D0%B1%D1%80%D1%8F%D0%B4%D1%8B\" title=\"Категория:Еврейские обряды\">Еврейские обряды</a> '); tam4c205407412f0.add(78, 60, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%A1%D0%B5%D0%BC%D1%8C%D1%8F\" title=\"Категория:Семья\">Семья</a>'); tam4c205407412f0.add(79, 78, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%95%D0%B2%D1%80%D0%B5%D0%B9%D1%81%D0%BA%D0%B0%D1%8F_%D1%81%D0%B2%D0%B0%D0%B4%D1%8C%D0%B1%D0%B0\" title=\"Категория:Еврейская свадьба\">Еврейская свадьба</a> '); tam4c205407412f0.add(80, 60, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%95%D0%B2%D1%80%D0%B5%D0%B9%D1%81%D0%BA%D0%B8%D0%B9_%D0%B6%D0%B8%D0%B7%D0%BD%D0%B5%D0%BD%D0%BD%D1%8B%D0%B9_%D1%86%D0%B8%D0%BA%D0%BB\" title=\"Категория:Еврейский жизненный цикл\">Еврейский жизненный цикл</a> ***<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%95%D0%B2%D1%80%D0%B5%D0%B9%D1%81%D0%BA%D0%B8%D0%B5_%D0%BA%D0%BB%D0%B0%D0%B4%D0%B1%D0%B8%D1%89%D0%B0\" title=\"Категория:Еврейские кладбища\">Еврейские кладбища</a> '); tam4c205407412f0.add(81, 60, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%95%D0%B2%D1%80%D0%B5%D0%B9%D1%81%D0%BA%D0%B8%D0%B5_%D1%81%D0%B8%D0%BC%D0%B2%D0%BE%D0%BB%D1%8B\" title=\"Категория:Еврейские символы\">Еврейские символы</a> '); tam4c205407412f0.add(82, 60, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%9A%D0%B0%D1%88%D1%80%D1%83%D1%82\" title=\"Категория:Кашрут\">Кашрут</a>'); tam4c205407412f0.add(83, 82, '<a href=\"/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%9F%D0%B8%D1%89%D0%B0_%D0%B2_%D1%80%D0%B5%D0%BB%D0%B8%D0%B3%D0%B8%D0%B8\" title=\"Категория:Пища в религии\">Пища в религии</a> '); document.getElementById('rubtree').innerHTML=tam4c205407412f0.toString(); } function hotcat() { if ( hotcat_check_action() ) return; // Edited page, reloading anyway // Do not add interface to protected pages, if user has no edit permission // Also disable it on preview pages: on a preview, we *are* already editing, // and HotCat must not open the page for editing a second time. Lupo, 2008-02-27 if( wgAction != "view" || document.getElementById('ca-viewsource' ) != null || wgNamespaceNumber == -1 ) return; // If we have no Categories div, then add one // TheDJ, 2008-02-28 var visible_catlinks = document.getElementById ('mw-normal-catlinks') || getElementsByClassName ( document, "p", "catlinks" ) [0]; var hidden_catlinks = document.getElementById ('mw-hidden-catlinks'); if ( visible_catlinks == null || typeof( visible_catlinks ) == 'undefined' ) { d3 = document.createElement ( "div" ); d3.id = "mw-normal-catlinks"; d3.innerHTML = '<a href="/wiki/Special:Categories" title="Служебная:Categories">Категории</a>: '; visible_catlinks = d3; if ( hidden_catlinks ) { // There are hidden categories. hidden_catlinks.parentNode.insertBefore( d3, hidden_catlinks ); hidden_catlinks.parentNode.className = "catlinks"; } else { // This page has no categories at all, lets create a section where we can add them. var footer = getElementsByClassName ( document, "div", "printfooter" ) [0]; if( !footer ) return; // We have no idea where we should add this. d1 = document.createElement ( "div" ); d1.id = "catlinks"; d1.className = "catlinks"; d1.appendChild ( d3 ); footer.parentNode.insertBefore( d1, footer.nextSibling ); } } hotcat_modify_existing ( visible_catlinks ); hotcat_append_add_span ( visible_catlinks ); } function hotcat_append_add_span ( catline ) { var span_add = document.createElement ( "span" ); var span_sep = document.createTextNode ( " | " ); if ( catline.getElementsByTagName("span")[0] ) catline.appendChild ( span_sep ); catline.appendChild ( span_add ); hotcat_create_span ( span_add ); } String.prototype.ucFirst = function() { return this.substr(0,1).toUpperCase() + this.substr(1,this.length); } function hotcat_is_on_blacklist ( cat_title ) { if ( !cat_title ) return 0; cat_title = cat_title.ucFirst.replace( /Категория:/gi, "" ); for ( var i = 0; i < hotcat_modify_blacklist.length; i++ ) { if ( cat_title.substr ( 0, hotcat_modify_blacklist[i].length ) == hotcat_modify_blacklist[i] ) return 1; } return 0; } function hotcat_modify_span ( span, i ) { //var cat_title = span.firstChild.getAttribute ( "title" ); // This fails with MW 1.13alpha if the category is a redlink, because MW 1.13alpha appends // [[MediaWiki:Red-link-title]] to the category name... we another way to get that category // name. Lupo, 2008-02-27 var cat_title = span.firstChild.innerHTML; // without "Category:" var sep1 = document.createTextNode ( " " ); var a1 = document.createTextNode ( "(−)" ); var remove_link = document.createElement ( "a" ); // Set the href to a dummy value to make sure we don't move if somehow the onclick handler // is bypassed. remove_link.href = "#catlinks"; remove_link.onclick = hotcat_remove; remove_link.appendChild ( a1 ); span.appendChild ( sep1 ); span.appendChild ( remove_link ); // Disabled blacklist check TheDJ, 2008-02-28 // if ( hotcat_is_on_blacklist ( cat_title ) ) return; var mod_id = "hotcat_modify_" + i; var sep2 = document.createTextNode ( " " ); var a2 = document.createTextNode ( "(±)" ); var modify_link = document.createElement ( "a" ); modify_link.id = mod_id; modify_link.href = "javascript:hotcat_modify(\"" + mod_id + "\");"; modify_link.appendChild ( a2 ); span.appendChild ( sep2 ); span.appendChild ( modify_link ); } function hotcat_modify_existing ( catline ) { var spans = catline.getElementsByTagName ( "span" ); for ( var i = 0; i < spans.length; i++ ) { hotcat_modify_span ( spans[i], i ); } } function hotcat_getEvt (evt) { return evt || window.event || window.Event; // Gecko, IE, Netscape } function hotcat_evt2node (evt) { var node = null; try { var e = hotcat_getEvt (evt); node = e.target; if (!node) node = e.srcElement; } catch (ex) { node = null; } return node; } function hotcat_evtkeys (evt) { var code = 0; try { var e = hotcat_getEvt (evt); if (typeof(e.ctrlKey) != 'undefined') { // All modern browsers if (e.ctrlKey) code |= 1; if (e.shiftKey) code |= 2; if (e.altKey) code |= 4; } else if (typeof (e.modifiers) != 'undefined') { // Netscape... if (e.modifiers & Event.CONTROL_MASK) code |= 1; if (e.modifiers & Event.SHIFT_MASK) code |= 2; if (e.modifiers & Event.ALT_MASK) code |= 4; } } catch (ex) { } return code; } function hotcat_killEvt (evt) { try { var e = hotcat_getEvt (evt); if (typeof (e.preventDefault) != 'undefined') { e.preventDefault(); e.stopPropagation() } else e.cancelBubble = true; } catch (ex) { } } function hotcat_remove (evt) { var node = hotcat_evt2node (evt); if (!node) return false; // Get the category name from the original link to the category var cat_title = node.parentNode.firstChild.innerHTML; var editlk = document.getElementById('ca-edit').getElementsByTagName('a')[0].href; if ((hotcat_evtkeys (evt) & 1) || (hotcat_evtkeys (evt) & 4 )) // CTRL or ALT pressed? editlk = editlk + '&hotcat_nocommit=1'; hotcat_killEvt (evt); document.location = editlk + '&hotcat_removecat=' + encodeURIComponent(cat_title); return false; } function hotcatGetParamValue(paramName, h) { if (typeof(h) == 'undefined' ) { h = document.location.href; } var cmdRe=RegExp('[&?]'+paramName+'=([^&]*)'); var m=cmdRe.exec(h); if (m) { try { return decodeURIComponent(m[1]); } catch (someError) {} } return null; } // New. Code by Lupo & Superm401, added by Lupo, 2008-02-2007 function hotcat_find_category (wikitext, category) { var cat_name = category.replace(/([\\\^\$\.\?\*\+\(\)])/g, "\\$1"); var initial = cat_name.substr (0, 1); var cat_regex = new RegExp ("\\[\\[\\s*(?:[Cc]ategory|[Кк]атегория)\\s*:\\s*" + (initial == "\\" ? initial : "[" + initial.toUpperCase() + initial.toLowerCase() + "]") + cat_name.substring (1).replace (/[ _]/g, "[ _]") + "\\s*(\\|.*?)?\\]\\]", "g" ); var result = new Array(); var curr_match = null; while ((curr_match = cat_regex.exec (wikitext)) != null) { result [result.length] = {match : curr_match}; } return result; // An array containing all matches, with positions, in result[i].match } // New. Code by TheDJ, 2008-03-12 function hotcat_find_ins ( wikitext ) { var re = /\[\[(?:Категория|Category):[^\]]+\]\]/ig var index = -1; while( re.exec(wikitext) != null ) index = re.lastIndex; if( index > -1) return index; //we should try to find interwiki links here, but that's for later. return -1; } // Rewritten (nearly) from scratch. Lupo, 2008-02-27 function hotcat_check_action() { var ret = 0; if (wgAction != 'edit' || typeof(document.editform) == "undefined" ) return ret; // Not an edit page, so not our business... var summary = new Array(); var t = document.editform.wpTextbox1.value; var prevent_autocommit = 0; if ( (typeof (hotcat_no_autocommit) != "undefined" && hotcat_no_autocommit) || hotcatGetParamValue ('hotcat_nocommit') == '1') prevent_autocommit = 1; var cat_rm = hotcatGetParamValue ('hotcat_removecat'); var cat_add = hotcatGetParamValue ('hotcat_newcat'); var cat_key = null; if (cat_rm != null && cat_rm.length > 0) { var matches = hotcat_find_category (t, cat_rm); if (!matches || matches.length == 0) { alert ('Категория «' + cat_rm + '» не найдена — возможно, она добавлена при помощи шаблона.'); prevent_autocommit = 1; } else if (matches.length > 1) { alert ('Категория «' + cat_rm + "» встречается несколько раз — не ясно, какое из включений удалять."); prevent_autocommit = 1; } else { if (cat_add != null && cat_add.length > 0 && matches[0].match.length > 1) cat_key = matches[0].match[1]; // Remember the category key, if any. var t1 = t.substring (0, matches[0].match.index); var t2 = t.substring (matches[0].match.index + matches[0].match[0].length); // Remove whitespace (properly): strip whitespace, but only up to the next line feed. // If we then have two linefeeds in a row, remove one. Otherwise, if we have two non- // whitespace characters, insert a blank. var i = t1.length - 1; while (i >= 0 && t1.charAt (i) != '\n' && t1.substr (i, 1).search (/\s/) >= 0) i--; var j = 0; while (j < t2.length && t2.charAt (j) != '\n' && t1.substr (j, 1).search (/\s/) >= 0) j++; if (i >= 0 && t1.charAt (i) == '\n' && j < t2.length && t2.charAt (j) == '\n') i--; if (i >= 0) t1 = t1.substring (0, i+1); else t1 = ""; if (j < t2.length) t2 = t2.substring (j); else t2 = ""; if (t1.length > 0 && t1.substring (t1.length - 1).search (/\S/) >= 0 && t2.length > 0 && t2.substr (0, 1).search (/\S/) >= 0) t1 = t1 + ' '; t = t1 + t2; summary.push ( "убрана категория «" + cat_rm + "»" ); ret = 1; } } if (cat_add != null && cat_add.length > 0) { var matches = hotcat_find_category (t, cat_add); if (matches && matches.length > 0) { alert ('Категория «' + cat_add + '» уже присутствует — не добавляю.'); prevent_autocommit = 1; } else { var insertionpoint = hotcat_find_ins( t ); var newcatstring = '\n\[\[Категория:' + cat_add + (cat_key != null ? cat_key : "") + '\]\]'; if( insertionpoint > -1 ) { t = t.substring(0, insertionpoint ) + newcatstring + t.substring( insertionpoint ); } else { t = t + newcatstring; } summary.push ( "добавлена категория «" + cat_add + "»" ); // Remove "uncategorized" and "cat" from "rq" var t2 = t.replace(/\{\{(uncategorized[^}]|nocat|нет категорий)*\}\}\n?/gi, '') t2 = t2.replace(/\{\{rq\s*(\|.*?)\}\}/ig, function(str, par){ return '{{rq'+par.replace(/\|\s*cat(?!\w)/ig,'')+'}}' }) t2 = t2.replace(/\{\{rq\}\}\n?/gi,'') if (t2.length != t.length) { t = t2; summary.push ( "убрано {{нет категорий}}" ); } ret = 1; } } if (ret) { document.editform.wpTextbox1.value = t; document.editform.wpSummary.value = summary.join( "; " ) + " с помощью [[ВП:HOTCAT|HotCat]]"; document.editform.wpMinoredit.checked = true; if (!prevent_autocommit) { // Hide the entire edit section so as not to tempt the user into editing... var bodyContentId = document.getElementById("bodyContent") || document.getElementById("mw_contentholder"); bodyContentId.style.display = "none"; document.editform.submit(); } } return ret; } function hotcat_clear_span ( span_add ) { while ( span_add.firstChild ) span_add.removeChild ( span_add.firstChild ); } function hotcat_create_span ( span_add ) { hotcat_clear_span ( span_add ); var a_add = document.createElement ( "a" ); var a_text = document.createTextNode ( "(+)" ); span_add.id = "hotcat_add"; a_add.href = "javascript:hotcat_add_new()"; a_add.appendChild ( a_text ); //span_add.appendChild ( a_add ); dt =document.createElement ( "div" ); dt.id = "rubtree"; dt.className = "dtree"; dt.appendChild(a_add); span_add.appendChild ( dt ); } function hotcat_modify ( link_id ) { var link = document.getElementById ( link_id ); var span = link.parentNode; var catname = span.firstChild.innerHTML; // was .firstChild.data. Just for consistency while ( span.firstChild.nextSibling ) span.removeChild ( span.firstChild.nextSibling ); span.firstChild.style.display = "none"; hotcat_create_new_span ( span, catname ); hotcat_last_v = ""; hotcat_text_changed(); // Update icon } function hotcat_add_new() { var span_add = document.getElementById ( "hotcat_add" ); hotcat_clear_span ( span_add ); hotcat_last_v = ""; hotcat_create_new_span ( span_add, "" ); } function hotcat_create_new_span ( thespan, init_text ) { var form = document.createElement ( "form" ); form.method = "post"; form.onsubmit = function() { hotcat_ok(); return false; }; form.id = "hotcat_form"; form.style.display = "inline"; var list = null; if (!hotcat_nosuggestions) { // Only do this if we may actually use XMLHttp... list = document.createElement ( "select" ); list.id = "hotcat_list"; list.onclick = function() { var l = document.getElementById("hotcat_list"); if (l != null) document.getElementById("hotcat_text").value = l.options[l.selectedIndex].text; hotcat_text_changed(); }; list.ondblclick = function (evt) { var l = document.getElementById("hotcat_list"); if (l != null) document.getElementById("hotcat_text").value = l.options[l.selectedIndex].text; // Don't call text_changed here if on upload form: hotcat_ok will remove the list // anyway, so we must not ask for new suggestions since show_suggestions might // raise an exception if it tried to show a no longer existing list. // Lupo, 2008-01-20 hotcat_text_changed(); hotcat_ok((hotcat_evtkeys (evt) & 1) || (hotcat_evtkeys (evt) & 4)); // CTRL or ALT pressed? }; list.style.display = "none"; } var text = document.createElement ( "input" ); text.size = 40; text.id = "hotcat_text"; text.type = "text"; text.value = init_text; text.onkeyup = function() { window.setTimeout("hotcat_text_changed();", hotcat_suggestion_delay ); }; var exists = null; if (!hotcat_nosuggestions) { exists = document.createElement ( "img" ); exists.id = "hotcat_exists"; exists.src = hotcat_exists_no; } var OK = document.createElement ( "input" ); OK.type = "button"; OK.value = "OK"; OK.onclick = function (evt) { hotcat_ok ((hotcat_evtkeys (evt) & 1) || (hotcat_evtkeys (evt) & 4)); }; // CTRL or ALT pressed? var cancel = document.createElement ( "input" ); cancel.type = "button"; cancel.value = "Отмена"; cancel.onclick = hotcat_cancel; var rub = document.createElement ( "input" ); rub.type = "button"; rub.value = "Rubrikot"; rub.onclick =add_rubrikator; if (list != null) form.appendChild ( list ); form.appendChild ( text ); if (exists != null) form.appendChild ( exists ); form.appendChild ( OK ); form.appendChild ( cancel ); form.appendChild ( rub ); thespan.appendChild ( form ); text.focus(); } function hotcat_ok (nocommit) { var text = document.getElementById ( "hotcat_text" ); var v = text.value; // Empty category ? if ( v == "" ) { hotcat_cancel(); return; } var editlk = document.getElementById('ca-edit').getElementsByTagName('a')[0].href; var url = editlk + '&hotcat_newcat=' + encodeURIComponent( v ); // Editing existing? var span = text.parentNode.parentNode; // span.form.text if ( span.id != "hotcat_add" ) { // Not plain "addition" url += '&hotcat_removecat=' + span.firstChild.innerHTML; } if (nocommit) url = url + '&hotcat_nocommit=1'; document.location = url; } function hotcat_just_add ( text ) { var span = document.getElementById("hotcat_form"); while ( span.tagName != "SPAN" ) span = span.parentNode; var add = 0; if ( span.id == "hotcat_add" ) add = 1; span.id = ""; while ( span.firstChild ) span.removeChild ( span.firstChild ); var na = document.createElement ( "a" ); na.href = wgArticlePath.split("$1").join( encodeURI ("Категория:" + text)); na.appendChild ( document.createTextNode ( text ) ); na.setAttribute ( "title", "Категория:" + text ); span.appendChild ( na ); var catline = getElementsByClassName ( document, "p", "catlinks" ) [0]; if ( add ) hotcat_append_add_span ( catline ); for ( var i = 0; i < span.parentNode.childNodes.length; i++ ) { if ( span.parentNode.childNodes[i] != span ) continue; hotcat_modify_span ( span, i ); break; } } function hotcat_cancel() { var span = document.getElementById("hotcat_form").parentNode; if ( span.id == "hotcat_add" ) { hotcat_create_span ( span ); } else { while ( span.firstChild.nextSibling ) span.removeChild ( span.firstChild.nextSibling ); span.firstChild.style.display = ""; for ( var i = 0; i < span.parentNode.childNodes.length; i++ ) { if ( span.parentNode.childNodes[i] != span ) continue; hotcat_modify_span ( span, i ); break; } } } function hotcat_text_changed() { if ( hotcat_running ) return; var text = document.getElementById ( "hotcat_text" ); var v = text.value.ucFirst(); if ( hotcat_last_v == v ) return; // Nothing's changed... if (hotcat_nosuggestions) { // On IE, XMLHttp uses ActiveX, and the user may deny execution... just make sure // the list is not displayed. var list = document.getElementById ('hotcat_list'); if (list != null) list.style.display = "none"; var exists = document.getElementById ('hotcat_exists'); if (exists != null) exists.style.display = "none"; return; } hotcat_running = 1; hotcat_last_v = v; if ( v != "" ) { var url = wgServer + wgScriptPath + "/api.php?format=xml&action=query&list=allpages&apnamespace=14&apfrom=" + encodeURIComponent( v ); var request = sajax_init_object(); if (request == null) { //Oops! We don't have XMLHttp... hotcat_nosuggestions = true; var list = document.getElementById ('hotcat_list'); if (list != null) list.style.display = "none"; var exists = document.getElementById ('hotcat_exists'); if (exists != null) exists.style.display = "none"; hotcat_running = 0; return; } request.open('GET', url, true); request.onreadystatechange = function() { if (request.readyState == 4) { var xml = request.responseXML; if ( xml == null ) return; var pages = xml.getElementsByTagName( "p" ); var titles = new Array(); for ( var i = 0; i < pages.length; i++ ) { // Strip "Category:" but don't break on titles like "Category:Space: 2001 a space odyssey" var s = pages[i].getAttribute("title").replace( /Категория:/gi, "" ); if ( s.substr ( 0, hotcat_last_v.length ) != hotcat_last_v ) break; titles.push ( s ); } hotcat_show_suggestions ( titles ); } }; request.setRequestHeader ('Pragma', 'cache=yes'); request.setRequestHeader ('Cache-Control', 'no-transform'); request.send(null); } else { hotcat_show_suggestions ( new Array() ); } hotcat_running = 0; } function hotcat_show_suggestions ( titles ) { var text = document.getElementById ( "hotcat_text" ); var list = document.getElementById ( "hotcat_list" ); var icon = document.getElementById ( "hotcat_exists" ); // Somehow, after a double click on the selection list, we still get here in IE, but // the list may no longer exist... Lupo, 2008-01-20 if (list == null) return; if (hotcat_nosuggestions) { list.style.display = "none"; if (icon != null) icon.style.display = "none"; return; } if ( titles.length == 0 ) { list.style.display = "none"; icon.src = hotcat_exists_no; return; } // Set list size to minimum of 5 and actual number of titles. Formerly was just 5. // Lupo, 2008-01-20 list.size = (titles.length > 5 ? 5 : titles.length); // Avoid list height 1: double-click doesn't work in FF. Lupo, 2008-02-27 if (list.size == 1) list.size = 2; list.style.align = "left"; list.style.zIndex = 5; list.style.position = "absolute"; // Was listh = titles.length * 20: that makes no sense if titles.length > list.size // Lupo, 2008-01-20 var listh = list.size * 20; var nl = parseInt (text.offsetLeft) - 1; var nt = parseInt (text.offsetTop) - listh; list.style.top = nt + "px"; list.style.width = text.offsetWidth + "px"; list.style.height = listh + "px"; list.style.left = nl + "px"; while ( list.firstChild ) list.removeChild ( list.firstChild ); for ( var i = 0; i < titles.length; i++ ) { var opt = document.createElement ( "option" ); var ot = document.createTextNode ( titles[i] ); opt.appendChild ( ot ); //opt.value = titles[i]; list.appendChild ( opt ); } icon.src = hotcat_exists_yes; var nof_titles = titles.lenght; var first_title = titles.shift(); var v = text.value.ucFirst(); if ( first_title == v ) { if( nof_titles == 1 ) { // Only one result, and it's the same as whatever is in the input box: makes no sense // to show the list. But make sure the text field has the focus ! text.focus(); list.style.display = "none"; } return; } list.style.display = "block"; // Put the first entry of the title list into the text field, and select the // new suffix such that it'll be overwritten if the user keeps typing. // ONLY do this if we have a way to select parts of the content of a text // field, otherwise, this is very annoying for the user. Note: IE does it // again differently from the two versions previously implemented. // Lupo, 2008-01-20 // Only put first entry into the list if the user hasn't typed something // conflicting yet Dschwen 2008-02-18 if ( ( text.setSelectionRange || text.createTextRange || typeof (text.selectionStart) != 'undefined' && typeof (text.selectionEnd) != 'undefined' ) && v == first_title.substr(0,v.length) ) { // taking hotcat_last_v was a major annoyance, // since it constantly killed text that was typed in // _since_ the last AJAX request was fired! Dschwen 2008-02-18 var nosel = v.length; text.value = first_title; if (text.setSelectionRange) // e.g. khtml text.setSelectionRange (nosel, first_title.length); else if (text.createTextRange) { // IE var new_selection = text.createTextRange(); new_selection.move ("character", nosel); new_selection.moveEnd ("character", first_title.length - nosel); new_selection.select(); } else { text.selectionStart = nosel; text.selectionEnd = first_title.length; } } } /* </nowiki> */