미디어위키 API 도움말

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

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

action=mobileview

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

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

변수:
page

진행할 문서의 제목.

이 변수는 필수입니다.
redirect

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

다음 값 중 하나: no, yes 또는 다른 문자열: 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 또는 다른 문자열: contentmodel, description, displaytitle, editable, hasvariants, id, image, languagecount, lastmodified, lastmodifiedby, namespace, normalizedtitle, pageprops, protection, revision, sections, text, thumb
기본값: text|sections|normalizedtitle
sectionprop

What information about sections to get.

값 (|로 구분): anchor, fromtitle, index, level, line, number, toclevel 또는 다른 문자열: 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

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.

유형: 정수
값은 0 이상이어야 합니다.
기본값: 0
maxlen

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

유형: 정수
값은 0 이상이어야 합니다.
기본값: 0
revision

특정 판을 요청합니다.

유형: 정수
값은 0 이상이어야 합니다.
기본값: 0
thumbheight

최대 섬네일 높이.

유형: 정수
값은 0 이상이어야 합니다.
thumbwidth

최대 섬네일 너비.

유형: 정수
값은 0 이상이어야 합니다.
thumbsize

최대 섬네일 치수.

유형: 정수
값은 0 이상이어야 합니다.
예시:
Doom metal의 문단 0에 관한 정보를 가져옵니다
api.php?action=mobileview&page=Doom_metal&sections=0 [연습장에서 열기]
Candlemass의 참조를 포함하는 문단 0 및 문단들에 관한 정보를 가져옵니다
api.php?action=mobileview&page=Candlemass&sections=0|references [연습장에서 열기]
Candlemass의 참조를 포함하는 문단 1 및 그 이후 문단들에 관한 정보를 가져옵니다
api.php?action=mobileview&page=Candlemass&sections=1-|references [연습장에서 열기]