MediaWiki API ヘルプ

このページは自動生成された MediaWiki API の説明文書ページです。

説明文書と例: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

action=mobileview

(main | mobileview)
  • このモジュールは廃止予定です。
  • このモジュールは読み取りの権限を必要とします。
  • ソース: MobileFrontend
  • ライセンス: GPL-2.0-or-later

Returns data needed for mobile views.

パラメーター:
page

処理対象のページ名。

このパラメーターは必須です。
redirect

Whether redirects should be followed.

値 (次の値のいずれか1つ): no、yes
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 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
Default: text|sections|normalizedtitle
sectionprop

What information about sections to get.

値 (|もしくは別の文字列で区切る): anchor、fromtitle、index、level、line、number、toclevel
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
revision

Request a specific revision.

型: 整数
The value must be no less than 0.
Default: 0
thumbheight

最大サムネイル高さ。

型: 整数
The value must be no less than 0.
thumbwidth

最大サムネイル幅。

型: 整数
The value must be no less than 0.
thumbsize

Maximum thumbnail dimensions.

型: 整数
The value must be no less than 0.