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": "Redstone_Output_Port",
        "continue": "gapcontinue||"
    },
    "query": {
        "pages": {
            "40": {
                "pageid": 40,
                "ns": 0,
                "title": "Redstone Controller",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "The Redstone Controller is a [[Screen#Peripheral|peripheral]] which can be used to change the URL of a screen according to a redstone signal.\n\n{{#widget:AdSense}}\n\n==Recipe==\n===From scratch===\nThe Redstone Controller can be crafted from a [[Peripheral Base]]:\n\n[[File:Redctrl1.png]]\n\n===From a Remote Controller===\nOr from a [[Remote Controller]]:\n\n[[File:Redctrl2.png]]\n\n==Usage==\nPlace it somewhere, link it using the [[Linking Tool]], configure it, and apply some arbitrary redstone signal.\n\nThe redstone controller will change the URL if:\n* The redstone signal goes on (rising edge)\n* The redstone signal goes off (falling edge)\n\nThis behavior can be configured by right-clicking the redstone controller and changing the URLs in the rising edge and falling edge fields. Notice the \"YT\" buttons. They have the same purpose as the \"YT\" button in the screen URL GUI, which is detailed [[Screen#Changing the URL|here]]. An empty URL means no change."
                    }
                ]
            },
            "49": {
                "pageid": 49,
                "ns": 0,
                "title": "Redstone Input Port",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "The Redstone Input Port is an [[Screen#Upgrades|upgrade]] which allows web pages to read the redstone levels around the screen.\n\n{{#widget:AdSense}}\n\n==Recipe==\n[[File:Upgrade redin.png]]\n\nThe item on the left is a [[Blank Upgrade]].\n\n==How to use==\nLike any other upgrades, install it by right-clicking on a screen with the upgrade in your main hand. You will need the \"Link & upgrade\" permission to do that.\n\n==JavaScript==\n* The upgrade name returned by <code>GetUpgrades</code> is <code>webdisplays:redinput</code>\n* If this upgrade is used in combination with the [[Redstone Output Port]] upgrade, the redstone level obtained by any of these queries/callbacks on an emitting block is undefined\n* For more information on how to use these queries, check out [[Screen#JavaScript]]\n\n===Queries===\nThis upgrade adds the following queries:\n\n{| class=\"wikitable\"\n|+\n!Query name\n!Arguments\n!Return value\n!Comment\n|-\n|GetRedstoneAt||int, int||<code>{\"level\":int}</code>||0, 0 is the bottom left block. Rotation is not handled.\n|-\n|GetRedstoneArray||None||<code>{\"levels\":[int]}</code>||The level of the block at (x, y) is at index <code>y * width + x</code>\n|}\n\n===Callbacks===\nThis upgrade adds the following callbacks:\n* <code>webdisplaysRedstoneCallback(x, y, level)</code> will be called if the redstone level of the block at x, y has changed."
                    }
                ]
            }
        }
    }
}