MediaWiki API result

This is the HTML representation of the JSON format. HTML is good for debugging, but is unsuitable for application use.

Specify the format parameter to change the output format. To see the non-HTML representation of the JSON format, set format=json.

See the complete documentation, or the API help for more information.

{
    "batchcomplete": "",
    "continue": {
        "gapcontinue": "RemoveLink",
        "continue": "gapcontinue||"
    },
    "warnings": {
        "main": {
            "*": "Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes."
        },
        "revisions": {
            "*": "Because \"rvslots\" was not specified, a legacy format has been used for the output. This format is deprecated, and in the future the new format will always be used."
        }
    },
    "query": {
        "pages": {
            "1564": {
                "pageid": 1564,
                "ns": 0,
                "title": "RegisterEventHandler",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "==registerEventHandler==\n\n\nRegisters an event handler function for a specific event.\n\nLua Syntax:\n<pre>registerEventHandler(event, eventHandler [, eventFlags])</pre>\n===Arguments===\n====event====\n:'''\"string\"''' - The event which triggers the event handler to be called. Currently supported events: \"mainLoop\", \"mouseEvent\", \"animationStarted\", \"animationStopped\", \"textStarted\", \"textStopped\".\n====eventHandler====\n:'''\"string\"''' - The name of the lua function which is called when the event occurs. The function for the events \"animationStarted\", \"animationStopped\", \"textStarted\" and \"textStopped\" should take exactly one argument which is the affected visionaire object. \n:There are no arguments for the \"mainLoop\" event handler. \n:The function for the \"mouseEvent\" takes two arguments, the first one is the mouse event (see \"eventFlags\" parameter) and the second argument is the current mouse position (a table containing x- and y-position).\n====eventFlags====\n:'''{int,...}''' - Can only be specified for event \"mouseEvent\": a list of mouse events where the event handler is called. \n:Currently the following mouse events are supported: eEvtMouseMove, eEvtMouseLeftButtonDoubleClick, eEvtMouseLeftButtonDown, eEvtMouseLeftButtonUp, eEvtMouseLeftButtonHold, eEvtMouseLeftButtonHolding, eEvtMouseRightButtonDoubleClick, eEvtMouseRightButtonDown, eEvtMouseRightButtonUp, eEvtMouseMiddleButtonDown, eEvtMouseMiddleButtonUp, eEvtMouseWheelUp and eEvtMouseWheelDown. If no mouse event is specified then the event handler is registered for all mouse events.\n===Flags===\n===Return Values===\nNone."
                    }
                ]
            },
            "1565": {
                "pageid": 1565,
                "ns": 0,
                "title": "RegisterHookFunction",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "==registerHookFunction==\n\n\nRegisters a hook function for a specific operation.\n\nLua Syntax:\n<pre>registerHookFunction(hook, hookFunction)</pre>\n===Arguments===\n====hook====\n:'''\"string\"''' - The operation for which the hook function should be called. Currently supported hooks: \"setTextPosition\" (the hook is called everytime the position of a displayed text is set), \"getActionText\" (the hook is called everytime to get the currently displayed action text).\n====hookFunction====\n:'''\"string\"''' - The name of the lua function which is called when the hook is executed. \"setTextPosition\": The function should take exactly one argument which is the affected visionaire object. The function must return a boolean value: true if the operation was handled in the hook function, false if the operation was not handled and should be handled by the engine (as if there were no hook).\n:\"getActionText\": The function should take exactly one argument which is the current mouse position (a table containing x- and y-position). The function must return a string value which will be used as the current action text.\n===Flags===\n===Return Values===\nNone."
                    }
                ]
            }
        }
    }
}