API:Duplicatefiles

From MediaWiki.org
Jump to navigation Jump to search
Translate this page; This page contains changes which are not marked for translation.

Other languages:
dansk • ‎Deutsch • ‎English • ‎español • ‎français • ‎Հայերեն • ‎日本語 • ‎română • ‎русский • ‎sicilianu • ‎中文

List duplicates of the given files.

Parameters[edit]

  • dflimit: How many duplicates to list.
  • dfcontinue: When more results are available, use this to continue.
  • dfdir: The direction in which to list. Possible values: ascending, descending. (Default: ascending) 1.20+
  • dflocalonly: Look only for files in the local repository. Type: boolean 1.20+

Example[edit]

List duplicates of two images

Possible errors[edit]

None




prop=duplicatefiles (df)

(main | query | duplicatefiles)
  • This module requires read rights.
  • This module can be used as a generator.
  • Source: MediaWiki
  • License: GPL-2.0-or-later

List all files that are duplicates of the given files based on hash values.

Parameters:
dflimit

How many duplicate files to return.

No more than 500 (5,000 for bots) allowed.
Type: integer or max
Default: 10
dfcontinue

When more results are available, use this to continue.

dfdir

The direction in which to list.

One of the following values: ascending, descending
Default: ascending
dflocalonly

Look only for files in the local repository.

Type: boolean (details)