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": {
            "-1": {
                "ns": 0,
                "title": "API",
                "missing": ""
            },
            "1447": {
                "pageid": 1447,
                "ns": 0,
                "title": "Main Page",
                "revisions": [
                    {
                        "user": "Jonathan",
                        "timestamp": "2024-03-20T18:23:49Z",
                        "slots": {
                            "main": {
                                "contentmodel": "wikitext",
                                "contentformat": "text/x-wiki",
                                "*": "==Mental Health Law Online==\n{{Main Page introduction}}<!--Appears here and on About page--> \n\n<div class=\"row\" style=\"font-size:90%\">\n\n<div class=\"medium-3 columns\"><!--column 1-->\n\n<div class=\"main-box\" style=\"border-color: #3AB54A\">\n<h4 class=\"subheader main-subheader\" style=\"background-color: #3AB54A\"><i class=\"fa fa-comments\" aria-hidden=\"true\"></i>&nbsp;&nbsp;Forum topics</h4>\n<div class=\"main-box-content\">\n{{#widget:forum topics}}\n* <span class=\"plainlinks\">[https://forum.mentalhealthlaw.co.uk/ '''View all topics...''']</span>\n</div>\n</div>\n\n\n<div class=\"main-box\" style=\"border-color: #000000\">\n<h4 class=\"subheader main-subheader\" style=\"background-color: #000000\">Contacts</h4>\n<div class=\"main-box-content\">\n<p>The Magic Book is a database of contact details which currently contains '''{{#cargo_query:tables=Contact|fields=COUNT(*)|group by='()'}}''' pages. </p>\n* [[Contact:Magic Book#top|Add people and places]]\n* '''[[Contact:Magic Book#top|View all contacts...]]'''\n</div>\n</div>\n\n\n</div><!--column 1-->\n\n<div class=\"medium-3 columns\"><!--COLUMN 2-->\n\n<div class=\"main-box\" style=\"border-color: #BF1E2E\">\n<h4 class=\"subheader main-subheader\" style=\"background-color: #BF1E2E\"><i class=\"fa fa-file-text\" aria-hidden=\"true\"></i>&nbsp;&nbsp;News and updates</h4>\n<div class=\"main-box-content\">\nAll the latest updates to the website can be seen on on the <span class=\"plainlinks\">[https://forum.mentalhealthlaw.co.uk/c/mhlo-updates/10 MHLO updates]</span> forum category. The five most recent appear here.\n{{Show news on main page|2}}\n</div>\n</div>\n\n\n<div class=\"main-box\" style=\"border-color: #F1592A\">\n<h4 class=\"subheader main-subheader\" style=\"background-color: #F1592A\"><i class=\"fa fa-question-circle\" aria-hidden=\"true\"></i>&nbsp;&nbsp;Consultations</h4>\n<div class=\"main-box-content\">\n{{#cargo_query:\ntables=Resources\n|format=ul\n|where=( Date_closed >= NOW() OR Date_closed IS NULL ) AND Type HOLDS 'Consultation'\n|group by=_pageName\n|default=No open consultations.\n|intro=<p>Open consultations:</p>\n}}\n</div>\n</div>\n\n\n</div><!--column 2-->\n\n<div class=\"medium-3 columns\"><!--column 3-->\n\n<div class=\"main-box\" style=\"border-color: #E37151\">\n<h4 class=\"subheader main-subheader\" style=\"background-color: #E37151\"><i class=\"fa fa-list-ul\" aria-hidden=\"true\"></i>&nbsp;&nbsp;To do</h4>\n<div class=\"main-box-content\" style=\"overflow-wrap: break-word\">\nThings that will end up with their own MHLO pages, when I have time...\n{{todo latest}}\n</div>\n</div>\n\n\n</div><!--end of column 3-->\n\n<div class=\"medium-3 columns\"><!--COLUMN 4-->\n\n<div class=\"main-box\" style=\"border-color: #9EB83B\">\n<h4 class=\"subheader main-subheader\" style=\"background-color: #9EB83B\"><i class=\"fa fa-envelope\" aria-hidden=\"true\"></i>&nbsp;&nbsp;Email updates</h4>\n<div class=\"main-box-content\">\nChoose occasional and/or monthly update emails. To sign up, please go to the '''<span class=\"plainlinks\">[http://www.mhlo.org.uk/lists/index.php?p=subscribe&id=1 email updates subscription page]</span>'''.\n</div>\n</div>\n\n\n<div class=\"main-box\" style=\"border-color: #ED207B\">\n<h4 class=\"subheader main-subheader\" style=\"background-color: #ED207B\"><i class=\"fa fa-graduation-cap\" aria-hidden=\"true\"></i>&nbsp;&nbsp;CPD</h4>\n<div class=\"main-box-content\">\nThe '''[[CPD scheme]]''' is primarily aimed at mental health solicitors, and is an ideal way to evidence your continued competence, but is also suitable for barristers, psychiatrists, social workers and psychiatric nurses. For \u00a360, you can obtain 12 CPD credits. \n</div>\n</div>\n\n\n<div class=\"main-box\" style=\"border-color: #A461EF\">\n<h4 class=\"subheader main-subheader\" style=\"background-color: #A461EF\"><i class=\"fa fa-briefcase\" aria-hidden=\"true\"></i>&nbsp;&nbsp;Jobs</h4>\n<div class=\"main-box-content\">\n{{Jobs titles}}\n</div>\n</div>\n\n\n<div class=\"main-box\" style=\"border-color: #F7941D\">\n<h4 class=\"subheader main-subheader\" style=\"background-color: #F7941D\"><i class=\"fa fa-calendar\" aria-hidden=\"true\"></i>&nbsp;&nbsp;Events</h4>\n<div class=\"main-box-content\">\n{{Events titles}}\n</div>\n</div>\n\n\n<div class=\"main-box\" style=\"border-color: #666666\">\n<h4 class=\"subheader main-subheader\" style=\"background-color: #666666\"><i class=\"fa fa-book\" aria-hidden=\"true\"></i>&nbsp;&nbsp;Books</h4>\n{{selected books}}\n</div>\n\n</div><!-- column 3-->\n\n</div><!--main row-->\n\n__NOTOC__\n__NOCACHE__"
                            }
                        },
                        "comment": "Adding consultations icon"
                    }
                ]
            }
        }
    }
}