User:Root/vector.js: Difference between revisions

From www.PSALTIKI.info
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 18: Line 18:
*/
*/


/*    $('<li>', {
    id: 'pt-название-на-латинице',
    html: $('<a>', {
    href: 'URL ссылки',
    text: 'Видимое название',
    title: 'Текст всплывающей подсказки',
    }),
    }).insertBefore($('#расположение'));
    Замените расположение на значение из списка ниже (сохранив знак #). Кнопка будет расположена перед:
    pt-userpage — ЛС
    pt-mytalk — ЛСО
    pt-preferences — Настройки
    pt-watchlist — СН
    pt-mycontris — Вклад
*/
$('<li>', {
$('<li>', {
id: 'pt-css',
id: 'pt-css',
Line 74: Line 58:
id: 'pt-rvjs',
id: 'pt-rvjs',
html: $('<a>', {
html: $('<a>', {
href: 'MediaWiki:Sidebar',
href: '/wiki/MediaWiki:Sidebar',
text: 'sb',
text: 'sb',
title: 'edit Sidebar',
title: 'edit Sidebar',
}),
}),
}).insertBefore($('#pt-mytalk'));
}).insertBefore($('#pt-mytalk'));

Revision as of 04:19, 9 November 2017

// mw.loader.load( '//localhost:8001/index.php?title=MediaWiki:Highlight.js&action=raw&ctype=text/javascript' );

/*    $('<li>', {
    	id: 'pt-название-на-латинице',
    	html: $('<a>', {
    		href: 'URL ссылки',
    		text: 'Видимое название',
    		title: 'Текст всплывающей подсказки',
    	}),
    }).insertBefore($('#расположение'));

    Замените расположение на значение из списка ниже (сохранив знак #). Кнопка будет расположена перед:
    pt-userpage — ЛС
    pt-mytalk — ЛСО
    pt-preferences — Настройки
    pt-watchlist — СН
    pt-mycontris — Вклад
*/

$('<li>', {
	id: 'pt-css',
	html: $('<a>', {
		href: 'http://localhost:8001/index.php?title=MediaWiki:Common.css&action=edit',
		text: 'css',
		title: 'edit Common.css',
	}),
}).insertBefore($('#pt-mytalk'));

$('<li>', {
	id: 'pt-pcss',
	html: $('<a>', {
		href: 'http://localhost:8001/index.php?title=MediaWiki:Print.css&action=edit',
		text: 'pcss',
		title: 'edit Print.css',
	}),
}).insertBefore($('#pt-mytalk'));


$('<li>', {
	id: 'pt-js',
	html: $('<a>', {
		href: 'http://localhost:8001/index.php?title=MediaWiki:Common.js&action=edit',
		text: 'js',
		title: 'edit Common.js',
	}),
}).insertBefore($('#pt-mytalk'));

$('<li>', {
	id: 'pt-rvjs',
	html: $('<a>', {
		href: 'http://localhost:8001/index.php?title=User:Root/vector.js&action=edit',
		text: 'rvjs',
		title: 'edit Root vector.js',
	}),
}).insertBefore($('#pt-mytalk'));

$('<li>', {
	id: 'pt-rvjs',
	html: $('<a>', {
		href: '/wiki/MediaWiki:Sidebar',
		text: 'sb',
		title: 'edit Sidebar',
	}),
}).insertBefore($('#pt-mytalk'));