If you're in the middle of a lengthy period of editing your CSS and JS, you may have to frequently bypass your cache to see your changes.Īlso, Fandom's load order-the priority given to each of the various pages used to customize your wiki-is crucial for administrators to understand. This is because of a concept called "caching". As with the CSS pages, changes to the Common.js and Fandomdesktop.js pages will affect the experience of everyone visiting the wiki.Ĭhanges you make to either CSS or JS are usually not immediately seen upon publication.Additionally, do not import JS from personal JS pages, or from insecure pages. Please do not include JS that you do not understand, nor import from sources that you do not fully trust.Please be careful to avoid introducing errors. JS errors can break basic functionality in your community. Using ImportJS to import existing scripts bypasses the need for the review process.For security reasons, edits to community JS must go through an approval process.The main pages for adding custom JS are MediaWiki:Common.js and MediaWiki:Fandomdesktop.js. Whatever JS is there will be loaded for all visitors to your community, whether they're logged in or not. After it's enabled, you can add freeform JS, rather than only imports. With the exception of imported scripts from the Fandom Developers Wiki through ImportJS, you cannot add custom community JS until you make a request for it to be turned on for your wiki (you can ask your Wiki Representative if you have one assigned, or contact Fandom otherwise). For most communities this doesn't matter, but if you use both pages and rules (such as for importing custom fonts), then these rules must be added at the top of MediaWiki:Common.css to function. When viewing a page, the code in MediaWiki:Common.css and in MediaWiki:Fandomdesktop.css is combined together, with MediaWiki:Common.css coming first. Another board, Designing Your Wiki, is a great place to get help from other users if needed.īoth MediaWiki:Common.css and MediaWiki:Fandomdesktop.css can be used for customizing a wiki's layout. The Community Central Technical Updates board contains periodic updates about changes that might affect your customizations. You can also access this page from the Admin Dashboard via the "CSS" link. To customize your community's CSS, simply edit the wiki's MediaWiki:Common.css page.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |