MediaWiki API súgó

Ez egy automatikusan generált MediaWiki API-dokumentációs lap.

Dokumentáció és példák: https://www.mediawiki.org/wiki/API

action=mobileview

(main | mobileview)
  • Ez a modul olvasási jogot igényel.
  • Forrás: MobileFrontend
  • Licenc: GPL-2.0+

Returns data needed for mobile views.

Paraméterek:
page

A feldolgozandó lap címe.

Ez a paraméter kötelező.
redirect

Az átirányításokat kövesse-e.

A következő értékek egyike: yes, no
Alapértelmezett: 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.
Értékek (elválasztó: | vagy más): id, text, sections, normalizedtitle, lastmodified, lastmodifiedby, revision, protection, editable, languagecount, hasvariants, displaytitle, pageprops, description, contentmodel, namespace
Alapértelmezett: text|sections|normalizedtitle
sectionprop

Milyen információkra van szükség a szakaszokról.

Értékek (elválasztó: | vagy más): toclevel, level, line, number, index, fromtitle, anchor
Alapértelmezett: toclevel|line
pageprops

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

Alapértelmezett: notoc|noeditsection|wikibase_item
variant

A tartalom átalakítása erre a nyelvvariánsra

noimages

Visszatérés HTML-lel, képek nélkül.

Típus: logikai (részletek)
noheadings

Szakaszcímek kihagyása a kimenetből.

Típus: logikai (részletek)
notransform

Ne alakítsa át a HTML-t mobilspecifikusra.

Típus: logikai (részletek)
onlyrequestedsections

Csak a kért szakaszok visszaadása, még a(z) prop=sections paraméter esetén is.

Típus: logikai (részletek)
offset

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

Az érték nem lehet kisebb mint 0.
Típus: egész
Alapértelmezett: 0
maxlen

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

Az érték nem lehet kisebb mint 0.
Típus: egész
Alapértelmezett: 0
revision

Egy adott lapváltozat kérése.

Az érték nem lehet kisebb mint 0.
Típus: egész
Alapértelmezett: 0
Examples:
Információ a Doom metal 0. szakaszáról (bevezetőjéről)
api.php?action=mobileview&page=Doom_metal&sections=0 [open in sandbox]
Információ a Candlemass 0. szakaszáról (bevezetőjéről) és forráshivatkozásokat tartalmazó szakaszairól
api.php?action=mobileview&page=Candlemass&sections=0|references [open in sandbox]
Információ a Candlemass 1. és későbbi szakaszairól, valamint a forráshivatkozásokat tartalmazó szakaszairól
api.php?action=mobileview&page=Candlemass&sections=1-|references [open in sandbox]