模板:Api help/es:修订间差异
外观
wiki>FuzzyBot Updating to match new version of source page |
小 导入1个版本 |
||
(没有差异)
| |||
2025年12月16日 (二) 16:39的最新版本
| 文件:Oxygen480-categories-preferences-system.svg | La siguiente documentación es la salida de Special: |
模板文档
Esto transcluye Special:ApiHelp/module-name y explica lo que ocurre.
Uso
· <span style="" title="<translate nowrap> Edit this template</translate>"><translate> edit</translate>]
Esta es la documentación de TemplateData para esta plantilla utilizada por VisualEditor y otras herramientas.
Api help
This transcludes the API help page from “Special:ApiHelp” with a message box.
| 参数 | 描述 | 类型 | 状态 | |
|---|---|---|---|---|
| API method name | 1 | The name of the API method. You can reference query submodules by using “module”+“submodule” (e.g.: “query+extracts”).
| 字符串 | 必需 |
| Frame | frame | If set, add a light frame around the generated documentation.
| 布尔 | 可选 |
Ejemplo
{{Api help|query+extracts}} produces
| 文件:Oxygen480-categories-preferences-system.svg | <translate> The following documentation is the output of <tvar name=special>Special: |
prop=extracts (ex)
- 此模块需要读取权限。
- 来源:TextExtracts
- 许可协议:GPL-2.0-or-later
返回指定页面的纯文本或有限HTML格式摘录。
具体参数:
其他通用参数可用。
- exchars
返回字符数。实际返回的文本可能比这稍长。
- 类型:整数
- 值必须介于1和1,200之间。
- exsentences
返回句子数。
- 类型:整数
- 值必须介于1和10之间。
- exlimit
返回摘录数。(当exintro设为true时才能返回多段摘录。)
- 类型:整数或max
- 值必须介于1和20之间。
- 默认:20
- exintro
只返回首个章节前的内容。
- 类型:布尔型 (详情)
- explaintext
以纯文本而非有限HTML返回摘录。
- 类型:布尔型 (详情)
- exsectionformat
纯文本模式下格式化章节方式:
- plain
- 无格式。
- wiki
- wikitext样式的格式(== 像这样 ==)。
- raw
- 此模块的内部表示方法(章节标题前缀<ASCII 1><ASCII 2><章节级别><ASCII 2><ASCII 1>)
- 以下值中的一个:plain、raw、wiki
- 默认:wiki
- excontinue
当更多结果可用时,使用这个继续。可在 mediawiki.org 获取更多有关如何继续查询的详细信息。
- 类型:整数
No puedes transclude la ayuda de varios módulos de la API a la vez