MediaWiki:Vector.js
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
$(document).ready(function() {
var newItem = $('<li class="personal-version" title="Version October 2024"><a href="/index.php?title=MediaWiki:Blog" style="text-decoration: none; color: inherit;">Version: Beta 5.1</a><hr style="display:inline-block; height: 20px; bottom: 2px; width: 1px; background: linear-gradient(to bottom, #DDD7CC, #702114); border: none; margin-left: 10px; vertical-align: middle;"></li>');
$('#p-personal > div > ul').prepend(newItem); // Добавляем элемент первым в списке навигации
});
// Дождемся полной загрузки страницы
$(document).ready(function() {
// Найдем элемент Sidebar (в Vector skin это обычно div с id 'p-tb')
var sidebar = $('#p-tb'); // Стандартный id для Sidebar в Vector skin
if (sidebar.length) {
// Создаем контейнер div
var container = $('<div>')
.attr('id', 'help-container') // Присваиваем контейнеру id
.css({
'background-color': '#DDD7CC', // Цвет фона
'padding': '10px', // Внутренний отступ для контейнера
'margin-top': '10px', // Отступ сверху
'text-align': 'center', // Центрирование содержимого
'font-family': '\'MyCustomFont2\', sans-serif' // Применение пользовательского шрифта
});
// Добавляем HTML-код
var customHTML = `
<div style="text-align:center;">
<span style="padding:1.5em 1.5em; text-align:center;">
<choose uncached="">
<option>{{CSS image crop
|Image = [[File:Tyler phone293729.png|link=October 2008]]
|bSize = 100
|cWidth = 350
|cHeight = 280
|oTop = 80
|oLeft = 60
}}<br>Only known performance in unknown vebue around October 2008. Photo of concrt was taken from [[Level of Concern/USB]] from [[Tyler Joseph|Tyler]] phone while ARG game.</option>
<option>[[File:Without_image.png|290x290px|center|link=October 2008]]<br>'''[[October 2008]]'''<br>Only known performance in unknown vebue around October 2008. Photo of concrt was taken from [[Level of Concern/USB]] from [[Tyler Joseph|Tyler]] phone while ARG game.</option>
<option>[[File:Without_image.png|270x270px|center|link=Spring 2008]]<br>'''[[Spring 2008]]'''</option>
<option>[[File:Without_image.png|270x270px|center|link=Kidd Coffee 2009]]<br>'''[[Kidd Coffee 2009]]'''</option>
<option><div style="margin-left: 120px;">{{CSS image crop
|Image = [[File:Twenty One Pilots Newspaper Jan 2010.jpg|center|link=Skully's Music Diner 2009]]
|bSize = 100
|cWidth = 200
|cHeight = 300
|oTop = 40
|oLeft = 410
}}</div><br>'''[[Skully's Music Diner 2009]]''' — Unknown 2009 band show that is mentioned in a January 2010 newspaper and by a bar employee on Reddit.</option>
<option>[[File:6 May 2011.png|300x300px|center|link=05.06.2011]]<br>'''[[05.06.2011|6 May 2011]]''' — The concert took place outside in a small pavilion in the late afternoon. The band started their performance at 11:30 and played the song Time to Say Goodbye after which people complained about a lot of noise and the police stopped the concert. Tyler was concerned because of the possibility of a negative citizenship rank.</option>
<option>[[File:Location Sessions.jpg|270x270px|center|link=Location Sessions]]<br>'''[[Location Sessions]]''' (stylized as «'''Løcatiøn Sessiøns'''») — This is a series of singles released <span class="plainlinks">[https://twentyonewiki.info/index.php/Category:2019 2019]</span> - <span class="plainlinks">[https://twentyonewiki.info/index.php/Category:2020 2020]</span> alternative reconstructed [[Twenty One Pilots]] songs recorded at several different sessions.</option>
</choose>
</span>
</div>`;
// Добавляем HTML-код в контейнер
container.append(customHTML);
// Вставляем контейнер после Sidebar
sidebar.after(container);
}
});