MediaWiki API 帮助

这是自动生成的MediaWiki API文档页面。

文档和例子:https://www.mediawiki.org/wiki/API:Main_page/zh

action=mobileview

main | mobileview
  • 此模块需要读取权限。
  • 来源:MobileFrontend
  • 许可协议:参见链接

Returns data needed for mobile views

参数:
page

Title of page to process

这个参数是必须的。
redirect

Whether redirects should be followed

以下值中的一个:yes、no
默认: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
MW timestamp for when the page was last modified, e.g. "20130730174438"
lastmodifiedby
information about the user who modified the page last
revision
return the current revision id of the page
protection
information about protection level
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
值(以|分隔):id、text、sections、normalizedtitle、lastmodified、lastmodifiedby、revision、protection、languagecount、hasvariants、displaytitle
默认:text|sections|normalizedtitle
sectionprop

What information about sections to get

值(以|分隔):toclevel、level、line、number、index、fromtitle、anchor
默认:toclevel|line
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

值必须不少于0。
类型:整数
默认:0
maxlen

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

值必须不少于0。
类型:整数
默认:0