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": "ResetCustomDataToDefault",
        "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": {
            "649": {
                "pageid": 649,
                "ns": 0,
                "title": "RemoveBot",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "{{ACSWarning}}\n{{DevfeatureWarning|version=3.2|type=an [[ACS]] function}}\nint '''RemoveBot''' ([str ''name'']) {{Devfeature|3.2|alpha}}\n\n== Usage == \nRemoves a bot from the game.\n\n=== Parameters ===\n* ''name'': The name of the bot to be removed. If this is unspecified or empty, a random bot will be removed.\n\n=== Return value ===\nReturns '''1''' if the bot was removed successfully, or '''0''' on error (e.g. no bot with that name is in the game).\n\n== Examples ==\n{{noexamples}}\n\n== See also ==\n* [[AddBot]]\n\n[[Category: ACS functions]]"
                    }
                ]
            },
            "119": {
                "pageid": 119,
                "ns": 0,
                "title": "RequestScriptPuke",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "{{Template:ACSWarning}}\nint '''RequestScriptPuke''' (int ''script'', int ''arg0'', int ''arg1'', int ''arg2'')\n\nint '''RequestScriptPuke''' (int ''script''[, int ''arg0''[, int ''arg1''[, int ''arg2''[, int ''arg3'']]]])\n\nint '''NamedRequestScriptPuke''' (str ''script''[, int ''arg0''[, int ''arg1''[, int ''arg2''[, int ''arg3'']]]])\n\n== Usage ==\nRequestScriptPuke will request the execution of the script of the given script with the given arguments on the server. NamedRequestScriptPuke is the same except with named scripts. Scripts called by this are automatically treated as \"execute always\" and thus don't need to be negative numbers.\n\nBeing a <tt>puke</tt> wrapper, they have a few caveats and potential pitfalls:\n\n* The script passed must be <tt>NET</tt>. It is not possible to request execution of non-<tt>NET</tt> scripts.\n* The function must be used in <tt>CLIENTSIDE</tt> scripts and will not do anything but print a warning if called on the server.\n* It is not guaranteed that the puke request ever reaches the server. If the packet containing the request is lost, the server will not recieve the request at all.\n* The activator of the <tt>NET</tt> script puked is always the local player, not the activator of the parent client-side script.\n\nIf run offline, the script will be executed on the local machine.\n\n=== Parameters ===\n* ''script'': The number or name to execute.\n* ''arg0'' .. ''arg3'': The arguments to be passed to the script.\n\n=== Return value ===\n'''1''' if the script execution was successfully requested, '''0''' if RequestScriptPuke() is called on the server or the requested script is not NET. Note that the function may return '''1''' and the script still may not be executed on the server due to the unreliableness of the packet.\n\n== Examples ==\nIn the following example, calling script 2 on the client-side requests puke of script 1 to give the server some cookies.\n\n<syntaxhighlight lang=\"c\" line=\"1\">\nScript 1 (int numcookies) NET\n{\n    Print(n: 0, s: \" gives the server host \", d: numcookies, s: \" cookies in gratitude of the excellent hosting service\");\n}\n \nScript 2 (int numcookies) CLIENTSIDE\n{\n    RequestScriptPuke(1, numcookies, 0, 0);\n}\n</syntaxhighlight>\n\n[[category:ACS functions]]"
                    }
                ]
            }
        }
    }
}