MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/API

action=mobileview

(main | mobileview)
  • This module requires read rights.

Returns data needed for mobile views

Parameters:
page

Title of page to process

This parameter is required.
redirect

Whether redirects should be followed

One value: yes, no
Default: yes
sections

Pipe-separated list of section numbers for which to return text. `all' can be used to return for all. Ranges in format '1-4' mean get sections 1,2,3,4. Ranges without second number, e.g. '1-' means get all until the end. `references' can be used to specify that all sections containing references should be returned.

prop

Which information to get

text
HTML of selected section(s)
sections
information about all sections on page
normalizedtitle
normalized page title
lastmodified
ISO 8601 timestamp for when the page was last modified, e.g. "2014-04-13T22:42:14Z"
lastmodifiedby
information about the user who modified the page last
revision
return the current revision id of the page
protection
information about protection level
editable
whether current user can edit this page. This includes all factors for logged-in users but not blocked status for anons.
languagecount
number of languages that the page is available in
hasvariants
whether or not the page is available in other language variants
displaytitle
the rendered title of the page, with {{DISPLAYTITLE}} and such applied
pageprops
page properties
Values (separate with "|"): id, text, sections, normalizedtitle, lastmodified, lastmodifiedby, revision, protection, editable, languagecount, hasvariants, displaytitle, pageprops
Default: text|sections|normalizedtitle
sectionprop

What information about sections to get

Values (separate with "|"): toclevel, level, line, number, index, fromtitle, anchor
Default: toclevel|line
pageprops

What page properties to return, a pipe (|) separated list or * for all properties

Default: notoc|noeditsection|wikibase_item
variant

Convert content into this language variant

noimages

Return HTML without images

noheadings

Don't include headings in output

notransform

Don't transform HTML into mobile-specific version

onlyrequestedsections

Return only requested sections even with prop=sections

offset

Pretend all text result is one string, and return the substring starting at this point

The value must be no less than 0.
Default: 0
maxlen

Pretend all text result is one string, and limit result to this length

The value must be no less than 0.
Default: 0