Ajuda da API MediaWiki
Esta é uma página de documentação da API MediaWiki gerada automaticamente.
Documentação e exemplos: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
list=listwikis (sw)
- Este módulo requer direitos de leitura.
- Fonte: ShoutWiki API
- Licença: CC0-1.0
List all available wikis on ShoutWiki
Parâmetros:
- swwid
Unique, wiki-specific ID number; use this when you want to get info about a specific wiki and you know its ID number
- Tipo: inteiro
- swdeleted
Also list deleted wikis (optional)
- Tipo: inteiro
- O valor deve estar entre 0 e 1.
- swfrom
Get all wikis with ID that is equal to or greater than this value
- Tipo: inteiro
- O valor não pode ser inferior a 1.
- swto
Get all wikis with ID that is equal to or lower than this value
- Tipo: inteiro
- O valor não pode ser inferior a 1.
- swcountonly
Return only the amount of wikis
- Tipo: inteiro
- O valor não pode ser inferior a 1.
- swlang
Wiki language code (i.e. en for English, fi for Finnish, etc.)
- swlimit
Get information about this many wikis at once
- Tipo: inteiro ou max
- O valor deve estar entre 1 e 500.
- Padrão: 100
- swstart
The timestamp to start enumerating from
- Tipo: data e hora (formatos permitidos)
- swend
The timestamp to end enumerating
- Tipo: data e hora (formatos permitidos)
- swdir
Em qual direção enumerar:
- newer
- Lista primeiro mais antigo. Nota: swstart deve ser anterior a swend.
- older
- Lista mais recente primeiro (padrão). Nota: swstart deve ser posterior a swend.
- Um dos seguintes valores: newer, older
- Padrão: older
Exemplos:
- Get all active wikis
- api.php?action=query&list=listwikis [abrir na página de testes]
- Also include deleted wikis in the listing
- api.php?action=query&list=listwikis&swdeleted=1 [abrir na página de testes]
- Get information about the wiki whose ID is #177
- api.php?action=query&list=listwikis&swwid=177 [abrir na página de testes]
- Get all (active) wikis with IDs ranging from 100 to 150
- api.php?action=query&list=listwikis&swfrom=100&swto=150 [abrir na página de testes]
- Show all Finnish (fi) wikis whose IDs range between 10 to 50
- api.php?action=query&list=listwikis&swfrom=10&swto=50&swlang=fi [abrir na página de testes]
- Show the total amount of active wikis
- api.php?action=query&list=listwikis&swcountonly=1 [abrir na página de testes]
- Show the total amount of all wikis ever, including deleted ones
- api.php?action=query&list=listwikis&swactive=1&swcountonly=1 [abrir na página de testes]