MediaWiki API ヘルプ
このページは自動生成された MediaWiki API の説明文書ページです。
説明文書と例: -{R|https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page}-
prop=links (pl)
- このモジュールは読み取りの権限を必要とします。
- このモジュールはジェネレーターとして使用できます。
- ソース: MediaWiki
- ライセンス: GPL-2.0-or-later
ページからのすべてのリンクを返します。
パラメーター:
Other general parameters are available.
- plnamespace
この名前空間へのリンクのみ表示する。
- 値 (| または別の文字列で区切る): -1, -2, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 828, 829, 2300, 2301, 2302, 2303
- すべての値を指定するには、*を用いてください。
- pllimit
返すリンクの数。
- 型: 整数または max
- 値は1以上500以下です。
- 既定: 10
- plcontinue
When more results are available, use this to continue. More detailed information on how to continue queries can be found on mediawiki.org.
- pltitles
Only list links to these titles. Useful for checking whether a certain page links to a certain title.
- 複数の値は | または代わりの文字で区切ってください。
- 値の最大値は 50(緩い制限が適用されるクライアントでは500)です。
- pldir
昇順・降順の別。
- 値 (次の値のいずれか1つ): ascending, descending
- 既定: ascending
例:
- Main Page からのリンクを取得する。
- api.php?action=query&prop=links&titles=Mosem [サンドボックスで開く]
- Mosem のリンク元ページに関する情報を取得する。
- api.php?action=query&generator=links&titles=Mosem&prop=info [サンドボックスで開く]
- Iyeywankekur および Nokaor 名前空間にある Mosem のリンク元を取得する。
- api.php?action=query&prop=links&titles=Mosem&plnamespace=2|10 [サンドボックスで開く]