Support wiki

This is the wiki.gg support wiki! It's a different site from your content wiki!

Default loadout wiki

From Support Wiki
Jump to navigation Jump to search

The default loadout wiki (often called DLW) is a set of pages, scripts, and styles added to every new wiki.gg wiki (and most imports, depending on their choices) since late April 2024. Default loadout pages live at defaultloadout.

Advantages of using the DLW

Standardization across wiki.gg wikis comes with several benefits, including:

  • You can more easily reuse code that other people have written for you and also apply future updates as needed when the MediaWiki software gets updates
  • Your wiki will be more familiar for editors who have contributed to other wiki.gg wikis
  • It will be easier to get help in the wiki.gg discord server
  • We make it much easier to edit the CSS (see that page for a guide to the DLW setup)

Converting to the DLW

If you want your wiki converted to the DLW, please request this in the wiki.gg Discord server.

What to expect if someone converts your wiki to the DLW:

  • Some minor interface spacing may change
  • You will get icons in the sidebar tools section
  • Some interface styles will probably function better in dark mode
  • Users will have the choice of either light or dark mode, and the wiki will default based on users' individual preferences in their OS/browser
    • If you have a strong preference for one theme or the other that can be set as the default, but we highly discourage doing this for a variety of accessibility reasons.
  • A few pages may have broken styles here and there, and we'll need to fix them on a case-by-case basis as you point them out to us

But for the most part we'd encourage you to have the wiki converted as it will make future updates MUCH easier to apply and also give you access to the entire set of default templates' styles.

Updating your own CSS

Step 1

Please use Special:Export on the default loadout wiki and then Special:Import on your wiki. Note that Special:Import will import the latest revision of the DLW page to your wiki at the according time. If the page on your wiki was edited later, the import will not be the current page revision and the page will need to be edited manually to match the DLW page. You will need to update the following pages (you can copy-paste this list to the Export page):

MediaWiki:Gadgets
MediaWiki:Gadgets/charInserts
MediaWiki:Gadgets/charInserts/main.js
MediaWiki:Gadgets/collapsibleSidebarSections
MediaWiki:Gadgets/collapsibleSidebarSections/main.css
MediaWiki:Gadgets/collapsibleSidebarSections/main.js
MediaWiki:Gadgets/discordTemplate
MediaWiki:Gadgets/discordTemplate/main.js
MediaWiki:Gadgets/druid
MediaWiki:Gadgets/druid/customEditMe.css
MediaWiki:Gadgets/druid/doc
MediaWiki:Gadgets/druid/mainReadonly.css
MediaWiki:Gadgets/druid/variablesEditMe.css
MediaWiki:Gadgets/druidScripts
MediaWiki:Gadgets/druidScripts/main.js
MediaWiki:Gadgets/hoverShowSpoilers
MediaWiki:Gadgets/hoverShowSpoilers/main.css
MediaWiki:Gadgets/imp
MediaWiki:Gadgets/imp/customEditMe.css
MediaWiki:Gadgets/imp/customMainReadonly.css
MediaWiki:Gadgets/imp/variablesEditMe.css
MediaWiki:Gadgets/luaImportLinks
MediaWiki:Gadgets/luaImportLinks/main.js
MediaWiki:Gadgets/mpEditLinks
MediaWiki:Gadgets/mpEditLinks/main.css
MediaWiki:Gadgets/mpEditLinks/main.js
MediaWiki:Gadgets/purge
MediaWiki:Gadgets/purge/main.js
MediaWiki:Gadgets/spoilers
MediaWiki:Gadgets/spoilers/main.js
MediaWiki:Gadgets/themeColorEditor
MediaWiki:Gadgets/themeColorEditor/main.js
MediaWiki:Gadgets/uploadMultipleFiles
MediaWiki:Gadgets/uploadMultipleFiles/main.js
MediaWiki:Gadgets/vectorScripts
MediaWiki:Gadgets/vectorScripts/main.js
Template:Discord
Module:Infobox
Module:Infobox/doc
Template:Navbox
Template:Navbox/doc
Module:Navbox
Module:Navbox/doc
Module:Navbox/Hooks
Category:Main page templates
Category:Main page boxes
Category:Pages using IMP
Module:Main page
Template:Main page
Template:Main page/doc
Template:Main page box
Template:Main page box/create
Template:Main page box/end
Template:Main page box/end/doc
Template:Main page box/missing
Template:Main page box/preload
Template:Main page box/start
Template:Main page box/start/doc
Template:MP link
Template:MP link/doc
MediaWiki:Common.css/doc

After importing these pages, you may need to remove any content that was preloaded on MediaWiki:Common.js and MediaWiki:Vector.js when your wiki was created, as the default scripts are now included in gadgets.

Step 2

You will also need to update these pages, but you will want to carefully merge the styles into your existing pages without completely replacing them, or else your custom changes may get overwritten:

Step 3

The following pages should already be present on your wiki and should not require updating, but if something isn't working you can check:

MediaWiki:Gadgets/ranger
MediaWiki:Gadgets/ranger/custom.css
MediaWiki:Gadgets/ranger/main.css
MediaWiki:Gadgets/ranger/variables.css
Category:Categories for loading gadgets
Category:Pages with spoilers
Category:Pages with amboxes
Category:Pages with colors
Category:Pages with hatnotes
Category:Pages with quotes
Category:Pages with Discord embeds
Category:Pages with DRUID infoboxes
Category:Pages with navboxes