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"
}
]
}
}
}
}
|
起こりうるエラー
| Code | Info |
|---|---|
| fushow | Incorrect parameter - mutually exclusive values may not be supplied. |
| 以下の説明文書は、このサイト (MediaWiki.org) で稼働しているリリース前のバージョンのMediaWikiによって自動的に生成された、Special: |
prop=fileusage (fu)
- This module requires read rights.
- This module can be used as a generator.
- Source: MediaWiki
- License: GPL-2.0-or-later
Find all pages that use the given files.
Specific parameters:
Other general parameters are available.
- fuprop
Which properties to get:
- pageid
- Page ID of each page.
- title
- Title of each page.
- redirect
- Flag if the page is a redirect.
- Values (separate with | or alternative): pageid, redirect, title
- Default: pageid|title|redirect
- funamespace
Only include pages in these namespaces.
- Values (separate with | or alternative): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 90, 91, 92, 93, 100, 101, 102, 103, 104, 105, 106, 107, 710, 711, 828, 829, 1198, 1199, 1728, 1729, 2600, 5500, 5501
- To specify all values, use *.
- fushow
Show only items that meet these criteria:
- redirect
- Only show redirects.
- !redirect
- Only show non-redirects.
- Values (separate with | or alternative): !redirect, redirect
- fulimit
How many to return.
- Type: integer or max
- The value must be between 1 and 500.
- Default: 10
- fucontinue
When more results are available, use this to continue. More detailed information on how to continue queries can be found on mediawiki.org.
Examples:
- Get a list of pages using File:Example.jpg.
- api.php?action=query&prop=fileusage&titles=File%3AExample.jpg [open in sandbox]
- Get information about pages using File:Example.jpg.
- api.php?action=query&generator=fileusage&titles=File%3AExample.jpg&prop=info [open in sandbox]