MediaWiki API ヘルプ

このページは自動生成された MediaWiki API の説明文書ページです。

説明文書と例: https://www.mediawiki.org/wiki/API

list=protectedtitles (pt)

(main | query | protectedtitles)
  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • Source: MediaWiki
  • License: GPL-2.0+

作成保護が掛けられているページを一覧表示します。

パラメーター:
ptnamespace

この名前空間に含まれるページのみを一覧表示します。

値 (|で区切る): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15、100、101、102、103、104、105、106、107、110、111
ptlevel

この保護レベルのページのみを一覧表示します。

値 (|で区切る): autoconfirmed、sysop
ptlimit

返すページの総数。

No more than 500 (5,000 for bots) allowed.
Type: integer or max
既定値: 10
ptdir

列挙の方向:

newer
古いものを先に表示します。注意: ptstart は ptend 以前でなければなりません。
older
新しいものを先に表示します (既定)。注意: ptstart は ptend 以降でなければなりません。
値 (次の値のいずれか1つ): newer、older
既定値: older
ptstart

一覧表示の始点となる保護タイムスタンプ。

Type: timestamp (allowed formats)
ptend

一覧表示の終点となる保護タイムスタンプ。

Type: timestamp (allowed formats)
ptprop

取得するプロパティ:

timestamp
Adds the timestamp of when protection was added.
user
Adds the user that added the protection.
userid
Adds the user ID that added the protection.
comment
Adds the comment for the protection.
parsedcomment
Adds the parsed comment for the protection.
expiry
Adds the timestamp of when the protection will be lifted.
level
保護レベルを追加します。
値 (|で区切る): timestamp、user、userid、comment、parsedcomment、expiry、level
既定値: timestamp|level
ptcontinue

When more results are available, use this to continue.

例:
保護されているページを一覧表示する。
api.php?action=query&list=protectedtitles [サンドボックスで開く]
標準名前空間にある保護されたページへのリンクを検索する。
api.php?action=query&generator=protectedtitles&gptnamespace=0&prop=linkshere [サンドボックスで開く]