미디어위키 API 도움말

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

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

action=expandtemplates

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

위키텍스트 안에 모든 틀을 확장합니다.

변수:
title

문서 제목

기본값: API
text

변환할 위키텍스트.

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

Revision ID, for {{REVISIONID}} and similar variables.

유형: 정수
prop

Which pieces of information to get.

Note that if no values are selected, the result will contain the wikitext, but the output will be in a deprecated format.

wikitext
확장된 위키텍스트.
categories
Any categories present in the input that are not represented in the wikitext output.
properties
Page properties defined by expanded magic words in the wikitext.
volatile
Whether the output is volatile and should not be reused elsewhere within the page.
ttl
The maximum time after which caches of the result should be invalidated.
modules
Any ResourceLoader modules that parser functions have requested be added to the output. Either jsconfigvars or encodedjsconfigvars must be requested jointly with modules.
jsconfigvars
Gives the JavaScript configuration variables specific to the page.
encodedjsconfigvars
Gives the JavaScript configuration variables specific to the page as a JSON string.
parsetree
입력값의 XML 파서 트리.
값 (|로 구분): wikitext, categories, properties, volatile, ttl, modules, jsconfigvars, encodedjsconfigvars, parsetree
includecomments

출력에 HTML 주석을 포함할 것인지의 여부.

유형: 부울 (자세한 정보)
generatexml
사용되지 않습니다.

XML 구문 분석 트리를 생성합니다. (prop=parsetree로 대체함)

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

Template sandbox prefix, as with Special:TemplateSandbox.

Separate values with | or alternative. 값들의 최대 수는 50입니다. (봇의 경우 500)
templatesandboxtitle

Parse the page using templatesandboxtext in place of the contents of the page named here.

templatesandboxtext

Parse the page using this page content in place of the page named by templatesandboxtitle.

templatesandboxcontentmodel

templatesandboxtext의 콘텐츠 모델.

다음 값 중 하나: GadgetDefinition, wikitext, javascript, json, css, text, Scribunto
templatesandboxcontentformat

templatesandboxtext의 콘텐츠 포맷.

다음 값 중 하나: application/json, text/x-wiki, text/javascript, text/css, text/plain
예시:
위키텍스트 {{Project:Sandbox}}를 확장합니다.
api.php?action=expandtemplates&text={{Project:Sandbox}} [연습장에서 열기]