MediaWiki-API-Hilfe
Dies ist eine automatisch generierte MediaWiki-API-Dokumentationsseite.
Dokumentation und Beispiele: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
list=listwikis (sw)
- Dieses Modul erfordert Leserechte.
- Quelle: ShoutWiki API
- Lizenz: CC0-1.0
List all available wikis on ShoutWiki
Parameter:
- swwid
Unique, wiki-specific ID number; use this when you want to get info about a specific wiki and you know its ID number
- Typ: Ganzzahl
- swdeleted
Also list deleted wikis (optional)
- Typ: Ganzzahl
- Der Wert muss zwischen 0 und 1 liegen.
- swfrom
Get all wikis with ID that is equal to or greater than this value
- Typ: Ganzzahl
- Der Wert darf nicht kleiner sein als 1.
- swto
Get all wikis with ID that is equal to or lower than this value
- Typ: Ganzzahl
- Der Wert darf nicht kleiner sein als 1.
- swcountonly
Return only the amount of wikis
- Typ: Ganzzahl
- Der Wert darf nicht kleiner sein als 1.
- swlang
Wiki language code (i.e. en for English, fi for Finnish, etc.)
- swlimit
Get information about this many wikis at once
- Typ: Ganzzahl oder max
- Der Wert muss zwischen 1 und 500 liegen.
- Standard: 100
- swstart
The timestamp to start enumerating from
- Typ: Zeitstempel (erlaubte Formate)
- swend
The timestamp to end enumerating
- Typ: Zeitstempel (erlaubte Formate)
- swdir
In which direction to enumerate:
- newer
- List oldest first. Note: swstart has to be before swend.
- older
- List newest first (default). Note: swstart has to be later than swend.
- Einer der folgenden Werte: newer, older
- Standard: older
Beispiele:
- Get all active wikis
- api.php?action=query&list=listwikis [in Spielwiese öffnen]
- Also include deleted wikis in the listing
- api.php?action=query&list=listwikis&swdeleted=1 [in Spielwiese öffnen]
- Get information about the wiki whose ID is #177
- api.php?action=query&list=listwikis&swwid=177 [in Spielwiese öffnen]
- Get all (active) wikis with IDs ranging from 100 to 150
- api.php?action=query&list=listwikis&swfrom=100&swto=150 [in Spielwiese öffnen]
- Show all Finnish (fi) wikis whose IDs range between 10 to 50
- api.php?action=query&list=listwikis&swfrom=10&swto=50&swlang=fi [in Spielwiese öffnen]
- Show the total amount of active wikis
- api.php?action=query&list=listwikis&swcountonly=1 [in Spielwiese öffnen]
- Show the total amount of all wikis ever, including deleted ones
- api.php?action=query&list=listwikis&swactive=1&swcountonly=1 [in Spielwiese öffnen]