MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/API
action=purge
- Denne modulen krever lesetilgang.
- Denne modulen krever skrivetilgang.
- Denne modulen aksepterer bare POST forespørsler.
- Kilde: MediaWiki
- Lisens: GPL-2.0-or-later
Purge the cache for the given titles.
- forcelinkupdate
Update the links tables.
- Type: boolsk verdi (detaljer)
- forcerecursivelinkupdate
Update the links table, and update the links tables for any page that uses this page as a template.
- Type: boolsk verdi (detaljer)
- continue
Når flere resultater er tilgjengelige, bruk denne for å fortsette.
- titles
A list of titles to work on.
- Separer verdier med | eller alternativ. Maksimalt antall verdier er 50 (500 for botter)
- pageids
A list of page IDs to work on.
- Type: liste over heltall
- Separer verdier med | eller alternativ. Maksimalt antall verdier er 50 (500 for botter)
- revids
A list of revision IDs to work on.
- Type: liste over heltall
- Separer verdier med | eller alternativ. Maksimalt antall verdier er 50 (500 for botter)
- generator
Get the list of pages to work on by executing the specified query module.
Note: Generator parameter names must be prefixed with a "g", see examples.
- allcategories
- Enumerate all categories.
- alldeletedrevisions
- List all deleted revisions by a user or in a namespace.
- allfileusages
- List all file usages, including non-existing.
- allimages
- Enumerate all images sequentially.
- alllinks
- Enumerate all links that point to a given namespace.
- allpages
- Enumerate all pages sequentially in a given namespace.
- allredirects
- Lister opp alle omdirigeringer til et navnerom.
- allrevisions
- List opp alle revisjoner.
- alltransclusions
- List all transclusions (pages embedded using {{x}}), including non-existing.
- backlinks
- Finn alle sider som lenker til den gitte siden.
- categories
- List all categories the pages belong to.
- categorymembers
- List all pages in a given category.
- deletedrevisions
- Get deleted revision information.
- duplicatefiles
- List all files that are duplicates of the given files based on hash values.
- embeddedin
- Find all pages that embed (transclude) the given title.
- exturlusage
- Enumerate pages that contain a given URL.
- fileusage
- Find all pages that use the given files.
- images
- Returns all files contained on the given pages.
- imageusage
- Find all pages that use the given image title.
- iwbacklinks
- Find all pages that link to the given interwiki link.
- langbacklinks
- Finn alle sider som lenker til den gitte språklenka.
- links
- Returnerer alle lenker fra de gitte sidene.
- linkshere
- Finn alle sider som lenker til de gitte sidene.
- pageswithprop
- Lister opp alle sider med en gitt sideegenskap.
- prefixsearch
- Utfør et prefikssøk for sidetitler.
- protectedtitles
- List opp alle titler som er beskyttet fra opprettelse.
- querypage
- Get a list provided by a QueryPage-based special page.
- random
- Hent et sett av tilfeldige sider.
- recentchanges
- Enumerate recent changes.
- redirects
- Returns all redirects to the given pages.
- revisions
- Get revision information.
- search
- Perform a full text search.
- templates
- Returns all pages transcluded on the given pages.
- transcludedin
- Find all pages that transclude the given pages.
- watchlist
- Get recent changes to pages in the current user's watchlist.
- watchlistraw
- Get all pages on the current user's watchlist.
- Én av følgende verdier: allcategories, alldeletedrevisions, allfileusages, allimages, alllinks, allpages, allredirects, allrevisions, alltransclusions, backlinks, categories, categorymembers, deletedrevisions, duplicatefiles, embeddedin, exturlusage, fileusage, images, imageusage, iwbacklinks, langbacklinks, links, linkshere, pageswithprop, prefixsearch, protectedtitles, querypage, random, recentchanges, redirects, revisions, search, templates, transcludedin, watchlist, watchlistraw
- redirects
Automatically resolve redirects in titles, pageids, and revids, and in pages returned by generator.
- Type: boolsk verdi (detaljer)
- converttitles
Convert titles to other variants if necessary. Only works if the wiki's content language supports variant conversion. Languages that support variant conversion include en, crh, gan, iu, kk, ku, shi, sr, tg, uz og zh.
- Type: boolsk verdi (detaljer)
- Purge the Main Page and the API page.
- api.php?action=purge&titles=Main_Page|API [åpne i sandkasse]
- Purge the first 10 pages in the main namespace.
- api.php?action=purge&generator=allpages&gapnamespace=0&gaplimit=10 [åpne i sandkasse]