User:Root/vector.js: Difference between revisions

From www.PSALTIKI.info
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
// mw.loader.load( '//localhost:8001/index.php?title=MediaWiki:Highlight.js&action=raw&ctype=text/javascript' );
// mw.loader.load( '/index.php?title=MediaWiki:Highlight.js&action=raw&ctype=text/javascript' );


/*    $('<li>', {
/*    $('<li>', {
Line 5: Line 5:
     html: $('<a>', {
     html: $('<a>', {
     href: 'URL ссылки',
     href: 'URL ссылки',
     href: 'http://localhost:8001/index.php?title=MediaWiki:Print.css&action=edit',
     href: 'http:/index.php?title=MediaWiki:Print.css&action=edit',
     text: 'Видимое название',
     text: 'Видимое название',
     title: 'Текст всплывающей подсказки',
     title: 'Текст всплывающей подсказки',
Line 21: Line 21:
id: 'pt-all',
id: 'pt-all',
html: $('<a>', {
html: $('<a>', {
href: '/wiki/Special:AllPages',
href: '/Special:AllPages',
text: '❃',
text: '❃',
title: 'All Pages',
title: 'All Pages',
Line 31: Line 31:
id: 'pt-css',
id: 'pt-css',
html: $('<a>', {
html: $('<a>', {
href: '/wiki/MediaWiki:Common.css',
href: '/MediaWiki:Common.css',
text: 'css',
text: 'css',
title: 'edit Common.css',
title: 'edit Common.css',
Line 40: Line 40:
id: 'pt-pcss',
id: 'pt-pcss',
html: $('<a>', {
html: $('<a>', {
href: '/wiki/MediaWiki:Print.css',
href: '/MediaWiki:Print.css',
text: 'pcss',
text: 'pcss',
title: 'edit Print.css',
title: 'edit Print.css',
Line 50: Line 50:
id: 'pt-js',
id: 'pt-js',
html: $('<a>', {
html: $('<a>', {
href: '/wiki/MediaWiki:Common.js',
href: '/MediaWiki:Common.js',
text: 'j',
text: 'j',
title: 'edit Common.js',
title: 'edit Common.js',
Line 59: Line 59:
id: 'pt-rvjs',
id: 'pt-rvjs',
html: $('<a>', {
html: $('<a>', {
href: '/wiki/User:Root/vector.js',
href: '/User:Root/vector.js',
text: 'vj',
text: 'vj',
title: 'edit Root vector.js',
title: 'edit Root vector.js',
Line 68: Line 68:
id: 'pt-rvjs',
id: 'pt-rvjs',
html: $('<a>', {
html: $('<a>', {
href: '/wiki/MediaWiki:Sidebar',
href: '/MediaWiki:Sidebar',
text: 'sb',
text: 'sb',
title: 'edit Sidebar',
title: 'edit Sidebar',
}),
}),
}).insertBefore($('#pt-mytalk'));
}).insertBefore($('#pt-mytalk'));

Revision as of 23:03, 29 April 2018

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

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

    Замените расположение на значение из списка ниже (сохранив знак #). Кнопка будет расположена перед:
    pt-userpage — ЛС
    pt-mytalk — ЛСО
    pt-preferences — Настройки
    pt-watchlist — СН
    pt-mycontris — Вклад
*/
$('<li>', {
	id: 'pt-all',
	html: $('<a>', {
		href: '/Special:AllPages',
		text: '❃',
		title: 'All Pages',
	}),
}).insertBefore($('#pt-mytalk'));


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

$('<li>', {
	id: 'pt-pcss',
	html: $('<a>', {
		href: '/MediaWiki:Print.css',
		text: 'pcss',
		title: 'edit Print.css',
	}),
}).insertBefore($('#pt-mytalk'));


$('<li>', {
	id: 'pt-js',
	html: $('<a>', {
		href: '/MediaWiki:Common.js',
		text: 'j',
		title: 'edit Common.js',
	}),
}).insertBefore($('#pt-mytalk'));

$('<li>', {
	id: 'pt-rvjs',
	html: $('<a>', {
		href: '/User:Root/vector.js',
		text: 'vj',
		title: 'edit Root vector.js',
	}),
}).insertBefore($('#pt-mytalk'));

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