Help:Ограничения свойств/Ссылки на Викисклад
This is the documentation page for a particular constraint type. See Help:Property constraints portal for a general overview of property constraints. |
Ограничение «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 |
| ||||||||||||||
add value |
Example 2
Setting for “Category” namespace.
property constraint |
| ||||||||||||||
add value |
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.
Lists
Lists of properties which are set Commons link constraint.
- Category:Properties with Commons link constraints
- SPARQL query - click the execute button at the linked page to see the query result.