< Requests for comment < API roadmap

Notes

  • A prefix with a '*' means this module can be used as a generator
  • '?' column should have an X on the lines with proposed changes
  • '?? - need a new two letter prefix
  • All core modules must have two letter prefixes
  • All query extensions must have at least three letter prefixes
  • Actions should not have prefixes

Core Modules

Page Type Example Used in the given page(s) Which pages have it List all in the wiki
Page Link [[Page]] prop=links list=backlinks list=alllinks
Template transclusion {{Template}} prop=templatestransclusions list=embeddedintranscludedin list=alltransclusions
Categories [[category:Cat]] prop=categories list=categorymembers list=allcategories
Files [[file:image.png]] prop=imagesfiles list=imageusagefileusage list=allimagesallfiles
Language links [[ru:Page]] prop=langlinks list=langbacklinks
Interwiki links [[meta:Page]] prop=iwlinks list=iwbacklinks
URLs http://mediawiki.org prop=extlinks list=exturlusage

Query lists

?ModulepfxParameter and result changes
allcategoriesac*from, continue, to, prefix, dir, min, max, limit, prop
Xallimagesallfilesai*afsort, dir, from, to, continue, start, end, prop, prefix, minsize, maxsize, sha1, sha1base36, user, filterbots, mime, limit
alllinksal*continue, from, to, prefix, unique, prop, namespace, limit, dir
allpagesap*from, continue, to, prefix, namespace, filterredir, minsize, maxsize, prtype, prlevel, prfiltercascade, limit, dir, filterlanglinks, prexpiry
alltransclusionsat*continue, from, to, prefix, unique, prop, namespace, limit, dir
allusersaufrom, to, prefix, dir, group, excludegroup, rights, prop, limit, witheditsonly, activeusers
backlinksbl*title, pageid, continue, namespace, dir, filterredir, limit, redirect
blocksbkstart, end, dir, ids, users, ip, limit, prop, show
categorymemberscm*title, pageid, prop, namespace, type, continue, limit, sort, dir, start, end, startsortkey, endsortkey, startsortkeyprefix, endsortkeyprefix
deletedrevsdrstart, end, dir, from, to, prefix, continue, unique, user, excludeuser, namespace, limit, prop
embeddedinei*title, pageid, continue, namespace, dir, filterredir, limit
exturlusageeu*prop, offset, protocol, query, namespace, limit, expandurl
filearchivefafrom, continue, to, prefix, limit, dir, sha1, sha1base36, prop
Ximageusagefileusageiu*futitle, pageid, continue, namespace, dir, filterredir, limit, redirect
Xiwbacklinksiwbl*??prefix, title, continue, limit, prop, dir
Xlangbacklinkslbl*??lang, title, continue, limit, prop, dir
logeventsleprop, type, action, start, end, dir, user, title, prefix, tag, limit
protectedtitlespt*namespace, level, limit, dir, start, end, prop
querypageqp*page, offset, limit
randomrn*namespace, limit, redirect
recentchangesrc*start, end, dir, namespace, user, excludeuser, tag, prop, token, show, limit, type, toponly
searchsr*search, namespace, what, info, prop, redirects, offset, limit
tagstgcontinue, limit, prop
usercontribsuclimit, start, end, continue, user, userprefix, dir, namespace, prop, show, tag, toponly
usersusprop, users, token
Xwatchlist????wl*allrev, start, end, namespace, user, excludeuser, dir, limit, prop, show, owner, token
In result: useruserid when asking for userid.
Xwatchlistraw????wr*continue, namespace, limit, prop, show, owner, token, dir
list=watchlistraw and possibly list=watchlist should be renamed to clarify their meaning. watchlistraw is a list of monitored pages. watchlist is the list of changes done to the monitored pages. Looking for better naming.

Query Props

?ModulepfxParameter and result changes
categoriescl*prop, show, limit, continue, categories, dir
categoryinfocicontinue
duplicatefilesdf*limit, continue, dir, localonly
extlinksellimit, offset, protocol, query, expandurl
Ximageinfofileinfoiifiprop, limit, start, end, urlwidth, urlheight, metadataversion, urlparam, continue, localonly

iiprop: dimensions

