MediaWiki API ヘルプ

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

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

list=protectedtitles (pt)

(main | query | protectedtitles)
  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

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

パラメーター:
その他一般パラメーターが利用可能です。
ptnamespace

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

値 (| または別の文字列で区切る): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15
すべての値を指定するには、*を用いてください。
ptlevel

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

値 (| または別の文字列で区切る): autoconfirmed、sysop
ptlimit

返すページの総数。

型: 整数または max
値は1以上500以下です。
既定: 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
保護レベルを追加します。
値 (| または別の文字列で区切る): comment、expiry、level、parsedcomment、timestamp、user、userid
既定: timestamp|level
ptcontinue

When more results are available, use this to continue. More detailed information on how to continue queries can be found on mediawiki.org.

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