Bantuan API MediaWiki

Ini merupakan laman dokumentasi MediaWiki API yang dihasilkan secara automatik.

Dokumentasi dan contoh-contoh: https://www.mediawiki.org/wiki/API

action=timedtext

(main | timedtext)
  • Modul ini dalaman atau tidak stabil. Operasinya boleh berubah tanpa amaran.
  • Modul ini memerlukan hak membaca.
  • Source: TimedMediaHandler
  • License: GPL-2.0-or-later

Provides timed text content for usage by <track> elements

Parameter:
Other general parameters are available.
title

The media file title for which to retrieve timed text

pageid

The pageid of the media file for which to retrieve timed text

Type: integer
trackformat

The file format in which to return timed text

This parameter is required.
One of the following values: srt, vtt
lang

The language of the timed text to retrieve

Contoh:
Fetch an SRT subtitle file in German for the file Example.ogv
api.php?action=timedtext&title=File:Example.ogv&lang=de&trackformat=vtt [open in sandbox]