미디어위키 API 도움말
이 페이지는 자동으로 생성된 미디어위키 API 도움말 문서입니다.
설명 문서 및 예시: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=parse
- 이 모듈은 read 권한을 요구합니다.
- 출처: MediaWiki
- 라이선스: GPL-2.0-or-later
내용을 변환하고 출력을 반환합니다.
See the various prop-modules of action=query to get information from the current version of a page.
There are several ways to specify the text to parse:
- Specify a page or revision, using page, pageid, or oldid.
- Specify content explicitly, using text, title, revid, and contentmodel.
- Specify only a summary to parse. prop should be given an empty value.
- title
- Title of page the text belongs to. If omitted, contentmodel must be specified, and API will be used as the title. 
- text
- Text to parse. Use title or contentmodel to control the content model. 
- revid
- Revision ID, for - {{REVISIONID}}and similar variables.
- Type: integer
- summary
- 변환할 요약입니다. 
- page
- Parse the content of this page. Cannot be used together with text and title. 
- pageid
- Parse the content of this page. Overrides page. 
- Type: integer
- redirects
- If page or pageid is set to a redirect, resolve it. 
- Type: boolean (details)
- oldid
- Parse the content of this revision. Overrides page and pageid. 
- Type: integer
- prop
- Which pieces of information to get: - text
- 위키텍스트로 변환된 텍스트를 제공합니다.
- langlinks
- 언어 링크를 위키텍스트로 변환하여 제공합니다.
- categories
- 분류를 변환된 위키텍스트로 제공합니다.
- categorieshtml
- 분류의 HTML 버전을 제공합니다.
- links
- 내부 링크를 위키텍스트로 변환하여 제공합니다.
- templates
- 틀을 변환된 위키텍스트로 제공합니다.
- images
- 그림을 위키텍스트로 변환하여 제공합니다.
- externallinks
- 외부 링크를 위키텍스트로 변환하여 제공합니다.
- sections
- 문단을 변환된 위키텍스트로 제공합니다.
- revid
- 변환할 페이지의 판 ID를 추가합니다.
- displaytitle
- 제목을 변환된 위키텍스트로 추가합니다.
- subtitle
- Adds the page subtitle for the parsed page.
- headhtml
- 문서의 파싱된 doctype, 여는 <html>,<head>,<body>를 제공합니다.
- modules
- 문서에 사용되는 ResourceLoader 모듈을 제공합니다. 불러오려면, mw.loader.using()을 사용하세요. jsconfigvars 또는 encodedjsconfigvars는 modules와 함께 요청해야 합니다.
- jsconfigvars
- 문서에 특화된 자바스크립트 구성 변수를 제공합니다. 적용하려면 mw.config.set()을 사용하세요.
- encodedjsconfigvars
- Gives the JavaScript configuration variables specific to the page as a JSON string.
- indicators
- Gives the HTML of page status indicators used on the page.
- iwlinks
- 인터위키 링크를 위키텍스트로 변환하여 제공합니다.
- wikitext
- 변환한 원문 위키텍스트를 제공합니다.
- properties
- 정의된 다양한 속성을 변환된 위키텍스트로 제공합니다.
- limitreportdata
- Gives the limit report in a structured way. Gives no data, when disablelimitreport is set.
- limitreporthtml
- Gives the HTML version of the limit report. Gives no data, when disablelimitreport is set.
- parsetree
- The XML parse tree of revision content (requires content model wikitext)
- parsewarnings
- Gives the warnings that occurred while parsing content (as wikitext).
- parsewarningshtml
- Gives the warnings that occurred while parsing content (as HTML).
- headitems
- 구식입니다. 문서의 <head>안에 넣을 항목을 제공합니다.
 
