Template:Api help/nl
De volgende documentatie is de uitvoer van Special: |
Dit sluit Special:ApiHelp/module-naam in en legt uit wat er gebeurt.
Gebruik
Dit is de TemplateData documentatie van dit sjabloon dat gebruikt wordt door de VisualEditor en andere hulpmiddelen.
Api help
This transcludes the API help page from “Special:ApiHelp” with a message box.
Parameter | Description | Type | Status | |
---|---|---|---|---|
API method name | 1 | The name of the API method. You can reference query submodules by using “module”+“submodule” (e.g.: “query+extracts”).
| String | required |
Frame | frame | If set, add a light frame around the generated documentation.
| Boolean | optional |
Voorbeeld
{{Api help|query+extracts}}
produces
De volgende documentatie is de uitvoer van Special: |
prop=extracts (ex)
- This module requires read rights.
- Source: TextExtracts
- License: GPL-2.0-or-later
Returns plain-text or limited HTML extracts of the given pages.
- 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
- Get a 175-character extract
- api.php?action=query&prop=extracts&exchars=175&titles=Therion [open in sandbox]