-
Notifications
You must be signed in to change notification settings - Fork 5
Configuration
Dario Giovannetti edited this page Dec 19, 2017
·
35 revisions
Wiki Monkey can be configured by placing an optional wikiMonkeyConfig
object before the mw.loader.load() line in your
User:Example/common.js page. The object's variable name can alternatively be
spelled wikimonkey_config.
The configuration object's key-value pairs are either global configuration options, or a plugin name and its specific configuration keys.
For example:
wikiMonkeyConfig = {
global_option1: value,
global_option2: other_value,
PluginA: {enabled: true,
plugin_option1: value}
PluginB: {enabled: false}
}
mw.loader.load('https://rawcdn.githack.com/kynikos/wiki-monkey/v4.0.0/dist/WikiMonkey-ArchWiki.js');
-
default_bot_plugin:"SimpleReplace"This is the name of the plugin to select by default in the bot interface. Set tonullto use the first option. -
default_recentchanges_plugin:nullThis is the name of the plugin to select by default in the RecentChanges page. Set tonullto use the first option. -
default_newpages_plugin:nullThis is the name of the plugin to select by default in the NewPages page. Set tonullto use the first option. -
update_check_wdays:[6]This array defines what day(s) of the week Wiki Monkey should check for the release of a new version (0-Sunday to 6-Saturday). See Home#updates for more information on version update automation. -
hide_rollback_links:trueSet totrueto hide the rollback links in User Contributions and RecentChanges pages, to avoid involuntary clicking on them; set tofalseto preserve the default functionality. -
disable_edit_summary_submit_on_enter:trueSet totrueto suppress the default browser behavior of saving a page when, usually accidentally, pressing Enter in the Summary field of an editor page; set tofalseto preserve the default functionality. -
scroll_to_first_heading:falseSet totrueto make an editor page scroll automatically to the title heading after opening it. -
heading_number_style:falseUse a string to define a CSS rule to apply to the index number of section headings; set tofalseto disable the feature.
See Bundled plugins for the available plugins and their specific configuration options.
Some options are shared by all or multiple plugins:
-
enabledCan be set totrueorfalseto explicitly enable or disable any plugin. Some plugins are enabled by default, while others are disabled. -
editor_menuUsed by editor plugins to set up their activation button in the menu; this is an array of strings that defines the path of submenus and the final button label associated to the plugin. If some strings in the menu path are used by other plugins, they will be grouped under the same submenu. -
diff_menuSame aseditor_menu, but used by diff-page plugins. -
special_menuSame aseditor_menu, but used by Special:SpecialPages plugins. -
bot_labelUsed by bot plugins as their option's label in the plugin selector. -
filter_labelUsed by filter plugins as their option's label in the plugin selector.