User:Root/vector.js: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
/* | |||
importScript("MediaWiki:Hotkeys.js"); | |||
hotkeys = { | |||
'b' : 'Brooks was here', | |||
'l' : '', | |||
's' : '§', | |||
't' : '{| class="wikitable"\n! header\n! header\n|-\n| data\n| data\n|}\n' | |||
}; | |||
*/ | |||
/* $('<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 7: | Line 32: | ||
title: 'edit Common.css', | title: 'edit Common.css', | ||
}), | }), | ||
}).insertBefore($('#pt- | }).insertBefore($('#pt-css')); | ||
$('<li>', { | |||
id: 'pt-js', | |||
html: $('<a>', { | |||
href: 'http://localhost:8001/index.php?title=MediaWiki:Common.css&action=edit', | |||
text: 'js', | |||
title: 'edit Common.js', | |||
}), | |||
}).insertBefore($('#pt-mytalk')); | |||
Revision as of 21:18, 21 June 2017
/*
importScript("MediaWiki:Hotkeys.js");
hotkeys = {
'b' : 'Brooks was here',
'l' : '',
's' : '§',
't' : '{| class="wikitable"\n! header\n! header\n|-\n| data\n| data\n|}\n'
};
*/
/* $('<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-css'));
$('<li>', {
id: 'pt-js',
html: $('<a>', {
href: 'http://localhost:8001/index.php?title=MediaWiki:Common.css&action=edit',
text: 'js',
title: 'edit Common.js',
}),
}).insertBefore($('#pt-mytalk'));