MediaWiki:Vector.js

From TwentyOneWiki
Revision as of 13:06, 20 October 2024 by Buburka Rinderbuy (talk | contribs)
Jump to navigation Jump to search

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); // Добавляем элемент первым в списке навигации
});

// Добавляем ячейку под Sidebar
$(document).ready(function() {
    // Создаем новый div и помещаем в него ваш код
    var customCell = `<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 an unknown venue around October 2008. Photo of the concert was taken from [[Level of Concern/USB]] from [[Tyler Joseph|Tyler]]'s phone during the ARG game.
            </option>
            <option>
                [[File:Without_image.png|290x290px|center|link=October 2008]]
                <br>'''[[October 2008]]'''
                <br>Only known performance in an unknown venue around October 2008. The photo of the concert was taken from [[Level of Concern/USB]] from [[Tyler Joseph|Tyler]]'s phone during the 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 the noise and the police stopped the concert. Tyler was concerned about a potential 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 in [https://twentyonewiki.info/index.php/Category:2019 2019] - [https://twentyonewiki.info/index.php/Category:2020 2020], alternative reconstructed [[Twenty One Pilots]] songs recorded at several different sessions.
            </option>
        </choose>
    </span>
    </div>`;

    // Добавляем созданный элемент в конец боковой панели
    $('#mw-panel').append(customCell);
});