미디어위키 API 도움말

이 페이지는 자동으로 생성된 미디어위키 API 도움말 문서입니다.

설명 문서 및 예시: https://www.mediawiki.org/wiki/API

action=mobileview

(main | mobileview)
  • 이 모듈은 read 권한을 요구합니다.
  • 출처: MobileFrontend
  • 라이선스: GPL-2.0+

모바일 보기에 필요한 데이터를 반환합니다.

변수:
page

진행할 문서의 제목.

이 변수는 필수 입력 사항입니다.
redirect

넘겨주기가 있는지에 따라 따라야합니다.

하나의 값: 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 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.
값 ("|"로 구분): id, text, sections, normalizedtitle, lastmodified, lastmodifiedby, revision, protection, editable, languagecount, hasvariants, displaytitle, pageprops, description, contentmodel, namespace
기본값: text|sections|normalizedtitle
sectionprop

What information about sections to get.

값 ("|"로 구분): toclevel, level, line, number, index, fromtitle, anchor
기본값: toclevel|line
pageprops

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

기본값: notoc|noeditsection|wikibase_item
variant

Convert content into this language variant.

noimages

그림 없이 HTML을 반환합니다.

유형: 부울 (자세한 정보)
noheadings

출력에 표제를 포함하지 않습니다.

유형: 부울 (자세한 정보)
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.
유형: 정수
기본값: 0
maxlen

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

The value must be no less than 0.
유형: 정수
기본값: 0
revision

Request a specific revision.

The value must be no less than 0.
유형: 정수
기본값: 0
예시:
Get information about section 0 of Doom metal
api.php?action=mobileview&page=Doom_metal&sections=0 [open in sandbox]
Get information about section 0 and sections containing references of Candlemass
api.php?action=mobileview&page=Candlemass&sections=0|references [open in sandbox]
Get information about sections 1 and later and sections containing references of Candlemass
api.php?action=mobileview&page=Candlemass&sections=1-|references [open in sandbox]