AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Mediawiki formatting4/10/2023 If this parameter does not match the Origin header, a 403 response will be returned. This must be included in any pre-flight request, and therefore must be part of the request URI (not the POST body).įor authenticated requests, this must match one of the origins in the Origin header exactly, so it has to be set to something like or. When accessing the API using a cross-domain AJAX request (CORS), set this to the originating domain. Include the languages used for uselang and errorlang in the result. Type: boolean ( details) responselanginfo Include the current timestamp in the result. Include the hostname that served the request in the results. Verify the current user is the named user.Īny value given here will be included in the response. One of the following values: user, bot assertuser Verify the user is logged in if set to user, or has the bot user right if bot. Set the max-age HTTP cache control header to this many seconds. Set the s-maxage HTTP cache control header to this many seconds. See Manual: Maxlag parameter for more information. In case of excessive lag, error code maxlag is returned with a message like Waiting for $host: $lag seconds lagged. To save actions causing any more site replication lag, this parameter can make the client wait until the replication lag is less than the specified value. Maximum lag can be used when MediaWiki is installed on a database replicated cluster. One of the following values: json, jsonfm, none, php, phpfm, rawfm, xml, xmlfm Default: jsonfm maxlag xmlfm Output data in XML format (pretty-print in HTML). rawfm Output data, including debugging elements, in JSON format (pretty-print in HTML). phpfm Output data in serialized PHP format (pretty-print in HTML). php Output data in serialized PHP format. jsonfm Output data in JSON format (pretty-print in HTML). One of the following values: block, changeauthenticationdata, checktoken, clearhasmsg, clientlogin, compare, createaccount, cspreport, delete, edit, emailuser, expandtemplates, feedcontributions, feedrecentchanges, feedwatchlist, filerevert, help, imagerotate, import, linkaccount, login, logout, managetags, mergehistory, move, opensearch, options, paraminfo, parse, patrol, protect, purge, query, removeauthenticationdata, resetpassword, revisiondelete, rollback, rsd, setnotificationtimestamp, setpagelanguage, stashedit, tag, unblock, undelete, unlinkaccount, upload, userrights, validatepassword, watch, tokens Default: help format watch Add or remove pages from the current user's watchlist. validatepassword Validate a password against the wiki's password policies. userrights Change a user's group membership. upload Upload a file, or get the status of pending uploads. unlinkaccount Remove a linked third-party account from the current user. undelete Restore revisions of a deleted page. tag Add or remove change tags from individual revisions or log entries. stashedit Prepare an edit in shared cache. setpagelanguage Change the language of a page. setnotificationtimestamp Update the notification timestamp for watched pages. rsd Export an RSD (Really Simple Discovery) schema. revisiondelete Delete and undelete revisions. resetpassword Send a password reset email to a user. removeauthenticationdata Remove authentication data for the current user. query Fetch data from and about MediaWiki. purge Purge the cache for the given titles. protect Change the protection level of a page. parse Parses content and returns parser output. paraminfo Obtain information about API modules. options Change preferences of the current user. opensearch Search the wiki using the OpenSearch protocol. managetags Perform management tasks relating to change tags. login Log in and get authentication cookies. linkaccount Link an account from a third-party provider to the current user. import Import a page from another wiki, or from an XML file. help Display help for the specified modules. filerevert Revert a file to an old version. feedrecentchanges Returns a recent changes feed. feedcontributions Returns a user contributions feed. expandtemplates Expands all templates within wikitext. This module should never be used, except when used automatically by a CSP compliant web browser. cspreport Used by browsers to report violations of the Content Security Policy. ![]() compare Get the difference between two pages. clientlogin Log in to the wiki using the interactive flow. clearhasmsg Clears the hasmsg flag for the current user. checktoken Check the validity of a token from action=query&meta=tokens. changeauthenticationdata Change authentication data for the current user.
0 Comments
Read More
Leave a Reply. |