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": "",
    "query": {
        "pages": [
            {
                "ns": 0,
                "title": "API",
                "missing": ""
            },
            {
                "pageid": 1,
                "ns": 0,
                "title": "Main Page",
                "revisions": [
                    {
                        "user": "Ad\u00e1m Brudzewsky",
                        "timestamp": "2022-09-10T22:15:54Z",
                        "slots": {
                            "main": {
                                "contentmodel": "wikitext",
                                "contentformat": "text/x-wiki",
                                "*": "__NOTITLE__\n__NOTOC__\n{| style=\"border-spacing: 1ex;\"\n| style=\"background:#f9f9f9;border:1px solid #ddd;\" colspan=\"2\" |\n{| style=\"border-spacing: 1em;\"\n|-\n| style=\"width:50%;text-align:center;\" | <span style=\"font-size:xx-large\">Welcome to [[APL Wiki]],</span><br>\n[[Special:Statistics|{{NUMBEROFARTICLES}}]] articles about APL that anyone can edit.<br>\nSee the [[overview|navigational overview]] of content.\n| [[File:APL logo.png|48px|link=APL logo]]\n| [[The name APL|'''APL''']] is an [[wikipedia:Array_programming|array-oriented programming language]]. Its natural, concise [[APL syntax|syntax]] lets you develop shorter programs while thinking more about the problem you're trying to solve than how to express it to a computer. \n|}\n\n|- style=\"vertical-align:top\"\n| style=\"background:#f5fffa;border:1px solid #cef2e0;padding:0 1em\" |\n<h2 style=\"margin:.75em 0; background:#cef2e0; font-family:inherit; font-size:120%; font-weight:bold; border:1px solid #a3bfb1; color:#000; padding:0.2em 0.4em;\">Running APL</h2>\nTraditionally a commercial language, quite a few implementations are now free without feature limitations, several can be tried online, and many are [[List of open-source array languages|open source]].\n\n<p style=\"text-align:center\">'''[[Running APL]] \u2219 [https://tryapl.org/ Try APL online]'''</p>\n\n| style=\"background:#f5faff;border:1px solid #cee0f2;padding:0 1em\" |\n<h2 style=\"margin:0.75em 0; background:#cedff2; font-family:inherit; font-size:120%; font-weight:bold; border:1px solid #a3b0bf; color:#000; padding:0.2em 0.4em;>Hello world</h2>\n\nTaking up a new programming language can be a daunting task. While it can appear cryptic at first, you can learn to [[semantic density|read]], write and [[mnemonics|remember]] APL with little effort. There is plenty of material to help you in the process.\n\n<p style=\"text-align:center\">'''[[Introductions]] \u2219 [[Learning resources]]'''</p>\n|- style=\"vertical-align:top\"\n| style=\"background:#faf5ff;border:1px solid #e0cef2;padding:0 1em\" |\n<h2 style=\"margin:0.75em 0; background:#ddcef2; font-family:inherit; font-size:120%; font-weight:bold; border:1px solid #afa3bf; color:#000; padding:0.2em 0.4em\">Who uses it?</h2>\nAPL is used by both hobbyists and application developers. There are active [[:Category:user groups|user groups]] all around the globe, many of these hold regular in-person meet-ups. There are also multiple online [[chat rooms and forums]].\n\n<p style=\"text-align:center\">'''[[Case studies]] \u2219 [[Job listings]] \u2219 [[Conferences and activities]]'''</p>\n\n| style=\"background:#fff5fa;border:1px solid #f2cee0;padding:0 1em\" |\n<h2 style=\"margin:0.75em 0; background:#f2cedd; font-family:inherit; font-size:120%; font-weight:bold; border:1px solid #bfa3af; color:#000; padding:0.2em 0.4em\">Contributing</h2>\n[[APL_Wiki:About|APL Wiki]] is an online open-content [[wikipedia:wiki|wiki]]; that is, a voluntary association of individuals and groups working to develop a common knowledge resource. The structure of the project allows anyone with an Internet connection to alter [[APL_Wiki:Content_guidelines|its content]].\n<p style=\"text-align:center\">'''[[Help:Contributing|How to contribute]] \u2219 [[Special:NewPages|New pages]] \u2219 [[Special:WantedPages| Wanted pages]]'''</p>\n|-\n\n| colspan=\"2\" style=\"border:1px solid #e2e2e2;padding:0 1em\" |\n<h2 style=\"margin:0.75em 0; background:#eeeeee; border:1px solid #ddd; color:#222; padding:0.2em 0.4em; font-size:120%; font-weight:bold; font-family:inherit;\">Examples</h2>\nAPL's terseness means that substantial programs are expressible in a small space, relative to many other programming languages. Below are just a taste. Many more, and fully explained, examples are in the [[simple examples]] article.\n=== Split text by delimiter ===\nWith the introduction of [[tacit programming]], many functions can be expressed in fewer characters than even the shortest fitting name. For example <syntaxhighlight lang=apl inline>\u2260\u2286\u22a2</syntaxhighlight> is but three characters, while you would need five for the name <code>Split</code>:\n\n[https://tryapl.org/?a=%27%2C%27%28%u2260%u2286%u22A2%29%27comma%2Cdelimited%2Ctext%27&run Try it now!]\n<syntaxhighlight lang=apl>\n      ','(\u2260\u2286\u22a2)'comma,delimited,text'\n\u250c\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2510\n\u2502comma\u2502delimited\u2502text\u2502\n\u2514\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2518\n</syntaxhighlight>\n{{Works in|[[Dyalog APL]]}}\n'''[[Simple examples#Split text by delimiter|Full explanation\u2026]]'''\n\n=== Conway's \"Game of Life\" ===\n[[John Scholes]] is famous for the following implementation of ''[[Conway's Game of Life]]'':\n\n[https://tryapl.org/?a=%u22A2world%u21902%202%202%202%u22A40%2012%205%202%204%201&run&a=%7B%u21911%20%u2375%u2228.%u22273%204%3D+/%2C%AF1%200%201%u2218.%u2296%AF1%200%201%u2218.%u233D%u2282%u2375%7D%20world&run Try it now!]\n<syntaxhighlight lang=apl>\n      \u2395\u2190world\u21902 2 2 2\u22a40 12 5 2 4 1\n0 1 0 0 0 0\n0 1 1 0 1 0\n0 0 0 1 0 0\n0 0 1 0 0 1\n      {\u21911 \u2375\u2228.\u22273 4=+/,\u00af1 0 1\u2218.\u2296\u00af1 0 1\u2218.\u233d\u2282\u2375} world\n1 1 0 1 0 0\n0 1 1 1 0 0\n0 1 0 1 1 0\n0 0 1 0 0 0\n</syntaxhighlight>\n{{Works in|[[Dyalog APL]], [[ngn/apl]]}}\n'''[[John Scholes' Conway's Game of Life|Full article\u2026]]'''\n\n<p style=\"text-align:center\">'''[[Simple examples|Further simple examples]] \u2219 [[Advanced examples]]'''</p>\n|}"
                            }
                        },
                        "comment": "Text replacement - \"</source>\" to \"</syntaxhighlight>\""
                    }
                ]
            }
        ]
    }
}