[https://github.com/kynikos/wiki-monkey/wiki Wiki Monkey] is a MediaWiki-compatible bot and editor assistant that can be used directly within wiki pages in the browser as a user script. Currently it is tested on [[Firefox]], [[Chromium]] and [[Opera]], but it is very likely to work also on other browsers out of the box or with minor adaptations. Wiki Monkey can also be easily extended through the creation of plugins, exploiting its API.

−

−

[https://github.com/kynikos/wiki-monkey/wiki Wiki Monkey] is a MediaWiki-compatible bot and editor assistant that can be used directly within wiki pages in the browser. It is available for [[Firefox]] and [[Chromium]], and can be easily extended through the creation of plugins, exploiting its high-level API.

The project is currently focused on ArchWiki, and as such most plugins address ArchWiki-specific problems.

The project is currently focused on ArchWiki, and as such most plugins address ArchWiki-specific problems.

{{Note|since the ArchWiki is served through HTTPS, Opera users will have to follow the instructions in the related note.}}

+

+

{{Tip|the names of ArchWiki-specific configurations appear in the configurations table with an "ArchWiki-" prefix.}}

+

+

==Tour of the features==

−

====Firefox====

+

Discover the features of Wiki Monkey by following this tour. See [https://github.com/kynikos/wiki-monkey/wiki/Bundled-plugins Bundled plugins] for more detailed information.

−

Make sure you have installed '''either''' the [https://addons.mozilla.org/en-US/firefox/addon/scriptish/ Scriptish] add-on (recommended) '''or''' the [https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/ Greasemonkey] add-on.

−

====Chromium====

+

{{Tip|at the bottom of Wiki Monkey's interface you will always find a log area, on dark background, where Wiki Monkey and its plugins will output their messages.}}

−

Make sure you have installed the [https://chrome.google.com/webstore/detail/dhdgffkkebhmkfjojejmpbldmpobfkfo Tampermonkey] extension. Even though Chromium has native support for user scripts, this has [http://www.chromium.org/developers/design-documents/user-scripts some limitations], and Tampermonkey is necessary in order to support Wiki Monkey's features.

−

===Installing the script===

+

===Editor pages===

−

Now just click on the link of '''one''' of the following Wiki Monkey configurations and your browser should ask you to install it:

If you have installed the ''ArchWiki-Editor'', ''ArchWiki-Patrol'' or ''ArchWiki-Bot'' configuration, in every ''editor'' page (e.g. [https://wiki.archlinux.org/index.php?title=ArchWiki:Sandbox&action=submit ArchWiki:Sandbox's]) you will find Wiki Monkey's interface right below the ''Save page'' button row. As you can see there are some buttons, each of which will execute a plugin action:

* ''Sync interlanguage links'' synchronizes the interlanguage links of the edited page with those of its translations (the Chromium-native, Opera and standalone configurations can only synchronize local languages).

+

* ''Fix old AUR links'' converts direct AUR-1.x package links to instances of [[Template:AUR]] (or [[Template:Pkg]] if the package has been moved to the official repositories) (available only for the Scriptish/Greasemonkey/Tampermonkey configurations).

+

* ''Update package templates'' checks the existence of the packages and groups linked through [[Template:Pkg]], [[Template:AUR]] and [[Template:Grp]] and tries to update any broken template (available only for the Scriptish/Greasemonkey/Tampermonkey configurations).

−

{{Warning|Although it is possible to keep multiple configurations of Wiki Monkey installed together, make sure to enable only '''one''' at a time.}}

+

By pressing one of them, the text in the editor will be modified, but note that the page will not be saved, so you will still be able to see the diff or the preview and perform other modifications manually. The ''Execute row'' and ''Execute all'' buttons are used to execute more plugins one after the other, thus saving some clicks.

−

{{Note|Chromium will first ask you whether you want to install the script with the native support or through Tampermonkey: of course you need to choose the Tampermonkey option.}}

+

===Diff pages===

−

===Automatic updates===

+

If you have installed the ''ArchWiki-Patrol-Lite'', ''ArchWiki-Patrol'' or ''ArchWiki-Bot'' configuration, in every ''diff'' page (e.g. [https://wiki.archlinux.org/index.php?title=ArchWiki:Sandbox&diff=262475&oldid=261738 one from ArchWiki:Sandbox's history]) you will find Wiki Monkey's interface right below the two diff panes. Here the only bundled plugin is ''Quick report'', which adds a row with a link to the visited diff in the specialized table of [[ArchWiki:Reports]]. See also [[ArchWiki:Maintenance Team]].

−

====Scriptish (Firefox)====

+

===Page lists (Bot)===

−

Scriptish does not enable automatic updates by default, so, if you want them, you have to open Firefox's ''Add-ons Manager'' (''Tools -> Add-ons''), select ''User Scripts'', right-click on Wiki Monkey and choose ''Show More Information'', then set ''Automatic Updates'' to ''On''.

If you have installed the ''ArchWiki-Bot'' configuration you will find Wiki Monkey's Bot interface in many pages that show lists of pages (e.g. [[Special:Categories|Category pages]], [[Special:WhatLinksHere|What Links Here pages]] and many [[Special:SpecialPages|Special pages]]; see [[:Category:Sandbox]] for a specific example). The usage of the Bot interface is explained in [https://github.com/kynikos/wiki-monkey/wiki/Bot-interface the upstream documentation].

−

====Greasemonkey (Firefox)====

+

{{Note|the Bot interface is hidden by default, you will have to show it by clicking on the dedicated link.}}

−

{{Note|Experimental feature: please check periodically for new releases, and in case Wiki Monkey is not updated please report a bug [https://github.com/kynikos/wiki-monkey/issues here].}}

The available plugins for the Bot are a regular expression substitution function and a tool for synchronizing the interlanguage links of the pages with those of their translations (the Chromium-native, Opera and standalone configurations can only synchronize local languages).

−

====Tampermonkey (Chromium)====

+

[[Special:WhatLinksHere]] also provides a plugin that checks and tries to fix any broken links to specific sections of the target article; it also provides a plugin that checks the existence of the packages and groups linked through [[Template:Pkg]], [[Template:AUR]] and [[Template:Grp]] and tries to update any broken template (available only for the Scriptish/Greasemonkey/Tampermonkey configurations).

−

{{Note|Experimental feature: please check periodically for new releases, and in case Wiki Monkey is not updated please report a bug [https://github.com/kynikos/wiki-monkey/issues here].}}

''Settings'' tab and verifying the settings for ''Check Interval'' in the ''Script Update'' section.

−

==Tour of the features==

+

[[Special:LinkSearch]] also provides a plugin for converting direct AUR-1.x package links to instances of [[Template:AUR]] (or [[Template:Pkg]] if the package has been moved to the official repositories) (the Bot is shown only if there is at least one item in the list; available only for the Scriptish/Greasemonkey/Tampermonkey configurations).

−

After installing the desired version of Wiki Monkey, start visiting [https://wiki.archlinux.org/index.php?title=Wiki_Monkey&action=submit the editor of this very page], you will find Wiki Monkey's interface right below the ''Save page'' button row. As you can see there are some buttons, each of which will execute a plugin action (see [https://github.com/kynikos/wiki-monkey/wiki/Bundled-plugins Bundled plugins] for detailed information):

−

* ''Fix header'' reorders the elements in the header, warns about possible problems (e.g. lack of category), adds [[Template:i18n]] if it is missing and so on.

−

* ''Fix headings'' tries to fix the levels of section headings so that they start from level 2 and do not increase by more than 1 level with relation to the parent section.

By pressing one of them, the text in the editor will be modified, but note that the page will not be saved, so you will still be able to see the diff or the preview and perform other modifications manually. The ''Execute row'' and ''Execute all'' buttons are used to execute more plugins one after the other, thus saving some clicks.

−

At the bottom of Wiki Monkey's interface you will always find the log area, on dark background, where Wiki Monkey and its plugins will output their messages.

+

===Special functions===

−

Now, if you have installed the "Patrol Lite", "Patrol" or "Bot" configuration, visit [[Special:RecentChanges]] and select a diff from the list: right below the diff panes you will find Wiki Monkey's interface. Here the only bundled plugin is ''Quick report'', which adds a row with a link to the visited diff in a specialized table of a predefined article.

+

If you have installed the ''ArchWiki-Bot'' configuration you will also find Wiki Monkey's interface at the top of [[Special:SpecialPages]]: here you will find those plugins that have a generic purpose and are not based on a specific page. The available plugins are a function to update [[Table of Contents]] pages, and a function to fix [[Special:DoubleRedirects|double redirects]].

−

{{Note|The predefined article is actually still under development, so this feature is not working yet.}}

−

At this point, if you have installed the "Bot" configuration, visit [[Special:SpecialPages]]: at the top of the page you will find those plugins that have a generic purpose and are not based on a specific page: the only currently available plugin is a function to update Table of Contents pages.

+

===Recent Changes===

−

Finally, if you have installed the "Bot" configuration, visit the [[:Category:Wiki Tools|''Category'']] of this article: right at the top you will find Wiki Monkey's bot interface, whose usage is explained in [https://github.com/kynikos/wiki-monkey/wiki/Bot-interface the upstream documentation]. The only currently available plugin is a regular expression substitution function. Other pages where you can find the bot are [[Special:WhatLinksHere/Wiki_Monkey|''What Links Here'']] pages, the [https://wiki.archlinux.org/index.php?title=Special%3ALinkSearch&target=https%3A%2F%2Fwiki.archlinux.org ''External links search''] tool and many of the list pages linked from [[Special:SpecialPages]].

+

If you have installed the ''ArchWiki-Patrol-Lite'', ''ArchWiki-Patrol'' or ''ArchWiki-Bot'' configuration, at the top of [[Special:RecentChanges]] you will find Wiki Monkey's Recent Changes filter. Currently the bundled filter only groups the changes by the language of the affected article.

−

==Contributions==

+

{{Note|the default filter is designed to work on top of MediaWiki's Recent Changes filter, which can be enabled in [[Special:Preferences#mw-prefsection-rc]]. This also means that you must be logged on in order to use it.}}

−

Of course any help in the resolution of bugs or the development of new plugins is appreciated: if you are interested, [https://wiki.archlinux.org/index.php/Special:EmailUser/Kynikos send an email] to the original author (or use [[User_talk:Kynikos|his talk page]]) and urge him to finally complete the documentation about the [https://github.com/kynikos/wiki-monkey/wiki/Plugin-development development of plugins], which is actually quite straightforward.

Revision as of 04:52, 27 October 2013

Wiki Monkey is a MediaWiki-compatible bot and editor assistant that can be used directly within wiki pages in the browser as a user script. Currently it is tested on Firefox, Chromium and Opera, but it is very likely to work also on other browsers out of the box or with minor adaptations. Wiki Monkey can also be easily extended through the creation of plugins, exploiting its API.

The project is currently focused on ArchWiki, and as such most plugins address ArchWiki-specific problems.

Contents

Installation

Note: since the ArchWiki is served through HTTPS, Opera users will have to follow the instructions in the related note.

Tip: the names of ArchWiki-specific configurations appear in the configurations table with an "ArchWiki-" prefix.

Tour of the features

Discover the features of Wiki Monkey by following this tour. See Bundled plugins for more detailed information.

Tip: at the bottom of Wiki Monkey's interface you will always find a log area, on dark background, where Wiki Monkey and its plugins will output their messages.

Editor pages

If you have installed the ArchWiki-Editor, ArchWiki-Patrol or ArchWiki-Bot configuration, in every editor page (e.g. ArchWiki:Sandbox's) you will find Wiki Monkey's interface right below the Save page button row. As you can see there are some buttons, each of which will execute a plugin action:

Fix header reorders the elements in the header, warns about possible problems (e.g. lack of category) and tries to fix some.

Fix headings tries to fix the levels of section headings so that they start from level 2 and do not increase by more than 1 level with relation to the parent section.

Sync interlanguage links synchronizes the interlanguage links of the edited page with those of its translations (the Chromium-native, Opera and standalone configurations can only synchronize local languages).

Fix old AUR links converts direct AUR-1.x package links to instances of Template:AUR (or Template:Pkg if the package has been moved to the official repositories) (available only for the Scriptish/Greasemonkey/Tampermonkey configurations).

Update package templates checks the existence of the packages and groups linked through Template:Pkg, Template:AUR and Template:Grp and tries to update any broken template (available only for the Scriptish/Greasemonkey/Tampermonkey configurations).

By pressing one of them, the text in the editor will be modified, but note that the page will not be saved, so you will still be able to see the diff or the preview and perform other modifications manually. The Execute row and Execute all buttons are used to execute more plugins one after the other, thus saving some clicks.

Diff pages

If you have installed the ArchWiki-Patrol-Lite, ArchWiki-Patrol or ArchWiki-Bot configuration, in every diff page (e.g. one from ArchWiki:Sandbox's history) you will find Wiki Monkey's interface right below the two diff panes. Here the only bundled plugin is Quick report, which adds a row with a link to the visited diff in the specialized table of ArchWiki:Reports. See also ArchWiki:Maintenance Team.

Note: the Bot interface is hidden by default, you will have to show it by clicking on the dedicated link.

The available plugins for the Bot are a regular expression substitution function and a tool for synchronizing the interlanguage links of the pages with those of their translations (the Chromium-native, Opera and standalone configurations can only synchronize local languages).

Special:WhatLinksHere also provides a plugin that checks and tries to fix any broken links to specific sections of the target article; it also provides a plugin that checks the existence of the packages and groups linked through Template:Pkg, Template:AUR and Template:Grp and tries to update any broken template (available only for the Scriptish/Greasemonkey/Tampermonkey configurations).

Special:LinkSearch also provides a plugin for converting direct AUR-1.x package links to instances of Template:AUR (or Template:Pkg if the package has been moved to the official repositories) (the Bot is shown only if there is at least one item in the list; available only for the Scriptish/Greasemonkey/Tampermonkey configurations).

Special functions

If you have installed the ArchWiki-Bot configuration you will also find Wiki Monkey's interface at the top of Special:SpecialPages: here you will find those plugins that have a generic purpose and are not based on a specific page. The available plugins are a function to update Table of Contents pages, and a function to fix double redirects.

Recent Changes

If you have installed the ArchWiki-Patrol-Lite, ArchWiki-Patrol or ArchWiki-Bot configuration, at the top of Special:RecentChanges you will find Wiki Monkey's Recent Changes filter. Currently the bundled filter only groups the changes by the language of the affected article.

Note: the default filter is designed to work on top of MediaWiki's Recent Changes filter, which can be enabled in Special:Preferences#mw-prefsection-rc. This also means that you must be logged on in order to use it.