Jump to content

Template:ApiParam/de

From mediawiki.org
This page is a translated version of the page Template:ApiParam and the translation is 50% complete.
Vorlagendokumentation
Consider replacing invocations of this template with Special:ApiHelp transclusion (T89318), since filling in this template redundantly repeats API parameter documentation in source code.

Verwendung

This template can be used to document API parameters.

Its intent is to harmonize the appearance of template parameters across all of the API pages.

{{ApiParam
|name=
|description=
|required=
|maxallowed=
|maxallowedbot=
|type=
|values=
|default=
|version=
|deprecated=
|removed=
}}
ApiParam-Parameter
Parametername Beschreibung Required?
name (or first unnamed) The parameter name. Notwendig
description (or second unnamed) Eine Beschreibung des Parameters. Optional
required Specify a value if the parameter is required. The name of the required parameter will be bolded. Optional
maxallowed For pipe-separated values or numeric quantities, the maximum allowed. Optional
maxallowedbot As above, for bots. If 50 or 500 is used for maxallowed, this will default to 500 or 5000, respectively. Optional
type The data type of the parameter. Optional
values A list of possible values for the parameter. Optional
default Der Standardwert für den Parameter. Optional
version Die Version, wo der Parameter eingeführt wurde. Benutze nur die einfache MediaWiki-Versionsnummer. Optional
deprecated Die Version, wo der Parameter veraltet wurde. Benutze nur die einfache MediaWiki-Versionsnummer. Optional
removed Die Version, wo der Parameter entfernt wurde. Benutze nur die einfache MediaWiki-Versionsnummer. Optional

Beispiele

*{{ApiParam|rcid|One or more recent changes IDs from which to add or remove the tag.|maxallowed=50}}
  • rcid: One or more recent changes IDs from which to add or remove the tag. Nicht mehr als 50 (500 für bots) erlaubt.
*{{ApiParam|siprop|Which properties to get|default=general}}
**{{ApiParam|general|General site information}}
***{{ApiParam|articlepath|{{ll|Manual:$wgArticlePath|$wgArticlePath}}|version=1.15}}
  • siprop: Which properties to get (Standard: general)

Siehe auch