راهنما:درگاه محدودیت‌های خصوصیت/گستره‌نماها

From Wikidata
Jump to navigation Jump to search
This page is a translated version of the page Help:Property constraints portal/Qualifiers and the translation is 83% complete.

allowed qualifiers constraint (Q21510851) مشخص می‌کند که فقط مجموعهٔ خاصی از گستره‌نماها می‌توانند با یک خصوصیت استفاده شوند. برای مشخص کردن گستره‌نماهای الزامی، از محدودیت گستره‌نماهای اجباری استفاده کنید.

به‌عنوان مثال، تنها گستره‌نماهای معتبر برای musical conductor (P3300) start time (P580)، end time (P582) و object named as (P1932) هستند.

این محدودیت فقط روی مقدار اصلی یک اظهار قابل بررسی است. اگر constraint scope (P4680) دیگری مشخص شده باشد، خطا گزارش می‌شود.

اگر چنین محدودیتی روی یک خصوصیت تعریف شده باشد، زمانی که شخصی یک اظهار جدید را با آن خصوصیت اضافه می‌کند، از مقادیر آن به‌عنوان پیشنهاد نیز استفاده می‌شود. به‌عنوان مثال، شخصی که یک musical conductor (P3300) اظهار جدید اضافه می‌کند، در هنگام افزودن یک اظهار، گستره‌نماهای مجاز start time (P580)، end time (P582) و object named as (P1932) را به‌عنوان پیشنهاد می‌بیند. (با جستجوی آن‌ها یا چسباندن شناسهٔ خصوصیت‌هایشان می‌توان سایر خصوصیت‌ها را اضافه کرد.)

فعالیت‌های ممکن

چندین راه ممکن برای رسیدگی به نقض این محدودیت وجود دارد:

  • این امکان وجود دارد که گستره‌نمای مناسبی برای استفاده برای اظهار نباشد و به‌جای آن باید از یک خصوصیت مشابه اما متفاوت استفاده شود. فهرست گستره‌نماهای مجاز برای یک خصوصیت کاربردی را بررسی کنید.
  • این امکان وجود دارد که اظهار به هیچ وجه گستره‌نما نداشته باشد و گستره‌نما باید حذف شود.
  • ممکن است اظهار یک استثنای نادر، اما مشروع برای محدودیت باشد، و هیچ کاری نباید انجام شود.

پارامترها

این محدودیت یک پارامتر اجباری دارد:

property (P2306)
Contains the permitted qualifiers. Must contain one or more properties, or a single no value Help to specify that statements for this property should not have any qualifiers. (unknown value Help is not permitted.)

مثال‌ها

مثال ۱

برای مثال، گستره‌نمای معتبر برای students count (P2196) point in time است.

property constraint
Normal rank allowed qualifiers constraint
property point in time
0 reference
add reference


add value

مثال ۲ - هیچ‌گونه گستره‌نمای مجاز

Setting for no qualifiers allowed. no value specify that statements for this property should not have any qualifiers. "no value" is added to statements by clicking on the icon beside the value field that looks like this .

property constraint
Normal rank allowed qualifiers constraint
property no value
0 reference
add reference


add value

گستره‌نماهای سراسری مجاز

Certain properties are expected to be allowed as qualifiers on almost any statement: notably reason for deprecated rank (P2241), reason for preferred rank (P7452), and mapping relation type (P4390). WikibaseQualityConstraints knows nothing of these special properties; consequently, it’s expected that they are included in most allowed qualifiers constraint (Q21510851) constraints. (See T242797 for discussion.)

الگو

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 for some constraint messages are defined at Module:i18n/constraints; others, such as the message for allowed qualifiers constraint (Q21510851), are located on TranslateWiki.

فهرست‌ها

فهرستی از خصوصیت‌هایی که محدودیت گستره‌نماهای مجاز را تنظیم کرده‌اند.