User:Nixinova/namespace-shortcuts.js/doc

This script is used to add shortcuts to different namespaces.

Install
Install by adding the following to your common.js: mw.loader.load('/index.php?title=User:Nixinova/namespace-shortcuts.js&action=raw&ctype=text/javascript');

For other wikis, use: mw.loader.load('https://minecraft.gamepedia.com/index.php?title=User:Nixinova/namespace-shortcuts.js&action=raw&ctype=text/javascript');

Usage
This script will replace any shortcuts typed into the URL or search box with their full versions.

Customize
Add custom replacements by adding entries to the  array. Note that these replacements do not override any replacements made by the base script, so instead of "u:whatever" you would have to type "user:whatever". Additionally, this should be placed before the import script above. This is because this gives you the ability to overwrite the features below if you dislike them

In the following example, the shortcuts 'je' etc will turn into 'Java Edition' etc respectively, making searching for versions easier. For example, to search for Java Edition 1.8, you just have to search "je 1.8". window.shortcut_replacements = [ ['je', 'Java Edition'], ['be', 'Bedrock Edition'], ['ee', 'Education Edition'] ];