Ad blocker interference detected!
Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers
Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.
As you may know, we had the Gadgets extension installed on The Sims Wiki as a result of this forum. As this may probably seem like something from another planet for a lot of you, both users and admins, I've decided to make a walkthrough on this.
What are Gadgets?
- Allows certain scripts to be made optional, including those that are only meant for personal use based on Wikia's TOS.
- Adds more flexibility in getting scripts to work (we can disable scripts by user group if we wanted).
- Easier to update scripts used by a large number of users.
- Eases distribution of scripts. Users only have to make a few clicks rather than importing an entire page of code for one thing.
How do I utilise gadgets?
Enabling a gadget is actually very easy. All you have to do is go to your personal preferences, click on the Gadgets tab, select whatever you want and click the Save button. Then everything should be working straight out of the box. Simples.
Enabling a gadget is the same process as it is for any other user. However, admins can write gadgets and it isn't as daunting as one might think.
Firstly, go to MediaWiki:Gadgets-definition. Then under the appropriate header, you'd write the name of the gadget and the appropriate script file. For example:
From this point on, you have a few pages to edit. Fortunately, Special:Gadgets exists. As the page names are merely system files, this Special page will make it easier to edit header titles, gadget descriptions and tells you where to write the actual script based on the specified definitions. Under the header, the first redlink saying "Edit" is the description file that determines how it'll be presented on the Preferences page. The second redlink to the specified JS/CSS page is where the script goes.
The section title on the Preferences page will be listed as something like <section-Interface> for what's meant to be the Interface section until you merely write the word "Interface" (or however you want it to appear) on MediaWiki:Gadget-section-Interface. Replace Interface with your desired section name.
This may sound like a lot but in reality, it isn't really. These are just the basics. You can read on some of the more advanced stuff at the Gadgets extension page on MediaWiki.org.
So to finish off, the Gadgets system isn't as daunting as you might think on first impression. If anybody has any questions about Gadgets or any comments then please don't hesitate to comment them on this blog.