MediaWiki API ヘルプ

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

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

prop=templates (tl)

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

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

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

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

値 (| または別の文字列で区切る): -1、-2、0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15、110、111、202、274、275、420、421、500、501、502、503、828、829、1200、1201、1202、2300、2301、2302、2303、2900、2901、10000、10001、10002、10003
すべての値を指定するには、*を用いてください。
tllimit

返すテンプレートの数。

型: 整数または max
値は1以上500以下です。
既定: 10
tlcontinue

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

tltemplates

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

複数の値は | または代わりの文字で区切ってください。
値の最大値は 50(緩い制限が適用されるクライアントでは500)です。
tldir

昇順・降順の別。

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