API:Fileusage/ja
Appearance
| このページは MediaWiki 操作 API の説明文書の一部です。 |
| Fileusage | ||
|---|---|---|
| Find all pages that use the given files. このモジュールは generator として使用できます。 | ||
| 接頭辞 | fu | |
| 必要な権限 | なし | |
| POST のみ? | いいえ | |
| 自動生成ヘルプ | 現行バージョン | |
| 追加されたバージョン |
| |
Find all pages that use the given files. This module can be used as a generator.
パラメーター
fuprop: Which properties to get. (既定値:pageid|title|redirect)pageid: Get the page id of each page.title: Get the title of each page.redirect: Flag whether the page is a redirect.
funamespace: Only include pages in these namespaces.fushow: Show only items that meet these criteria.redirect: Only show redirects.!redirect: Only show non-redirects.
fulimit: The number of results to return. 500 を超える値は使用できません (ボットは 5000)。 (既定値: 10)fucontinue: When more results are available, use this to continue.
例
Get a list of pages using Example.jpg.
| 結果 |
|---|
{
"query": {
"pages": {
"586539": {
"pageid": 586539,
"ns": 6,
"title": "File:Example.jpg",
"fileusage": [
{
"pageid": 57741,
"ns": 1,
"title": "Talk:Ebola virus"
},
{
"pageid": 85076,
"ns": 1,
"title": "Talk:Case sensitivity"
},
{
"pageid": 165974,
"ns": 1,
"title": "Talk:Asia"
},
{
"pageid": 243414,
"ns": 5,
"title": "Wikipedia talk:Alternative text for images"
},
{
"pageid": 256889,
"ns": 4,
"title": "Wikipedia:Manual of Style/Images"
},
{
"pageid": 428971,
"ns": 3,
"title": "User talk:Centrx"
},
{
"pageid": 447341,
"ns": 5,
"title": "Wikipedia talk:Extended image syntax"
},
{
"pageid": 499974,
"ns": 4,
"title": "Wikipedia:Tutorial/Formatting"
},
{
"pageid": 663437,
"ns": 1,
"title": "Talk:Banjo-Kazooie"
},
{
"pageid": 728041,
"ns": 10,
"title": "Template:Infobox video game"
}
]
}
}
}
}
|
起こりうるエラー
| コード | 情報 |
|---|---|
| fushow | Incorrect parameter - mutually exclusive values may not be supplied. |
prop=fileusage (fu)
Find all pages that use the given files. Specific parameters: Other general parameters are available.
Examples:
|