Ximagesfilesim*fslimit, continue, images, dir
infoinprop, token, continue
iwlinksiwurl, limit, continue, prefix, title, dir
langlinkslllimit, continue, url, lang, title, dir
linkspl*namespace, limit, continue, titles, dir
pagepropsppcontinue, prop
revisionsrvprop, limit, startid, endid, start, end, dir, user, excludeuser, tag, expandtemplates, generatexml, parse, section, token, continue, diffto, difftotext, contentformat
Xstashimageinfosii??filekey, sessionkey, prop, urlwidth, urlheight, urlparam


siiprop: dimensions

Xtemplatestransclusionstl*namespace, limit, continue, templates, dir
Bug 36220 - The stashimageinfo module shouldn't be a prop querymodule

Query Meta

?ModulepfxParameter and result changes
allmessagesammessages, prop, enableparser, nocontent, includelocal, args, filter, customised, lang, from, to, title, prefix
siteinfosiprop, filteriw, showalldb, numberingroup, inlanguagecode
Break up prop into many separate meta modules. See below.
userinfouiprop
New modules
ModulepfxNotes
sitelanguagesslInstead of siteinfo&siprop=lang Get all languages as a {'xx':'language name',...} dictionary.

Actions

?ModulepfxParameter and result changes
Xblockuser, token, gettoken, expiry, reason, anononly, nocreate, autoblock, noemail, hidename, allowusertalk, reblock, watchuser
Results: userIDuserid.
comparefromtitle, fromid, fromrev, totitle, toid, torev
Xdeletetitle, pageid, token, reason, watch, unwatch, watchlist, oldimageoldfile
Xedittitle, pageid, section, sectiontitle, text, token, summary, minor, notminor, bot, basetimestamp, starttimestamp, recreate, createonly, nocreate, watch, unwatch, watchlist, md5, prependtext, appendtext, undo, undoafter, redirect, contentformat, contentmodel, assert, nassert, captchaword, captchaid
emailusertarget, subject, text, token, ccme
expandtemplatestitle, text, generatexml, includecomments
feedwatchlistfeedformat, hours, allrev, wlowner, wltoken, wlexcludeuser, linktodiffs
filerevertfilename, comment, archivename, token
helpmodules, querymodules
importtoken, summary, xml, interwikisource, interwikipage, fullhistory, templates, namespace, rootpage
loginlgname, password, domain, token
logout
Xmovefrom, fromid, to, token, reason, movetalk, movesubpages, noredirect, watch, unwatch, watchlist, ignorewarnings
opensearchsearch, limit, namespace, suggest, format
paraminfomodules, querymodules, mainmodule, pagesetmodule, formatmodules
parsetitle, text, summary, page, pageid, redirects, oldid, prop, pst, onlypst, uselang, section, disablepp, generatexml, contentformat, contentmodel, mobileformat, noimages, mainpage
patroltoken, rcid
Xprotecttitle, pageid, token, protections, expiry, reason, cascade, watch, watchlist
purgetitles, pageids, revids, forcelinkupdate
queryprop, list, meta, generator, redirects, converttitles, indexpageids, export, exportnowrap, iwurl
rollbacktitle, user, token, summary, markbot, watchlist
rsd
Xunblockid, user, token, gettoken, reason
undeletetitle, token, reason, timestamps, watchlist
Xuploadfilename, comment, text, token, watch, watchlist, ignorewarnings, file, url, filekey, sessionkey, stash, filesize, offset, chunk, async, asyncdownload, leavemessage, statuskey, checkstatus
userrightsuser, add, remove, token, reason
watchtitle, unwatch, uselang, token

Extensions

Query List Extensions

