Jump to content

API:Fileusage/ja

From mediawiki.org
Revision as of 09:51, 11 December 2019 by FuzzyBot (talk | contribs) (Updating to match new version of source page)

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)

(main | query | fileusage)
  • 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.