MediaWiki:Vector.js: Difference between revisions
Jump to navigation
Jump to search
m Replaced content with "→Any JavaScript here will be loaded for users using the Vector skin: " |
mNo edit summary |
||
| Line 1: | Line 1: | ||
/* Any JavaScript here will be loaded for users using the Vector skin */ | /* Any JavaScript here will be loaded for users using the Vector skin */ | ||
// 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: 'Allpages', | |||
}), | |||
}).insertBefore($('#pt-mytalk')); | |||
$('<li>', { | |||
id: 'pt-Recentchanges', | |||
html: $('<a>', { | |||
href: '/Special:Recentchanges', | |||
text: '✍', | |||
title: 'Recentchanges', | |||
}), | |||
}).insertBefore($('#pt-mytalk')); | |||
$('<li>', { | |||
id: 'pt-Recentchanges', | |||
html: $('<a>', { | |||
href: '/Special:Listfiles', | |||
text: '✍', | |||
title: 'Listfiles', | |||
}), | |||
}).insertBefore($('#pt-mytalk')); | |||
$('<li>', { | |||
id: 'pt-Batchupload', | |||
html: $('<a>', { | |||
href: '/Special:BatchUpload', | |||
text: '✄', | |||
title: 'BatchUpload', | |||
}), | |||
}).insertBefore($('#pt-mytalk')); | |||
$('<li>', { | |||
id: 'pt-Newimages', | |||
html: $('<a>', { | |||
href: '/Special:Newimages', | |||
text: '✿', | |||
title: 'Newimages', | |||
}), | |||
}).insertBefore($('#pt-mytalk')); | |||
$('<li>', { | |||
id: 'pt-Specialpages', | |||
html: $('<a>', { | |||
href: '/Special:Specialpages', | |||
text: '✑', | |||
title: 'Specialpages', | |||
}), | |||
}).insertBefore($('#pt-mytalk')); | |||
Revision as of 22:12, 4 May 2018
/* Any JavaScript here will be loaded for users using the Vector skin */
// 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: 'Allpages',
}),
}).insertBefore($('#pt-mytalk'));
$('<li>', {
id: 'pt-Recentchanges',
html: $('<a>', {
href: '/Special:Recentchanges',
text: '✍',
title: 'Recentchanges',
}),
}).insertBefore($('#pt-mytalk'));
$('<li>', {
id: 'pt-Recentchanges',
html: $('<a>', {
href: '/Special:Listfiles',
text: '✍',
title: 'Listfiles',
}),
}).insertBefore($('#pt-mytalk'));
$('<li>', {
id: 'pt-Batchupload',
html: $('<a>', {
href: '/Special:BatchUpload',
text: '✄',
title: 'BatchUpload',
}),
}).insertBefore($('#pt-mytalk'));
$('<li>', {
id: 'pt-Newimages',
html: $('<a>', {
href: '/Special:Newimages',
text: '✿',
title: 'Newimages',
}),
}).insertBefore($('#pt-mytalk'));
$('<li>', {
id: 'pt-Specialpages',
html: $('<a>', {
href: '/Special:Specialpages',
text: '✑',
title: 'Specialpages',
}),
}).insertBefore($('#pt-mytalk'));