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": "ReplaceAnimationLibrarySequence",
        "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": {
            "139": {
                "pageid": 139,
                "ns": 0,
                "title": "RemovePlayerFromVehicle",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "{{Info|Function|Server|1.0}}\n\n{{FuncDescription|Used to kick players from vehicles/force exit}}\n\n{{FuncSyntax|RemovePlayerFromVehicle(player)}}\n\n{{FuncParameters}}\n{{FuncParam|player|Player you want to kick out of a vehicle}}\n\n{{FuncReturnValue|Returns '''true''' on success.}}\n\n== Example ==\n<syntaxhighlight lang=\"Lua\">\n\nfunction cmd_eject(player, otherplayer)\n\t\n\tif (otherplayer == nil) then\n\t\treturn AddPlayerChat(player, \"Usage: /eject <player>\")\n\tend\n\n\totherplayer = tonumber(otherplayer)\n\n\tif (not IsValidPlayer(otherplayer)) then\n\t\treturn AddPlayerChat(player, \"Selected player does not exist\")\n\tend\n\n\tif (GetPlayerVehicle(otherplayer) == 0) then\n\t\treturn AddPlayerChat(player, \"Selected player is not in a vehicle\")\n\tend\n\n\tlocal x, y, z = GetPlayerLocation(otherplayer)\n\tSetPlayerLocation(otherplayer, x, y, z + 300)\n\n\tAddPlayerChat(player, \"You have ejected \"..GetPlayerName(otherplayer)..\"(\"..otherplayer..\") from their vehicle\")\nend\nAddCommand(\"eject\", cmd_eject)\n\n</syntaxhighlight>\n\n{{RelatedFunctions}}\n*[[GetPlayerVehicle]]\n*[[GetPlayerVehicleSeat]]\n*[[SetPlayerInVehicle]]\n*[[RemovePlayerFromVehicle]]"
                    }
                ]
            },
            "1930": {
                "pageid": 1930,
                "ns": 0,
                "title": "RemovePostProcessMaterial",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "{{Info|Function|Client|1.0}}\n\n{{FuncDescription|Removes a post process material that was previously added with [[AddPostProcessMaterial]]}}\n\n{{FuncSyntax|RemovePostProcessMaterial(SlotName)}}\n\n{{FuncParameters}}\n{{FuncParam|SlotName|Name of the slot to remove. [[AddPostProcessMaterial]].}}\n\n{{FuncReturnValue|Returns '''true''' on success.}}\n\n== Example ==\n<syntaxhighlight lang=\"Lua\">\nlocal added = false\nfunction OnKeyPress(key)\n    if key == \"J\" then\n        added = not added\n        if added then\n            AddPostProcessMaterial(\"MyPPMaterial\", UMaterialInterface.LoadFromAsset(\"/MyMod/Material/M_Cellshading\"))\n        else\n            RemovePostProcessMaterial(\"MyPPMaterial\")\n        end\n    end\nend\nAddEvent(\"OnKeyPress\", OnKeyPress)\n</syntaxhighlight>\n\n{{RelatedFunctions}}\n* [[SetPostEffect]]\n* [[AddPostProcessMaterial]]\n* [[RemovePostProcessMaterial]]"
                    }
                ]
            }
        }
    }
}