API:Protectedtitles

From MediaWiki.org
Jump to: navigation, search
Tools clipart.png This page is part of the MediaWiki API documentation.
MediaWiki API

Quick overview:

v · d · e
MediaWiki version: 1.15

Get a list of titles protected from creation.

Parameters[edit | edit source]

  • ptstart: Start listing at this protection timestamp
  • ptend: End listing at this protection timestamp
  • ptdir: Direction to list in
    • older: List most recently protected titles first (default). Note: ptstart has to be later than ptend.
    • newer: List least recently protected titles first Note: ptstart has to be before ptend.
  • ptlimit: Maximum number of titles to return (10 by default)
  • ptnamespace: Only list titles in these namespaces
  • ptlevel: Only list titles with this protection level
  • ptprop: A pipe-separated list of properties to get
    • timestamp: Timestamp the title was protected (default)
    • user: User who protected the title
    • comment: Protection log comment
    • expiry: Expiry timestamp
    • level: Protection level (i.e. the right needed to be able to create the page) (default)

Example[edit | edit source]

Get the first 2 titles only sysops can create

Error Codes[edit | edit source]

None