- 값 (|로 구분): categories, categorieshtml, displaytitle, encodedjsconfigvars, externallinks, headhtml, images, indicators, iwlinks, jsconfigvars, langlinks, limitreportdata, limitreporthtml, links, modules, parsetree, parsewarnings, parsewarningshtml, properties, revid, sections, subtitle, templates, text, wikitext, headitems 또는 다른 문자열: categories, categorieshtml, displaytitle, encodedjsconfigvars, externallinks, headhtml, images, indicators, iwlinks, jsconfigvars, langlinks, limitreportdata, limitreporthtml, links, modules, parsetree, parsewarnings, parsewarningshtml, properties, revid, sections, subtitle, templates, text, wikitext, headitems
- 기본값: text|langlinks|categories|links|templates|images|externallinks|sections|revid|displaytitle|iwlinks|properties|parsewarnings
- wrapoutputclass
- CSS class to use to wrap the parser output. 
- 기본값: mw-parser-output
- pst
- 파싱에 앞서 입력에 대한 저장 직전의 변환을 수행합니다. 텍스트로 사용할 때에만 유효합니다. 
- Type: boolean (details)
- onlypst
- Do a pre-save transform (PST) on the input, but don't parse it. Returns the same wikitext, after a PST has been applied. Only valid when used with text. 
- Type: boolean (details)
- effectivelanglinks
- 구식입니다.
- Includes language links supplied by extensions (for use with prop=langlinks). 
- Type: boolean (details)
- section
- Only parse the content of the section with this identifier. - When new, parse text and sectiontitle as if adding a new section to the page. - new is allowed only when specifying text. 
- sectiontitle
- New section title when section is new. - Unlike page editing, this does not fall back to summary when omitted or empty. 
- disablepp
- 구식입니다.
- disablelimitreport를 대신 사용합니다. 
- Type: boolean (details)
- disablelimitreport
- 파서 출력에서 제한 보고서("NewPP limit report")를 제외합니다. 
- Type: boolean (details)
- disableeditsection
- 파서 출력에서 문단 편집 링크를 제외합니다. 
- Type: boolean (details)
- disablestylededuplication
- Do not deduplicate inline stylesheets in the parser output. 
- Type: boolean (details)
- showstrategykeys
- Whether to include internal merge strategy information in jsconfigvars. 
- Type: boolean (details)
- generatexml
- 구식입니다.
- Generate XML parse tree (requires content model - wikitext; replaced by prop=parsetree).
- Type: boolean (details)
- preview
- 미리 보기 모드에서 파싱합니다. 
- Type: boolean (details)
- sectionpreview
- 문단 미리 보기 모드에서 파싱합니다. (미리 보기 모드도 활성화함) 
- Type: boolean (details)
- disabletoc
- 출력에서 목차를 제외합니다. 
- Type: boolean (details)
- useskin
- 선택한 스킨을 파서 출력에 적용합니다. 다음의 속성에 영향을 줄 수 있습니다: text, langlinks, headitems, modules, jsconfigvars, indicators. 
- 다음 값 중 하나: apioutput, fallback, timeless, vector, vector-2022 또는 다른 문자열: apioutput, fallback, timeless, vector, vector-2022
- contentformat
- 입력 텍스트에 사용할 내용 직렬화 포맷입니다. text와 함께 사용할 때에만 유효합니다. 
- 다음 값 중 하나: application/json, application/octet-stream, application/unknown, application/x-binary, text/css, text/javascript, text/plain, text/unknown, text/x-wiki, unknown/unknown 또는 다른 문자열: application/json, application/octet-stream, application/unknown, application/x-binary, text/css, text/javascript, text/plain, text/unknown, text/x-wiki, unknown/unknown
- contentmodel
- Content model of the input text. If omitted, title must be specified, and default will be the model of the specified title. Only valid when used with text. 
- 다음 값 중 하나: GadgetDefinition, Scribunto, css, javascript, json, text, unknown, wikitext 또는 다른 문자열: GadgetDefinition, Scribunto, css, javascript, json, text, unknown, wikitext
- 페이지를 파싱합니다.
- api.php?action=parse&page=Project:Sandbox [연습장에서 열기]
- 위키텍스트의 구문을 분석합니다.
- api.php?action=parse&text={{Project:Sandbox}}&contentmodel=wikitext [연습장에서 열기]
- Parse wikitext, specifying the page title.
- api.php?action=parse&text={{PAGENAME}}&title=Test [연습장에서 열기]
- 요약을 변환합니다.
- api.php?action=parse&summary=Some+[[link]]&prop= [연습장에서 열기]