Template:Constraint:Commons link

From Wikidata
Jump to navigation Jump to search
Link to Commons namespace “{{{namespace}}}”: this property should contain a well-formed link to an existing page on Wikimedia Commons.
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/Constraint:Commons link#Commons link
Documentation icon Template documentation[view · edit · history · purge ]

a "well-formed link" means a link

  • with no underscores instead of spaces
  • with no unprintable characters at the beginning of the link
  • with no leading or trailing spaces
  • with no "%20" instead of spaces
  • with no "Jump to: navigation, search" that sometimes gets pasted along
  • that does not include the namespace (e. g. "File:", "Category:" and etc.)
  • that does not include the full path from Commons (sample: "http://upload.wikimedia.org/wikipedia/commons/1/16/")
  • ..

MediaWiki normalizes some of these automatically when images are used in articles and pages, but it makes maintenance of WikiData more complex if the non-normalized versions are stored here.

"a file available on Wikimedia Commons" means:

  • not a file available only in a local Wikipedia (sample: a fair-use image on English Wikipedia)

This template categorizes into Category:Properties with Commons link constraints

Usage[edit]

{{Constraint:Commons link|namespace=File}}

Bot jobs[edit]

Normalize filenames listed on the reports.

Image credit for icon[edit]

See File:Commons Autoconfirmed-2000px.png

See also[edit]