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": "Sandbox",
        "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": {
            "1976": {
                "pageid": 1976,
                "ns": 0,
                "title": "Recent changes transclusion",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "It is possible to include the results of the \"Recent changes\" special page in a wiki page.\n\n== Adding the changelist to a page ==\nTo show the Recent changes list on any page in the wiki, you can simply transclude it by adding the following to your page source:<syntaxhighlight lang=\"text\">\n{{Special:RecentChanges}}\n</syntaxhighlight>This will simply output the same content as is shown on the page ''Special:RecentChanges''.\n[[File:Include Recent changes.png|alt=Recent changes included in a wiki page|center|thumb|650x650px|Recent changes included in a wiki page]]\n\n== Limiting the displayed information ==\nSometimes, you might want to limit the information that is shown for recent changes. \n[[File:recent changes filtered include.png|link=https://en.wiki.bluespice.com/wiki/File:recent%20changes%20filtered%20include.png|alt=Recent changes filtered view|center|thumb|500x500px|Recent changes filtered view]]\n\n\nTo do this, you need to make two changes:\n\n# '''Add a wrapper and filter parameters:''' Apply a wrapper around your transclusion  for formatting purposes and add some filter parameters to limit the results in the list.\n# '''Format the output:''' Remove the unnecessary information through some style adjustment in the page MediaWiki:Common.css (admin rights required)\n\n=== Add a wrapper and filter parameters ===\nYou can set some parameters in the tag to filter some information. The following example shows up to the latest 100 changes in the last 7 days in the main namespace (Pages):<syntaxhighlight lang=\"text\">\n<div class=\"rcinclude\">{{Special:RecentChanges|limit=100|days=7|namespace=0}}</div>\n</syntaxhighlight>To show changes in additional namespaces, add them to the namespace parameter, separated by a semi-colon:<syntaxhighlight lang=\"text\">\n<div class=\"rcinclude\">{{Special:RecentChanges|limit=100|days=7|namespace=0;3010}}</div>\n</syntaxhighlight>\n\n=== Format the output ===\nAfter adding the <nowiki><div class=\"rcinclude\">...</div></nowiki> wrapper around your transclusion content, you can now use this ''rcinclude'' class to style the output and to hide some unnecessary information. This class is important, because it ensures that  other pages in the wiki, such as the actual \"Recent changes\" special page or  the version history pages in your wiki are not affected by these changes.\n\nTo filter out additional detail information \u2014 such as change in file size, markers, or direct links to the version comparison \u2014 add the following to the page ''MediaWiki:Common.css'' (admin rights required):<syntaxhighlight lang=\"text\">\n/** custom formatting for recent changes that are included on a wiki page with a div-wrapper of css-class .rcinclude **/\n\n/* first style declaration hides all unnecessary info such as bytes, direct links to differences, links related to user, and markers */\n.rcinclude .mw-changeslist-line-inner-userTalkLink,\n.rcinclude .mw-diff-bytes, \n.rcinclude .mw-tag-markers,\n.rcinclude .mw-changeslist-legend,\n.rcinclude .mw-changeslist-line-inner-rollback,\n.rcinclude .mw-changeslist-links,\n.rcinclude .mw-changeslist-separator,\n.rcinclude .mw-rollback-link {display:none}\n\n/* remove the \"New\" indicator and the time in front of each main entry - they can only be removed together */\n.rcinclude td.mw-enhanced-rc {display:none} \n\n/* increase spacing between entries */\n.rcinclude .mw-changeslist-line {margin-bottom:0.6em} \n\n/* separate page title and user name */\n.rcinclude .mw-title::after {content:\" -\"} \n\n/* make the day heading more compact */\n.rcinclude .mw-changeslist h4 {font-size:0.95em; margin:1em 0 0.5em 0}  \n\n/* remove unnecessary space in the expanded version rows */\n.rcinclude tr.mw-rcfilters-ui-highlights-enhanced-nested td:nth-child(3){display:none}   \n\n/** end recent changes formatting  **/\n</syntaxhighlight>After saving these changes in ''MediaWiki:Common.css'', you should now see the modified output of the transcluded content as shown in the previous screenshot.\n\nIf you still see the original formatting, you will need to clear the network cache:\n\n# '''Right-click''' on the wiki page that contains the \"Recent changes\" transclusion.\n# '''Click''' ''Inspect''.\n# '''Activate''' Disable cache\n# '''Press''' ''F5'' on your keyboard to refresh the page.\n\n[[File:disable caching.png|alt=disable network cache|center|thumb|650x650px|disable network cache]]\n[[en:{{FULLPAGENAME}}]]\n[[de:Letzte \u00c4nderungen Transklusion]]\n\n[[Category:Organization]]\n[[Category:Portal]]"
                    }
                ]
            },
            "269": {
                "pageid": 269,
                "ns": 0,
                "title": "SMW queries",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "Here you can see some examples for simple queries using the  properties of a wiki page. This functionality is provided by the bundled extension Semantic MediaWiki. You can add these queries to any wiki page.\n\n==Creating page lists==\nIf you need more flexible, customizable queries, you can add the queries directly in source edit mode. Below are a few examples to get you started.\n\n=== Show pages in a particular namespace ===\n<syntaxhighlight lang=\"text\">\n{{#ask:\n[[:+]]  <!-- find all pages in the main namespace -->\n[[Modification date::+]]<!-- necessary to filter deleted pages -->\n|format=ul\n|limit=4\n}}\n</syntaxhighlight>Output example in list style format:<span /><br />{{#ask:\n[[:+]][[Modification date::+]]\n|format=ul\n|limit=4\n}}\n\n<span><br /></span>\n'''Notes:'''\n\n<span><br /></span>\n<code><nowiki>[[:+]]</nowiki></code>                       shows pages from the ''Main'' namespace. \n\n<code><nowiki>[[Myspace:+]]</nowiki></code>      shows pages from the namespace ''Myspace''.\n\n<code><nowiki>[[:+||Help:+]]</nowiki></code>   shows pages from both the ''Main'' namespace and the namespace ''Help''  (=OR argument)\n\n===Output in category style===\n<syntaxhighlight lang=\"text\">\n{{#ask:\n[[:+]][[Modification date::+]]\n|format=category\n|limit=12\n}}\n</syntaxhighlight>Output example:{{#ask:\n[[:+]][[Modification date::+]]\n|format=category\n|limit=12\n}}\n\n===Show pages from a category===\n<syntaxhighlight lang=\"text\">\n{{#ask: \n[[Category:Administration]] \n| limit=4 \n| searchlabel=\n| format=ol \n}} \n</syntaxhighlight>\n{{#ask: \n[[Category:Administration]] \n| limit=4 \n| searchlabel= \n| format=ol\n}}\n\n===Pages that start with the same page name string===\n<syntaxhighlight lang=\"text\">\n{{#ask: \n[[~Visu*]][[:+||Manual:+]]\n[[Modification date::+]]<!-- necessary to filter deleted pages -->\n| limit=5 \n| searchlabel=\n| format=ol \n}}\n</syntaxhighlight>List of pages in the ''Main '' namespace and in the namespace ''Manual'' that begin with \"Visu\".\n{{#ask: \n[[~Visu*]][[:+||Manual:+]]\n[[Modification date::+]]<!-- necessary to filter deleted pages -->\n| limit=5 \n| searchlabel=\n| format=ol \n}}\n\n==Results format: Table==\n\n===Format \"broadtable\"===\n<syntaxhighlight lang=\"text\">\n{{#ask: \n[[~Visu*]][[:+||Manual:+]]\n[[Modification date::+]]<!-- necessary to filter deleted pages -->\n| limit=5 \n| searchlabel=\n| format=broadtable\n}}\n</syntaxhighlight>\n\n{{#ask: \n[[~Visu*]][[:+||Manual:+]]\n[[Modification date::+]]<!-- necessary to filter deleted pages -->\n| limit=5 \n| searchlabel=\n| format=broadtable\n}}\n\n<span><br /></span>\n===Format \"table\" with filter (datatable)===\n<syntaxhighlight lang=\"text\">\n{{#ask: \n[[~Visu*]][[:+||Handbuch:+]]\n[[Modification date::+]]<!-- necessary to filter deleted pages -->\n| limit=5 \n| searchlabel=\n| format=table\n| class=datatable\n}}\n</syntaxhighlight>\n\n{{#ask: \n[[~Visu*]][[:+||Manual:+]]\n[[Modification date::+]]<!-- necessary to filter deleted pages -->\n| limit=5 \n| searchlabel=\n| format=table\n| class=datatable\n}}\n\n\n\n==Date queries ==\n=== Today===\nTo ask for all pages that have been approved today:<syntaxhighlight lang=\"text\">\n{{#ask:\n[[QM/Approval date::>>{{#time:Y-m-d|now -1day}}]]\n}}\n\n</syntaxhighlight>\n\n== Search operators ==\nIf you want to look for results in a particular range, you can use search operators. See: https://semantic-mediawiki.org/wiki/Help:Search_operators#comparators\n\n== <span class=\"mw-headline\">Templates</span> ==\nCustomized output formats can be created using templates. The documentation for this can be found at [https://www.semantic-mediawiki.org/wiki/Help:Using_templates semantic-mediawiki.org.]\n\nHere we show you some useful tips when working with templates.\n\n=== Suppressing the namespace prefix ===\nBy default, the namespace prefix of a page is suppressed in the output formats \"ul\", \"ol\" (and other formats). However, if you are working with a template and therefore use the ''link=none'' parameter in the ask query, because you generate the link in the template yourself, then the page name is displayed with the namespace prefix. Sample query of all pages in the QM namespace: <div>\n <nowiki>{{#ask: </nowiki>[[QM:+]][[Modification date::+]]\n <nowiki>|</nowiki>format=plaintext\n <nowiki>|</nowiki>template=mytemplate\n <nowiki>|</nowiki><nowiki>link=none\n }}</nowiki>\n</div>The output here is in the format '''''QM:My Page'''''.\n\nTo remove the namespace prefix, use the following syntax in the template, e.g. to generate an unordered list:<div>\n *<nowiki>[[{{FULLPAGENAME:{{{1}}}}}|{{PAGENAME:{{{1}}}}}]]</nowiki>\n</div>In this example, the full page name is linked via the \"magic word\" <nowiki>{{FULLPAGENAME}}</nowiki> and the page name without namespace prefix <nowiki>{{PAGENAME}}</nowiki> is used as the link label. The resulting output  is  '''''My Page'''''.{{Box Links-en|Topic1=[https://www.semantic-mediawiki.org/wiki/Help:Inline_queries SMW \"ask\" queries]|Topic2=[https://www.semantic-mediawiki.org/wiki/Help:Result_formats SMW result formats]|Topic3=[https://semantic-mediawiki.org/wiki/Help:Using_templates Using templates to create output formats]}}<span /><br />\n\n\n\n== Content droplet \"Data query\"{{Bsvs|bsvFrom=4.3|bsvTo=|bsvFeature=}} ==\nStarting with BlueSpice 4.3, basic SMW data queries can be added directly with the ''Content droplet'' \"Data query\":\n\n# '''Click''' on the ''Content droplets'' menu item in the visual editor.\n# '''Select''' ''Data query'' under ''Lists.''[[File:Droplet Data query.png|alt=Screenshot of the Content droplet selection for \"Lists\"|center|thumb|500x500px|Content droplet \"Data query\"]]\n# '''Click''' ''Insert''. This opens the droplet inspector.\n# '''Fill in''' the query options (parameter). Each setting has a tooltip that explains exactly what values you can enter.[[File:Droplet Data query parameter.png|alt=Data query parameters|center|thumb|Data query parameters]]\n# '''Click''' ''Save''.\n\n\n[[Category:Organization]]\n[[de:SMW-Abfragen]]\n[[en:{{FULLPAGENAME}}]]"
                    }
                ]
            }
        }
    }
}