Ajuda API da MediaWiki

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/API

action=mobileview

(main | mobileview)
  • This module requires read rights.
  • Source: MobileFrontend
  • Licença: GPL-2.0+

Retorna os dados necessário para a visualização em telemóveis.

Parâmetros:
page

Título da página para processar.

Este parâmetro é obrigatório.
redirect

Se os redireccionamentos devem ser seguidos.

Um dos seguintes valores: yes, no
Padrão: yes
sections

Pipe-separated list of section numbers for which to return text. "all" can be used to return for all. Ranges in format "1-4" mean get sections 1,2,3,4. Ranges without second number, e.g. "1-" means get all until the end. "references" can be used to specify that all sections containing references should be returned.

prop

Which information to get:

text
HTML of selected sections.
sections
Information about all sections on the page.
normalizedtitle
Normalized page title.
lastmodified
ISO 8601 timestamp for when the page was last modified, e.g. "2014-04-13T22:42:14Z".
lastmodifiedby
Information about the user who modified the page last.
revision
Return the current revision ID of the page.
protection
Information about protection level.
editable
Whether the current user can edit this page. This includes all factors for logged-in users but not blocked status for anons.
languagecount
Number of languages that the page is available in.
hasvariants
Whether or not the page is available in other language variants.
displaytitle
The rendered title of the page, with {{DISPLAYTITLE}} and such applied.
pageprops
Page properties.
Valores (separar com |): id, text, sections, normalizedtitle, lastmodified, lastmodifiedby, revision, protection, editable, languagecount, hasvariants, displaytitle, pageprops, description, contentmodel
Padrão: text|sections|normalizedtitle
sectionprop

Quais informações das secções devem de ser obtidas.

Valores (separar com |): toclevel, level, line, number, index, fromtitle, anchor
Padrão: toclevel|line
pageprops

What page properties to return, a pipe ("|") separated list or "*" for all properties.

Padrão: notoc|noeditsection|wikibase_item
variant

Converter o conteúdo para esta variante do idioma.

noimages

Retornar o HTML sem imagens.

Type: boolean (details)
noheadings

Não incluir cabeçalhos na saída.

Type: boolean (details)
notransform

Não transformar o HTML em uma versão específica para telemóveis.

Type: boolean (details)
onlyrequestedsections

Retornar somente as secções solicitadas, mesmo com prop=sections.

Type: boolean (details)
offset

Pretend all text result is one string, and return the substring starting at this point.

The value must be no less than 0.
Type: integer
Padrão: 0
maxlen

Pretend all text result is one string, and limit result to this length.

The value must be no less than 0.
Type: integer
Padrão: 0
Exemplos:
Get information about section 0 of Doom metal
api.php?action=mobileview&page=Doom_metal&sections=0
Get information about section 0 and sections containing references of Candlemass
api.php?action=mobileview&page=Candlemass&sections=0|references
Get information about sections 1 and later and sections containing references of Candlemass
api.php?action=mobileview&page=Candlemass&sections=1-|references