Help:Property constraints portal/Allowed entity types
|This is the documentation page for a particular constraint type. See Help:Property constraints portal for a general overview of property constraints.|
allowed entity types constraint (Q52004125) specifies that a property may only be used on a certain entity type.
For example, Wikidata property example (P1855) should only be used on properties—not on items—so P1855 has the following statement:
|property constraint (P2302)|
The qualifier constraint scope (P4680) can be used to restrict the constraint to only apply when a property is used as a main value, as a qualifier, or as a references.
If no constraint scope (P4680) is specified, this constraint is checked everywhere.
There are several possible ways to address a violation of this constraint:
- It’s possible that the property is not the correct one to use for the statement, and a similar but different property should be used instead.
- It’s possible that the statement should not exist at all, and should be removed.
- It’s possible that the statement is a rare, but legitimate exception to the constraint, and nothing should be done.
This constraint has one mandatory parameter: