NoPH8 (обсуждение | вклад) (Новая страница: «//<!-- /* importScript('Участник:Sergey kudryavtsev/linkificator.js'); if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) { $j( fun...») | NoPH8 (обсуждение | вклад) | ||
Строка 2: | Строка 2: | ||
/* | /* | ||
importScript('Участник:Sergey kudryavtsev/linkificator.js'); | importScript('Участник:Sergey kudryavtsev/linkificator.js'); | ||
− | + | ||
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) { | if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) { | ||
$j( function() { | $j( function() { |
Текущая версия на 09:33, 10 октября 2011
//<!-- /* importScript('Участник:Sergey kudryavtsev/linkificator.js'); if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) { $j( function() { // Новая группа 'wikt' в секции 'main' $j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'main', groups: { 'wikt': { tools: { 'wikify': { label: 'Викификатор', type: 'button', icon: 'http://upload.wikimedia.org/wikipedia/commons/0/06/Wikify-toolbutton.png', action: { type: 'callback', execute: function() { Wikify(); } }, }, 'linkify': { label: 'Линкификатор', type: 'button', icon: 'insert-ilink.png', action: { type: 'callback', execute: function() { linkify(); } }, }, 'accent': { label: 'Ударение', type: 'button', icon: 'http://upload.wikimedia.org/wikipedia/commons/0/0e/Button_acute_accent.png', action: {type: 'encapsulate', options: { pre: "", post: "\u0301"}} }, 'quotes': { label: 'Кавычки', type: 'button', icon: 'http://upload.wikimedia.org/wikisource/ru/0/0b/Button-quotes.png', action: {type: 'encapsulate', options: { pre: "\u00AB", post: "\u00BB" }} } } } } } ); // Новая секция 'markup' $j('#wpTextbox1').wikiEditor('addToToolbar', { sections: { 'markup': { type: 'toolbar', label: 'Разметка' } } }); // Структура статьи $j('#wpTextbox1').wikiEditor('addToToolbar', { section: 'markup', groups: { 'headers': { tools: { 'headers': { label: 'Структура статьи', type: 'select', list: { 'item1': { label: '=== Морфологические и синтаксические свойства ===', action: {type: 'encapsulate', options: {pre: '=== Морфологические и синтаксические свойства ===\n', post: '', ownline: true}} }, 'item2': { label: '=== Произношение ===', action: {type: 'encapsulate', options: {pre: '=== Произношение ===\n{{transcription|}}\n', post: '', ownline: true}} }, 'item3': { label: '=== Семантические свойства ===\n', action: {type: 'encapsulate', options: {pre: '=== Семантические свойства ===\n', post: '', ownline: true}} }, 'item3_1': { label: '==== Значение ====', action: {type: 'encapsulate', options: {pre: '==== Значение ====\n# {{пример||перевод=}}\n', post: '', ownline: true}} }, 'item3_2': { label: '==== Синонимы ====', action: {type: 'encapsulate', options: {pre: '==== Синонимы ====\n# \n', post: '', ownline: true}} }, 'item3_3': { label: '==== Антонимы ====', action: {type: 'encapsulate', options: {pre: '==== Антонимы ====\n# \n', post: '', ownline: true}} }, 'item3_4': { label: '==== Гиперонимы ====', action: {type: 'encapsulate', options: {pre: '==== Гиперонимы ====\n# \n', post: '', ownline: true}} }, 'item3_5': { label: '==== Гипонимы ====', action: {type: 'encapsulate', options: {pre: '==== Гипонимы ====\n# \n', post: '', ownline: true}} }, 'item4': { label: '=== Родственные слова ===', action: {type: 'encapsulate', options: {pre: '=== Родственные слова ===\n', post: '', ownline: true}} }, 'item5': { label: '=== Фразеологизмы и устойчивые сочетания ===', action: {type: 'encapsulate', options: {pre: '=== Фразеологизмы и устойчивые сочетания ===\n', post: '', ownline: true}} }, 'item6': { label: '=== Этимология ===', action: {type: 'encapsulate', options: {pre: '=== Этимология ===\nПроисходит от {{этимология:|}}', post: '', ownline: true}} }, 'item7': { label: '=== Библиография ===', action: {type: 'encapsulate', options: {pre: '=== Библиография ===\n', post: '', ownline: true}} }, } } } } } }); $j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'markup', groups: { 'templates': { label: 'Шаблоны', tools: { 'example': { label: 'пример', type: 'button', icon: 'http://upload.wikimedia.org/wikipedia/commons/3/3b/Button_template_alt.png', // icon: 'http://upload.wikimedia.org/wikipedia/commons/e/ec/Button_base.png', action: {type: 'encapsulate', options: {pre: "{{пример|", post: "|перевод=}}"}} }, 'em': { label: 'выдел', type: 'button', icon: 'http://upload.wikimedia.org/wikipedia/commons/3/3b/Button_template_alt.png', action: {type: 'encapsulate', options: {pre: "{{выдел|", post: "}}"}} }, 'syllables': { label: 'по-слогам', type: 'button', icon: 'http://upload.wikimedia.org/wikipedia/commons/3/3b/Button_template_alt.png', action: {type: 'encapsulate', options: {pre: "{{по-слогам|", post: "}}"}} }, 'morpho': { label: 'морфо', type: 'button', icon: 'http://upload.wikimedia.org/wikipedia/commons/3/3b/Button_template_alt.png', action: {type: 'encapsulate', options: {pre: "{{морфо|прист1=|прист2=|корень1=|соед=|корень2=|суфф1=|суфф2=|оконч=|частица=}}", post: ""}} }, 'etim': { label: 'Происходит от', type: 'button', icon: 'http://upload.wikimedia.org/wikipedia/commons/3/3b/Button_template_alt.png', action: {type: 'encapsulate', options: {pre: 'Происходит от {{этимология:|', peri: 'la', post: '}}'}} }, 'unfinished': { label: 'unfinished', type: 'button', icon: 'http://upload.wikimedia.org/wikipedia/commons/3/3b/Button_template_alt.png', action: {type: 'encapsulate', options: {pre: "{{unfinished|", post: "|p=1|e=1|s=1|m=1}}", peri: 'la'}} }, 'categ': { label: 'categ', type: 'button', icon: 'http://upload.wikimedia.org/wikipedia/commons/3/3b/Button_template_alt.png', action: {type: 'encapsulate', options: {pre: '{{categ|lang=|', post: '}}'}} } } }, 'latin': { label: 'Латинский', tools: { 'гл la': { label: 'гл la', type: 'button', icon: 'http://upload.wikimedia.org/wikipedia/commons/3/3b/Button_template_alt.png', action: {type: 'encapsulate', options: {pre: '{{гл la |инф=|перф=|суп=|слоги={{по-слогам|', post: '}}}}'}} }, 'родств-блок': { label: 'родств-блок (la)', type: 'button', icon: 'http://upload.wikimedia.org/wikipedia/commons/3/3b/Button_template_alt.png', action: {type: 'encapsulate', options: {pre: "{{родств-блок|{{{1|{{PAGENAME}}}}}\n|умласк=\n|уничиж=\n|увелич=\n|имена-собственные=\n|существительные=\n|прилагательные=\n|глаголы=\n|наречия=\n}}<noinclude>[[Категория:Шаблоны родственных слов/la|", post: "]]"}} }, 'родств:la': { label: 'родств:la', type: 'button', icon: 'http://upload.wikimedia.org/wikipedia/commons/3/3b/Button_template_alt.png', action: {type: 'encapsulate', options: {pre: "{{родств:la:", post: "}}"}} }, 'глаголы с приставкой': { label: 'глаголы с приставкой', type: 'button', icon: 'http://upload.wikimedia.org/wikipedia/commons/3/3c/Button_cat_ru.png', action: {type: 'encapsulate', options: {pre: "[[Категория:Латинские глаголы с приставкой -|", post: "]]"}} } } } } }); // Новая секция 'markup' $j('#wpTextbox1').wikiEditor('addToToolbar', { sections: { 'chars2': { type: 'booklet', label: 'Спецсимволы 2', pages: { 'latin': { label: 'Латинский', layout: 'characters', characters: [ '\u0100', '\u0112', '\u012A', '\u014C', '\u016A', '\u0101', '\u0113', '\u012B', '\u014D', '\u016B', '\u0102', '\u0114', '\u012C', '\u014E', '\u016C', '\u0103', '\u0115', '\u012D', '\u014F', '\u016D' ] }, 'german': { label: 'Немецкий', layout: 'characters', characters: ['\u00C4', '\u00D6', '\u00DC', '\u00E4', '\u00F6', '\u00FC', '\u00DF'] } } } } }); }); } */ //-->