Note: After saving, 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: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
/* Any JavaScript here will be loaded for all users on every page load. */ // __NOWYSIWYG__ /* Begin Advent Calendar Twitch embed */ (function () { const streamTimes = [ {'start': '2022-11-14T22:45:00.000Z', 'end': '2022-11-14T23:45:00.000Z'}, {'start': '2022-11-15T22:45:00.000Z', 'end': '2022-11-15T23:45:00.000Z'}, {'start': '2022-11-29T22:25:00.000Z', 'end': '2022-11-29T22:55:00.000Z'}, ]; // Convert the stream times into JS-microsecod from human readable. // Only show live streams with an ending in the future. const streamOpenTimes = streamTimes.map(function(streamTime) { return {"start": new Date(streamTime.start).getTime(), "end": new Date(streamTime.end).getTime()}; }).filter(function(streamTime) { return streamTime.end >= Date.now(); }); streamOpenTimes.forEach(function(element){ if (Date.now() >= element.start) $('#advent-twitch-stream').show(); }); }()); /* End Advent Calendar Twitch embed */ $('#wiki-hamburger').click(function() { $('.wiki-home-sidebar, .wiki-home-main').toggle(); }); $('#wpTextbox1').on('wikiEditor-toolbar-doneInitialSections', function () { // main - format icons $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'main', group: 'format', tools: { "underline-text": { label: 'Underline Text', type: 'button', icon: 'https://clanquest.org/wiki/images/c/cd/WEUnderlineButton.png', action: { type: 'encapsulate', options: { pre: "<u>", post: "</u>" } } } } }); $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'main', group: 'format', tools: { "strike-text": { label: 'Strike Through Text', type: 'button', icon: 'https://clanquest.org/wiki/images/5/58/WEStrikeButton.png', action: { type: 'encapsulate', options: { pre: "{{s|", post: "}}" } } } } }); $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'main', group: 'format', tools: { "left-align": { label: 'Text Align Left', type: 'button', icon: 'https://clanquest.org/wiki/images/1/14/WELeftButton.png', action: { type: 'encapsulate', options: { pre: "{{left|", post: "}}" } } } } }); $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'main', group: 'format', tools: { "center-align": { label: 'Text Align Center', type: 'button', icon: 'https://clanquest.org/wiki/images/b/bd/WECenterButton.png', action: { type: 'encapsulate', options: { pre: "<center>", post: "</center>" } } } } }); $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'main', group: 'format', tools: { "right-align": { label: 'Text Align Right', type: 'button', icon: 'https://clanquest.org/wiki/images/5/5f/WERightButton.png', action: { type: 'encapsulate', options: { pre: "{{right|", post: "}}" } } } } }); // main insert section $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'main', group: 'insert', tools: { "user-link": { label: 'Link to a User Page', type: 'button', icon: 'https://clanquest.org/wiki/images/f/f2/WEUserButton.png', action: { type: 'encapsulate', options: { pre: "{{User|", post: "}}" } } } } }); // advanced format section $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'advanced', group: 'format', tools: { "spoiler": { label: 'Hide Text in a Spoiler', type: 'button', icon: 'https://clanquest.org/wiki/images/4/44/WESpoilerButton.png', action: { type: 'encapsulate', options: { pre: "{{Spoiler||", post: "}}" } } } } }); // advanced insert section $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'advanced', group: 'insert', tools: { "change-text-color": { label: 'Change text color', type: 'button', icon: 'https://clanquest.org/wiki/images/8/8b/WEColorButton.png', action: { type: 'encapsulate', options: { pre: "{{color|#|", post: "}}" } } } } }); $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'advanced', group: 'insert', tools: { "text-size": { label: 'Change Text Size', type: 'button', icon: 'https://clanquest.org/wiki/images/9/92/WESizeButton.png', action: { type: 'encapsulate', options: { pre: "{{Resize|100%|", post: "}}" } } } } }); $('#wpTextbox1').wikiEditor('addToToolbar', { 'section': 'advanced', 'groups': { 'columns': { 'label': 'Columns' } } } ); $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'advanced', group: 'columns', tools: { "left-column": { label: 'Begin Left Column', type: 'button', icon: 'https://clanquest.org/wiki/images/9/9a/WEColbeginButton.png', action: { type: 'encapsulate', options: { pre: "{{Col-Begin}}", post: "" } } } } }); $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'advanced', group: 'columns', tools: { "right-column": { label: 'Begin Right Column, must come after Col-Begin', type: 'button', icon: 'https://clanquest.org/wiki/images/7/70/WECol2Button.png', action: { type: 'encapsulate', options: { pre: "{{Col-2}}", post: "" } } } } }); $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'advanced', group: 'columns', tools: { "end-column": { label: 'End the Columns', type: 'button', icon: 'https://clanquest.org/wiki/images/9/9d/WEColendButton.png', action: { type: 'encapsulate', options: { pre: "{{Col-end}}", post: "" } } } } }); }); /** * Collapsible tables * * Allows tables to be collapsed, showing only the header. See [[Help:Collapsing]]. * * @version 2.0.3 (2014-03-14) * @source https://www.mediawiki.org/wiki/MediaWiki:Gadget-collapsibleTables.js * @author User:R. Koot * @author User:Krinkle * @deprecated Since MediaWiki 1.20: Use class="mw-collapsible" instead which * is supported in MediaWiki core. */ ( function () { var autoCollapse = 2; var collapseCaption = 'hide'; var expandCaption = 'show'; var tableIndex = 0; function collapseTable( tableIndex ) { var Button = document.getElementById( 'collapseButton' + tableIndex ); var Table = document.getElementById( 'collapsibleTable' + tableIndex ); if ( !Table || !Button ) { return false; } var Rows = Table.rows; var i; var $row0 = $(Rows[0]); if ( Button.firstChild.data === collapseCaption ) { for ( i = 1; i < Rows.length; i++ ) { Rows[i].style.display = 'none'; } Button.firstChild.data = expandCaption; } else { for ( i = 1; i < Rows.length; i++ ) { Rows[i].style.display = $row0.css( 'display' ); } Button.firstChild.data = collapseCaption; } } function createClickHandler( tableIndex ) { return function ( e ) { e.preventDefault(); collapseTable( tableIndex ); }; } function createCollapseButtons( $content ) { var NavigationBoxes = {}; var $Tables = $content.find( 'table' ); var i; $Tables.each( function( i, table ) { if ( $(table).hasClass( 'mw-collapsible' ) ) { /* only add button and increment count if there is a header row to work with */ var HeaderRow = table.getElementsByTagName( 'tr' )[0]; if ( !HeaderRow ) { return; } var Header = table.getElementsByTagName( 'th' )[0]; if ( !Header ) { return; } NavigationBoxes[ tableIndex ] = table; table.setAttribute( 'id', 'collapsibleTable' + tableIndex ); var Button = document.createElement( 'span' ); var ButtonLink = document.createElement( 'a' ); var ButtonText = document.createTextNode( collapseCaption ); // Styles are declared in [[MediaWiki:Common.css]] Button.className = 'collapseButton'; ButtonLink.style.color = Header.style.color; ButtonLink.setAttribute( 'id', 'collapseButton' + tableIndex ); ButtonLink.setAttribute( 'href', '#' ); $( ButtonLink ).on( 'click', createClickHandler( tableIndex ) ); ButtonLink.appendChild( ButtonText ); Button.appendChild( document.createTextNode( '[' ) ); Button.appendChild( ButtonLink ); Button.appendChild( document.createTextNode( ']' ) ); Header.insertBefore( Button, Header.firstChild ); tableIndex++; } } ); for ( i = 0; i < tableIndex; i++ ) { if ( $( NavigationBoxes[i] ).hasClass( 'collapsed' ) || ( tableIndex >= autoCollapse && $( NavigationBoxes[i] ).hasClass( 'autocollapse' ) ) ) { collapseTable( i ); } } } mw.hook( 'wikipage.content' ).add( createCollapseButtons ); }());