Difference between revisions of "User:King of Herdaz/Toolbar customization"

m
no edit summary
m
The editing toolbar is a versatile and very useful tool that can be used to make working on the wiki much easier. While the basic version (which is an option in your [[Special:Preferences#mw-prefsection-editing|preferences]]) has some use, the main benefit comes when you customize your toolbar. In this guide there are tested premade elements that you can use as well as guides to creating and modifying your own buttons, booklets, and dropdowns.
 
While modifying your toolbar can seem scary, once you get the hang of it, it really isn't a big deal. Also, anythingAnything you do can be easily undone so feel free to play around and experiment with different things. You do not need any knowledge of how the system works to use the premade elements on this page, simply copy-paste them into your toolbar and you are good to go.
 
You do not need any knowledge of how the system works to use the premade elements on this page, simply copy-paste them into your toolbar as directed and you are good to go.
Changes you make to your <code>common.js</code> page only take effect after you save the page, so to check that the changes you have made worked you should save your <code>common.js</code> page and try to edit some other wiki page. If you see the default toolbar that means that your edits "broke" your toolbar. See [[#Troubleshooting]] for help debugging your code.
 
Changes you make to your <code>common.js</code> page only take effect after you save the page, so to check that the changes you have made worked you should save your <code>common.js</code> page and try to edit some other wiki page. If you see the default toolbar when you edit a page that means that your edits "broke" your toolbar. SeeConsult the [[#TroubleshootingGeneral Guidelines|general guidelines]] for help debugging your code.
 
== Basic ==
}
},
'stormstormlight': {
label: '{' + '{Stormlight}}',
action: {
== Customization==
In this section we will present a guide to creating your own buttons, booklets and dropdowns for your toolbar. While there are other options and ways to do these things, for the sake of clarity and simplicity here we have limited this guide to the things that are the most useful and easiest to understand. For a more complete (though less clear) guide to the toolbar see [https://www.mediawiki.org/wiki/Extension:WikiEditor/Toolbar_customization Mediawiki's full guide].
 
If the changes you made are not working and you would like assistance you can DM <code>King of Herdaz#2300</code> on Discord.
 
=== General Guidelines ===
* To add a comment put <code>//</code> at the beginning of a line followed by the text of the comment. Whatever you write after a <code>//</code> will not affect your code.
* Code for your toolbar must have the exact correct number of curly brackets (<code>{</code>), square brackets (<code>[</code>), apostrophes (<code>'</code>), and commas (<code>,</code>) to work. If your toolbar breaks after you changed something check to see if missed or added an extra one of these.
* While not strictly necessary, it is a good idea to split code in your toolbar over multiple lines and spacedwith whitespace differentiating each "level" of the toolbar in a manner similar to how it is done in the examples on this page. This will help you keep track of the different parts of your code and will help you keep track of the number of open and closed curly brackets in your code.
 
==== Strings ====
Autopatrolled, Editors
8,718

edits