Help:Ограничения свойств/Ссылки на Викисклад

This page is a translated version of the page Help:Property constraints portal/Commons link and the translation is 38% complete.

Ограничение «Commons link constraint (Q21510852)» определяет, что значением свойства должно быть корректное название существующей страницы на Викискладе, находящейся в указанном пространстве имён.

Например, значением для свойства «image (P18)» должна быть корректная страница в пространстве имён «File», а для свойства «Commons category (P373)» — должна быть корректная страница в пространстве имён «Category».

Если constraint scope (P4680) не определена, это ограничение проверяется везде.

Возможные действия

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.
  • Возможно, что элемент является редким, но обоснованным исключением из ограничения, и нет необходимости что-либо делать.

Параметры

У этого ограничения один необязательный параметр:

Wikimedia Commons 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

Example 1

Setting for “File” namespace.

property constraint
  Commons link constraint
Wikimedia Commons namespace File
constraint status mandatory constraint
0 references
add reference


add value

Example 2

Setting for “Category” namespace.

Template

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 violations of this constraint: Database reports/Constraint violations/P18#Commons link, hourly updated report

Lists

Lists of properties which are set Commons link constraint.