User:Root/vector.js: Difference between revisions

From www.PSALTIKI.info
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(13 intermediate revisions by the same user not shown)
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:/index.php?title=MediaWiki:Print.css&action=edit',
     text: 'Видимое название',
     text: 'Видимое название',
     title: 'Текст всплывающей подсказки',
     title: 'Текст всплывающей подсказки',
Line 17: Line 18:
     pt-mycontris — Вклад
     pt-mycontris — Вклад
*/
*/
$('<li>', {
$('<li>', {
id: 'pt-css',
id: 'pt-css',
html: $('<a>', {
html: $('<a>', {
href: 'http://localhost:8001/index.php?title=MediaWiki:Common.css&action=edit',
href: '/MediaWiki:Common.css',
text: 'css',
text: 'css',
title: 'edit Common.css',
title: 'edit Common.css',
Line 29: Line 31:
id: 'pt-pcss',
id: 'pt-pcss',
html: $('<a>', {
html: $('<a>', {
href: 'http://localhost:8001/index.php?title=MediaWiki:Print.css&action=edit',
href: '/MediaWiki:Print.css',
text: 'pcss',
text: 'pcss',
title: 'edit Print.css',
title: 'edit Print.css',
Line 39: Line 41:
id: 'pt-js',
id: 'pt-js',
html: $('<a>', {
html: $('<a>', {
href: 'http://localhost:8001/index.php?title=MediaWiki:Common.js&action=edit',
href: '/MediaWiki:Common.js',
text: 'js',
text: 'j',
title: 'edit Common.js',
title: 'edit Common.js',
}),
}),
Line 48: Line 50:
id: 'pt-rvjs',
id: 'pt-rvjs',
html: $('<a>', {
html: $('<a>', {
href: 'http://localhost:8001/index.php?title=User:Root/vector.js&action=edit',
href: '/User:Root/vector.js',
text: 'rvjs',
text: 'rj',
title: 'edit Root vector.js',
title: 'edit Root vector.js',
}),
}).insertBefore($('#pt-mytalk'));
$('<li>', {
id: 'pt-vjs',
html: $('<a>', {
href: '/MediaWiki:Vector.js',
text: 'vj',
title: 'edit vector.js',
}),
}).insertBefore($('#pt-mytalk'));
$('<li>', {
id: 'pt-rvjs',
html: $('<a>', {
href: '/MediaWiki:Sidebar',
text: 'sb',
title: 'edit Sidebar',
}),
}),
}).insertBefore($('#pt-mytalk'));
}).insertBefore($('#pt-mytalk'));

Latest revision as of 22:14, 4 May 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-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: 'rj',
		title: 'edit Root vector.js',
	}),
}).insertBefore($('#pt-mytalk'));

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


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