?ModulepfxParameter and result changes
abusefiltersabfstartid, endid, dir, show, limit, prop
abuselogaflstart, end, dir, user, title, filter, limit, prop
Xarticlefeedbackaf???pageid, userrating, anontoken
Xarticlefeedbackv5-view-activityaa???feedbackid, limit, continue, noheader
articlefeedbackv5-view-feedbackafvfpageid, watchlist, sort, sortdirection, filter, feedbackid, limit, continue
Xarticlefeedbackv5-view-ratingsaf???pageid
centralnoticelogscampaign, user, limit, offset, start, end
Xcheckusercu???request, target, reason, limit, timecond, xff
checkuserlogculuser, target, limit, from, to
Xgadgetcategoriesgc???prop, names
Xgadgetsga???prop, language, categories, ids, allowedonly, enabledonly
Xgeosearchgs*gescoord, page, radius, maxdim, limit, globe, namespace, prop, primary, withoutphotos
Xglobalblocksbg???start, end, dir, ids, addresses, ip, limit, prop
globalgroupsggpprop
moodbarcommentsmbclimit, dir, continue, type, user, myresponse, showunanswered, prop
Xoldreviewedpagesor*???start, end, dir, maxsize, filterwatched, namespace, category, filterredir, limit

Query Prop Extensions

?ModulepfxParameter and result changes
Xcoordinatesgeodatacogedlimit, continue, prop, primary
Xextractsex???chars, sentences, limit, intro, plaintext, sectionformat, continue
flagged
Xglobalusagegu???prop, limit, continue, filterlocal
Xpageimagespi???prop, thumbsize, limit, continue
transcodestatus
Xvideoinfovi???prop, limit, start, end, urlwidth, urlheight, urlparam, continue

Query Meta Extensions

?ModulepfxParameter and result changes
globaluserinfoguiuser, prop


Action Extensions

?ModulepfxParameter and result changes
abusefilterunblockautopromoteuser, token
articlefeedbackpageid, revid, anontoken, bucket, expertise, r1, r2, r3, r4
articlefeedbackv5pageid, revid, anontoken, bucket, link, experiment, email, cta, found, comment, tag, rating, trustworthy, objective, complete, wellwritten, expertise-general, expertise-studies, expertise-profession, expertise-hobby, expertise-other
articlefeedbackv5-flag-feedbackpageid, feedbackid, flagtype, direction, note, toggle, source
centralnoticeallocationsproject, country, language, anonymous, bucket, minimal
centralnoticequerycampaigncampaign
clicktrackingeventid, namespacenumber, token, redirectto, additional
deleteeducationids, type, comment, token
deleteglobalaccountuser, reason, token
e3acuxvalidateusername, password, email
emailcaptureemail, info
enlistsubaction, role, username, userid, courseid, reason, token
featuredfeedfeedformat, feed, language
feedbackdashboardmbaction, item, reason, token
feedbackdashboardresponsefeedback, response, anonymize, editmode, useragent, system, locale, token
feedcontributionsfeedformat, user, namespace, year, month, tagfilter, deletedonly, toponly, showsizediff
flagconfig
getmarkashelpfulitemtype, item, prop, page
markashelpfulmahaction, page, type, item, useragent, system, locale, token
mobileviewpage, redirect, sections, prop, sectionprop, variant, noimages, noheadings, notransform
moodbarpage, type, comment, anonymize, editmode, useragent, system, locale, bucket, token
moodbarsetuseremailmbaction, email, token
optionstoken, reset, change, optionname, optionvalue
pagetriageactionpageid, reviewed, token, note, skipnotif
pagetriagelistpage_id, showbots, showredirs, showreviewed, showunreviewed, showdeleted, limit, offset, pageoffset, dir, namespace, no_category, no_inbound_links, non_autoconfirmed_users, blocked_users, username
pagetriagestatsnamespace, showredirs, showreviewed, showunreviewed, showdeleted
pagetriagetaggingpageid, token, top, bottom, deletion, note, taglist
pagetriagetemplateview, template
refresheducationids, type, token
reviewrevid, token, comment, unapprove
reviewactivityprevid, oldid, reviewing, token
setglobalaccountstatususer, locked, hidden, reason, token
setnotificationtimestamptitles, pageids, revids, entirewatchlist, token, timestamp, torevid, newerthanrevid
Xsitematrixsm???type, state, langprop, siteprop, limit, continue
stabilizeprotectlevel, expiry, reason, watch, token, title
Xtitleblacklisttb???title, action, nooverride
tokenstype
transcoderesettitle, transcodekey, token
userdailycontribsuser, daysago, basetimestamp
visualeditorpage, paction, token, basetimestamp, starttimestamp, oldid, minor, watch, html, summary
wikilovetitle, text, message, token, subject, type, email
wikiloveimagelogimage, success
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.