MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

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

action=mobileview

(main | mobileview)
  • Questo modulo richiede i diritti di lettura.
  • Fonte: MobileFrontend
  • Licenza: GPL-2.0+

Returns data needed for mobile views.

Parametri:
page

Titolo della pagina da elaborare.

Questo parametro è obbligatorio.
redirect

Whether redirects should be followed.

Uno dei seguenti valori: yes, no
Predefinito: 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.
Valori (separati da |): id, text, sections, normalizedtitle, lastmodified, lastmodifiedby, revision, protection, editable, languagecount, hasvariants, displaytitle, pageprops, description, contentmodel, namespace
Predefinito: text|sections|normalizedtitle
sectionprop

What information about sections to get.

Valori (separati da |): toclevel, level, line, number, index, fromtitle, anchor
Predefinito: toclevel|line
pageprops

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

Predefinito: notoc|noeditsection|wikibase_item
variant

Convert content into this language variant.

noimages

Return HTML without images.

Tipo: booleano (dettagli)
noheadings

Don't include headings in output.

Tipo: booleano (dettagli)
notransform

Don't transform HTML into mobile-specific version.

Tipo: booleano (dettagli)
onlyrequestedsections

Return only requested sections even with prop=sections.

Tipo: booleano (dettagli)
offset

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

Il valore non deve essere inferiore a 0.
Tipo: intero
Predefinito: 0
maxlen

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

Il valore non deve essere inferiore a 0.
Tipo: intero
Predefinito: 0
revision

Richiedi una versione specifica.

Il valore non deve essere inferiore a 0.
Tipo: intero
Predefinito: 0
Esempi:
Ottieni informazioni sulla sezione 0 di Doom metal
api.php?action=mobileview&page=Doom_metal&sections=0 [apri in una sandbox]
Ottieni informazioni sulla sezione 0, e sezione contenenti i riferimenti di Candlemass
api.php?action=mobileview&page=Candlemass&sections=0|references [apri in una sandbox]
Ottieni informazioni sulla sezione 1 e successive, e sezione contenenti i riferimenti di Candlemass
api.php?action=mobileview&page=Candlemass&sections=1-|references [apri in una sandbox]