MediaWiki API ヘルプ

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

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

prop=templates (tl)

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

与えられたページで参照読み込みされているすべてのページを返します。

パラメーター:
tlnamespace

この名前空間のテンプレートのみ表示する。

値 (|もしくは別の文字列で区切る): -2、-1、0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15
To specify all values, use *.
tllimit

返すテンプレートの数。

500(botは5,000)より多くは受け付けません。
Type: integer or max
既定値: 10
tlcontinue

When more results are available, use this to continue.

tltemplates

Only list these templates. Useful for checking whether a certain page uses a certain template.

複数の値は | もしくは代わりの文字で区切ってください。 値の最大値は 50 (ボットの場合は 500) です。
tldir

昇順・降順の別。

値 (次の値のいずれか1つ): ascendingdescending
既定値: ascending
例:
Main Page で使用されているテンプレートを取得する。
api.php?action=query&prop=templates&titles=Main%20Page [サンドボックスで開く]
Main Page で使用されているテンプレートに関する情報を取得する。
api.php?action=query&generator=templates&titles=Main%20Page&prop=info [サンドボックスで開く]
Main Page で参照読み込みされている 利用者 および テンプレート 名前空間のページを取得する。
api.php?action=query&prop=templates&titles=Main%20Page&tlnamespace=2|10 [サンドボックスで開く]