Справка MediaWiki API

Это автоматически сгенерированная страница документации MediaWiki API.

Документация и примеры: https://www.mediawiki.org/wiki/API

action=mobileview

(main | mobileview)
  • Этот модуль устарел.
  • Этот модуль требует прав на чтение.
  • Источник: MobileFrontend
  • Лицензия: GPL-2.0-or-later

Возвращает данные, необходимые для мобильных представлений.

Параметры:
page

Заголовок страницы для обработки.

Это обязательный параметр.
redirect

Whether redirects should be followed.

Одно из следующих значений: no, yes
По умолчанию: 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 sections.
sections
Information about all sections on the 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 the 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.
Значения (разделённые с помощью | или альтернативного разделителя): contentmodel, description, displaytitle, editable, hasvariants, id, image, languagecount, lastmodified, lastmodifiedby, namespace, normalizedtitle, pageprops, protection, revision, sections, text, thumb
По умолчанию: text|sections|normalizedtitle
sectionprop

Какую информацию о разделах получать.

Значения (разделённые с помощью | или альтернативного разделителя): anchor, fromtitle, index, level, line, number, toclevel
По умолчанию: toclevel|line
pageprops

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

По умолчанию: notoc|noeditsection|wikibase_item
variant

Преобразуйте контент в этот языковой вариант.

По умолчанию: (пусто)
noimages

Вернуть HTML без изображений.

Type: boolean (details)
noheadings

Don't include headings in output.

Type: boolean (details)
notransform

Не превращать HTML в версию для мобильных устройств.

Type: boolean (details)
onlyrequestedsections

Return only requested sections even with prop=sections.

Type: boolean (details)
offset

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

Type: integer
The value must be no less than 0.
По умолчанию: 0
maxlen

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

Type: integer
The value must be no less than 0.
По умолчанию: 0
revision

Запросить определенную версию.

Type: integer
The value must be no less than 0.
По умолчанию: 0
thumbheight

Максимальная высота миниатюры

Type: integer
The value must be no less than 0.
thumbwidth

Максимальная ширина миниатюры

Type: integer
The value must be no less than 0.
thumbsize

Максимальные размеры эскизов.

Type: integer
The value must be no less than 0.
Примеры:
Получить информацию о раздел 0 статьи Doom metal
api.php?action=mobileview&page=Doom_metal&sections=0 [открыть в песочнице]
Get information about section 0 and sections containing references of Candlemass
api.php?action=mobileview&page=Candlemass&sections=0|references [открыть в песочнице]
Get information about sections 1 and later and sections containing references of Candlemass
api.php?action=mobileview&page=Candlemass&sections=1-|references [открыть в песочнице]