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": "Refresh_stash",
        "continue": "gapcontinue||"
    },
    "warnings": {
        "main": {
            "*": "Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> 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": {
            "1042": {
                "pageid": 1042,
                "ns": 0,
                "title": "Read ccs",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "{{\n#vardefine:name|read_ccs}}{{\n#vardefine:return_type|buffer}}{{\n\nFunctionPage|\nname={{#var:name}}|\n\nfunction1={{Function|\nname={{#var:name}}|\naggregate={{#var:aggregate}}|\nreturn_type={{#var:return_type}}|\nreturn_also={{#var:return_also}}|\nparameter1={{Param|string|name}}|\n}}|\n\n\nfunction_description=Reads the text of a given custom combat script and returns a buffer with the result.|\n\nneedscode=yes|\n\nsee_also={{SeeAlso|set_ccs|write_ccs}}|\n}}\n\n[[Category:Adventuring]][[Category:Misc.]]"
                    }
                ]
            },
            "803": {
                "pageid": 803,
                "ns": 0,
                "title": "Refresh shop",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "{{\n#vardefine:name|refresh_shop}}{{\n#vardefine:return_type|void}}{{\n\nFunctionPage|\nname={{#var:name}}|\n\nfunction1={{Function|\nname={{#var:name}}|\naggregate={{#var:aggregate}}|\nreturn_type={{#var:return_type}}|\nreturn_also={{#var:return_also}}|\n}}|\n\nfunction_description=Forces mafia to re-check your mall store (useful since it's impossible for mafia to internally track this section of \"your\" inventory).|\n\ncode1={{CodeSample|\ntitle=Code Samples|\ndescription=Following example uses refresh_shop to create an auto stocker for your shop that prevents you from flooding the market.|\ncode=\n<syntaxhighlight>\nvoid shop_stocker (item selling, int amount_in_store, float mallprice_factor) {\n   while (item_amount(selling) > 0) {\n      int current;\n      refresh_shop();\n      current = shop_amount(selling);\n      if (current < amount_in_store) {\n         int amount = amount_in_store - current;\n         int price = mall_price(selling);\n         price = round(price * mallprice_factor);\n         print(\"Currently have \"+current+\" \"+selling+\" in store. Putting \"+amount+\" more up for \"+price+\".\", \"blue\");\n         put_shop(price, 0, amount, selling);\n      }\n      else print(\"Currently have \"+current+\" \"+selling+\" in store. Have not sold any recently.\", \"red\");\n      print(\"Waiting....\", \"purple\");\n      waitq(300); //wait 5 mins\n   }\n}\n\nshop_stocker ($item[mae west], 5, .99);\n</syntaxhighlight>|\n}}|\n\ncli_equiv=The CLI command \"refresh\" with the parameter \"shop\" has the same function.|\n}}\n\n[[Category:Item Management]]"
                    }
                ]
            }
        }
    }
}