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": "Script_Demo_-_Persona_Menu",
        "continue": "gapcontinue||"
    },
    "query": {
        "pages": {
            "140": {
                "pageid": 140,
                "ns": 0,
                "title": "Script Demo - Keyboard Switch",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "in autoexec.cfg (create in base game dir if it doesn't exist):\n<pre>\nbind e []\n</pre>\nto disable edittoggle at game engine start.\nthen modify data/menus.cfg:\n<pre>\nnewgui keyswitcher [\nguibutton \"normal\" [exec gamekeys.cfg]\nguibutton \"editor\" [exec editkeys.cfg]\n]\n</pre>\nDo not forget to add a \"showgui\"-line for your new menu too (in data/menus.cfg, e.g. in the main menu).\nThen all you have to do is copy data/defaults.cfg to gamekeys.cfg and editkeys.cfg (in base folder), remove all non-keybind lines\nand then edit them to match your needs.\nRemember to keep the edittoggle bind for editkeys.cfg and in gamekeys.cfg to bind to an empty string (like in autoexec.cfg above)."
                    }
                ]
            },
            "141": {
                "pageid": 141,
                "ns": 0,
                "title": "Script Demo - Map Menu",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "When using the <tt>complete</tt> function of the \n* <tt>map</tt>, \n* <tt>sp</tt>,  \n* <tt>dmsp</tt>, \n* <tt>ffa</tt>, \n* <tt>insta</tt> and \n* <tt>capture</tt> \naliases you always use an up-to-date list of maps (=*.ogz files).\nThis means they will auto-complete even your ''just saved'' mapname.\nThe console uses TAB-completion for all commands and aliases, the <tt>complete</tt> command gives you TAB-completion on the first argument as files of the configured extension - ogz's in packages/base for the aforementioned aliases.\n\nThe menus ''do not auto-update'' themselves;\nthese lists are editorial only - meaning they are a selection made by a human.\nYou can easily add your favourite creations, downloads and coop-edit maps by adding them to the map name lists in <tt>data/menus.cfg</tt>.\n\nLook for the line reading\n<pre>\nnewgui maps\n</pre>\n\ninsert after the line with <tt>rpgmaps = \"</tt> (line 49 in 2006-12-04 release)\n<pre>\npersonalmaps = \"my_personal_favourite_map_nr_1 my_personal_favourite_map_nr_2 my_personal_favourite_map_nr_3\"\n</pre>\nand inside the <tt>newgui maps</tt> block\n<pre>\nguitab personal\n  guilist [\n    guilist [ genmapitems $personalmaps ]\n    showmapshot\n  ]\n</pre>\n\nThe whole block should look (something) like this\n<pre>\nnewgui maps [\n    guilist [\n      guilist [\n        genmapitems $mainmaps\n        guibutton \"thor\" \"map thor\" \"map\"\n      ]\n      showmapshot\n    ]\n    guitab more\n    guilist [\n      guilist [ genmapitems $moremaps1 ]\n      guilist [ genmapitems $moremaps2 ]\n      showmapshot\n    ]\n// my personal maps here ::\n    guitab personal\n      guilist [\n      guilist [ genmapitems $personalmaps ]\n      showmapshot\n    ]\n// :: my personal maps here\n    guitab old\n    guilist [\n      guilist [ genmapitems $oldmaps ]\n      showmapshot\n    ]\n    guitab capture\n    guilist [\n      guilist [ genmapitems $capturemaps ]\n      showmapshot\n    ]\n    guitab rpg_test\n    guilist [\n      guilist [ genmapitems $rpgmaps ]\n      showmapshot\n    ]\n]\n</pre>\n\nAssuming the maps you entered truely exist in packages/base your menu modification will work."
                    }
                ]
            }
        }
    }
}