Help:Property constraints portal/Commons link

From Wikidata
Jump to navigation Jump to search
Translate this page;
Other languages:
Deutsch • ‎English • ‎français • ‎polski • ‎русский • ‎српски / srpski • ‎العربية

This page contains changes. Please contact a translation admin to mark them for translation.


Other languages:
Deutsch • ‎English • ‎français • ‎polski • ‎русский • ‎српски / srpski • ‎العربية
Pictogram voting commons logo.svg

Commons link constraint (Q21510852) specifies that values for a property should be valid names of existing pages on Wikimedia Commons within a certain specified namespace.

For example, image (P18) should be a valid page in the “File” namespace, and Commons category (P373) should be a valid page in the “Category” namespace.

If no constraint scope (P4680) is specified, this constraint is checked everywhere.

Possible actions[edit]

There are several possible ways to address a violation of this constraint:

  • It’s possible that the page on Commons was renamed, and the statement should be updated accordingly.
  • It’s possible that the page on Commons was deleted, and the statement should be removed or replaced with a different page.
  • It’s possible that the item is a rare, but legitimate exception to the constraint, and nothing should be done.

Parameters[edit]

This constraint has one optional parameter:

namespace (P2307)
Contains the expected namespace on Commons (without trailing colon, e. g. “File”). If present, must contain exactly one value (no value Help or unknown value Help is not permitted). If not present, the default namespace is used, which is only suitable for Commons gallery (P935).

Examples[edit]

Example 1[edit]

Setting for “File” namespace.

property constraint
Normal rank Commons link constraint Arbcom ru editing.svg edit
namespace File
constraint status mandatory constraint
▼ 0 reference
+ add reference
+ add value

Example 2[edit]

Setting for “Category” namespace.

property constraint
Normal rank Commons link constraint Arbcom ru editing.svg edit
namespace Category
constraint status mandatory constraint
▼ 0 reference
+ add reference
+ add value

Template[edit]

When the constraint is set to the property, the following template is automatically displayed in the property talk page. The template is created by Module:Constraints using Template:Constraint, invoked from Template:Property documentation. Translations are defined at Module:i18n/constraints.

Link to Commons namespace “File”: this property should contain a well-formed link to an existing page on Wikimedia Commons. (Help)
List of this constraint violations: Database reports/Constraint violations/P18#Commons link, hourly updated report, SPARQL (new)

Lists[edit]

Lists of properties which are set Commons link constraint.