미디어위키 API 도움말
이 페이지는 자동으로 생성된 미디어위키 API 도움말 문서입니다.
설명 문서 및 예시: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=expandtemplates
(main | expandtemplates)
- 이 모듈은 read 권한을 요구합니다.
 - 출처: MediaWiki
 - 라이선스: GPL-2.0-or-later
 
위키텍스트 안에 모든 틀을 확장합니다.
변수:
- title
 문서 제목
- text
 변환할 위키텍스트.
- 이 변수는 필수입니다.
 - revid
 Revision ID, for
{{REVISIONID}}and similar variables.- Type: integer
 - 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 파서 트리.
 
- 값 (|로 구분): categories, encodedjsconfigvars, jsconfigvars, modules, parsetree, properties, ttl, volatile, wikitext 또는 다른 문자열: categories, encodedjsconfigvars, jsconfigvars, modules, parsetree, properties, ttl, volatile, wikitext
 - includecomments
 출력에 HTML 주석을 포함할 것인지의 여부.
- Type: boolean (details)
 - showstrategykeys
 Whether to include internal merge strategy information in jsconfigvars.
- Type: boolean (details)
 - generatexml
 - 구식입니다.
 XML 구문 분석 트리를 생성합니다. (prop=parsetree로 대체함)
- Type: boolean (details)
 
예시:
- 위키텍스트 {{Project:Sandbox}}를 확장합니다.
 - api.php?action=expandtemplates&text={{Project:Sandbox}} [연습장에서 열기]