MediaWiki API ヘルプ
このページは自動生成された MediaWiki API の説明文書ページです。
説明文書と例: https://www.mediawiki.org/wiki/API
prop=pageimages (pi)
- このモジュールは読み取りの権限を必要とします。
 - ソース: PageImages
 - ライセンス: WTFPL
 
Returns information about images on the page, such as thumbnail and presence of photos.
パラメーター:
- piprop
 どの情報を返すか:
- サムネイル
 - ページに関連付けられたサムネイル画像のURLとサイズ(存在する場合)。
 - オリジナル
 - ページに関連付けられたイメージのURLと元のサイズ(存在する場合)。
 - 名前
 - 画像のタイトル。
 
- 値 (|もしくは別の文字列で区切る): thumbnail、name、original
 - 既定値: thumbnail|name
 - pithumbsize
 サムネイル画像の最大幅(ピクセル単位)。
- Type: integer
 - 既定値: 50
 - pilimit
 返すページの件数です。
- 50(botは100)より多くは受け付けません。
 - Type: integer or max
 - 既定値: 50
 - pilicense
 ページイメージを特定のライセンスタイプに制限する
- 値 (次の値のいずれか1つ): free、any
 - 既定値: free
 - picontinue
 When more results are available, use this to continue.
- Type: integer
 
例:
- ページ Albert Einstein 上の画像の名前と 100 ピクセルのサムネイルを取得する。
 - api.php?action=query&prop=pageimages&titles=Albert%20Einstein&pithumbsize=100 [サンドボックスで開く]