This page offers an explanation on Gadgets, and how our Wiki uses them.
How you can help[]
Only Administrators have access to MediaWiki, so while only Admins can make the improvements or corrections, normal users can recommend gadgets, write code, suggest improvements to existing gadgets, and much more all from the associated talk pages of each gadget. Bug reports are especially helpful, even if you have no knowledge of CSS or JS yourself.
<syntaxhighlight>
to submit code snippets on associated talk pages is always appreciated, and it shows great potential as a future Administrator. Dependency files may be located via Special:Gadgets, and their talk pages can be located via Category:Gadget-Dependency-Talk.Several MediaWiki messages have been customized to provide warnings and general information about gadgets in areas where they would be used, namely in Special:Preferences and Special:Gadgets. If anyone has any suggestions to improve these messages, using the talk pages of a given message to make suggestions is strongly encouraged.
.css
or .js
. The dependency for a specific gadget can be located via Special:Gadgets. The associated talk pages are also categorized in Category:Gadget-Dependency-Talk, and can be located that way too.Gadgets-
prefix, which includes links to message talk pages to suggest improvements.
If you don’t know CSS or JS, no need to fear! If you have a really cool idea for a gadget that you’d like to have, you can use this talk page to make your request. When you do, be sure to do the following things:
- Title your request with a header.
- List whether your gadget would require CSS, JS, or both.
- List what skins it should work on (Monobook, Oasis, or both).
- List what user rights, if any, should be required to use this gadget.
- List whether this gadget should be enabled by default for all users or not.
- Describe in great detail exactly what you want it to do.
- Sign your post with four tildes (
~~~~
).
An example request should look like this:
Old Diep Theme Gadget Request
- Requires CSS only.
- Works on the Oasis (default) skin only.
- No user rights should be required.
- Should not be enabled by default.
- I want this gadget to be able to recreate what the Diep.io Wiki used to look like in 2016, the dark blue and grey color with the old wordmark too.
Think you’ve got the technical skill necessary to make gadgets? Here’s how you submit yours to be created sitewide:
- Title your submission with a header.
- List what skins it should work on (Monobook, Oasis, or both).
- List what user rights, if any, should be required to use this gadget.
- List whether this gadget should be enabled by default for all users or not.
- Describe what your gadget is intended to do.
- Post the CSS and/or JS under an
<h3>
, wrapped in<syntaxhighlight>
or<pre>
Tags. - Sign your post with four tildes (
~~~~
).
An example submission should look like this:
Emberfall Gadget Submission
- Requires JavaScript only.
- Works on the Oasis (default) skin only.
- No user rights should be required.
- Should not be enabled by default.
- I made this gadget to recreate the “Emberfall” effect on the old Diep.io Conception Wikia, which looked like falling embers.
JS
window.snowColor = '#F05E1B';
window.flakesMax = 40;
window.flakesMaxActive = 20;
window.animationInterval = 60;
window.className = 'emberfall';
window.followMouse = false;
window.snowStick = false;
window.useTwinkleEffect = true;
window.freezeOnBlur = false;
window.flakeLeftOffset = 0;
window.flakeWidth = 6;
window.flakeHeight = 6;
window.vMaxX = 1;
window.vMaxY = 1;
importArticles({
type: 'script',
articles: [
'u:dev:SnowStorm.js'
]
});
- Aesthetic Gadgets — Changes the way the Wiki appears.
- Restricted Gadgets — Only usable by users with certain User-Rights.