Jump to content
MediaWiki

Template:Api help/zh

本頁使用了標題或全文手工轉換
From mediawiki.org
This page is a translated version of the page Template:Api help and the translation is 100% complete.
下列的文档是Special:ApiHelp的输出,是由在本网站(MediaWiki.org)上面运行的MediaWiki的预发行版本所自动生成的。
模板文档

此模板嵌入Special:ApiHelp/模块名称,并解释会出现什么。

用法

[查看 · 讨论 · 编辑 ]

这是该模板的模板数据,用于可视化编辑器及其它工具。

Api help

This transcludes the API help page from "Special:ApiHelp" with a message box.

Template parameters[Edit template data ]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
API method name1

The name of the API method. You can reference query submodules by using "module"+"submodule" (e.g.: "query+extracts").

Auto value
{{subst:lc:{{subst:PAGENAME}}}}
Stringrequired
Frameframe

If set, add a light frame around the generated documentation.

Auto value
yes
Booleanoptional

示例

{{Api help|query+extracts}} produces


下列的文档是Special:ApiHelp/query+extracts的输出,是由在本网站(MediaWiki.org)上面运行的MediaWiki的预发行版本所自动生成的。

prop=extracts (ex)

(main | query | extracts)

Returns plain-text or limited HTML extracts of the given pages.

Specific parameters:
Other general parameters are available.
exchars

How many characters to return. Actual text returned might be slightly longer.

Type: integer
The value must be between 1 and 1,200.
exsentences

How many sentences to return.

Type: integer
The value must be between 1 and 10.
exlimit

How many extracts to return. (Multiple extracts can only be returned if exintro is set to true.)

Type: integer or max
The value must be between 1 and 20.
Default: 20
exintro

Return only content before the first section.

Type: boolean (details)
explaintext

Return extracts as plain text instead of limited HTML.

Type: boolean (details)
exsectionformat

How to format sections in plaintext mode:

plain
No formatting.
wiki
Wikitext-style formatting (== like this ==).
raw
This module's internal representation (section titles prefixed with <ASCII 1><ASCII 2><section level><ASCII 2><ASCII 1>).
One of the following values: plain, raw, wiki
Default: wiki
excontinue

When more results are available, use this to continue. More detailed information on how to continue queries can be found on mediawiki.org.

Type: integer

你無法一次嵌入多个API模块的帮助
编者可以在此模板的沙盒 (创建 | 镜像)和测试样例 (创建)页面测试实验。
此模板的子页面

AltStyle によって変換されたページ (->オリジナル) /