جعبه یادکرد

From mediawiki.org
This page is a translated version of the page Reference Tooltips and the translation is 56% complete.
Outdated translations are marked like this.
جعبه یادکرد؛ نشانگر دستی به صورت معلق در بالای پیوند پاورقی '[19]' قرار دارد. جعبه یادکرد بدون نیاز به کلیک یا حتی پیمایش به پایین پاورقی 19، مطالب پاورقی را نمایش می‌دهد.

جعبه یادکرد یک ابزار است که وقتی روی آنها قرار می‌گیرید، یادداشت‌ها را نشان می‌دهد.

بدون اینکه نیازی به پیمایش به پایین صفحه باشد، اشاره‌ای دقیقاً روی خط ظاهر می‌شود.

این ویژگی به طور پیش‌فرض در بسیاری از ویکی‌ها فعال است و کاربران می‌توانند با دسترسی به گزینه‌های این ویژگی، کوکی را تنظیم کنند؛ کاربران وارد شده می‌توانند آن را برای همیشه در ابزارها ویژه:ترجیحات غیرفعال کنند.

درباره

این ابزار در ابتدا توسط User:Yair rand در سال 2012 ساخته شد و در سال 2019، User:Jack who built the house دوباره روی آن کار کرد. برای نصب ابزار در ویکی خود، باید فایل‌های زیر را به آنجا منتقل کنید:

  • w:MediaWiki:Gadget-ReferenceTooltips.js
    • Replace https://en.wikipedia.org/w/load.php with the appropriate URL for your own wiki (as of 27 April 2020, this is around line 479); failing to do so may cause an exception in the JavaScript console, and the tooltips will fail to show up
  • w:MediaWiki:Gadget-ReferenceTooltips.css
  • Add the line ReferenceTooltips[ResourceLoader|default|type=general|dependencies=mediawiki.cookie,jquery.client]|ReferenceTooltips.js|ReferenceTooltips.css to MediaWiki:Gadgets-definition
    منوی گزینه‌ها
  • Create a description for the gadget to be displayed in the user preferences by editing MediaWiki:Gadget-ReferenceTooltips on your wiki; copy-paste the content from w:MediaWiki:Gadget-ReferenceTooltips, or create your own if you wish

سپس این ابزار به طور پیش‌فرض در ویکی بارگیری می‌شود.

برای عملکرد طبیعی اسکریپت، تعلقات زیر لازم است: mediawiki.cookie، jquery.client. Extension:Gadgets نیز باید بارگیری شود.

دلیل

در حال حاضر، سایت‌های ویکی‌مدیا تمام منابع را در پایین مقاله لیست می‌کنند. برای مقالات بزرگ، به ویژه مقالاتی که منابع زیادی دارند، این بهینه نیست. Checking an article's references requires several traversals over the entire length of the article, during which time the reader will often lose their place.

فرضیه‌ها

این یک ویژگی عمومی کاربردی است. It is hypothesized that readers will be more likely to visit references if they are immediately accessible without having to traverse the entire page length.

گردش کار کنونی

In articles, a statement is referenced with a super-scripted, internal page link. Clicking on this link will take the user to the bottom of the page to the whole reference list. The specific reference is then highlighted. The user then clicks the link there and the referenced external link is opened.

تجربه کاربری

When the user hovers their mouse over the super-scripted citation link in an article, a tooltip appears above that includes the reference footnote. The user can then move their mouse into the hover and click on the link(s) there to open the external references.

Clicking on the super-scripted reference link behaves as normal (the user is brought to the reference list).

ملاحظات جاوا اسکریپت و تبلت

این ویژگی به جاوا اسکریپت نیاز دارد. Browsers with JavaScript disabled will not have this feature.

This feature may not be usable with tablets and other touch screen interfaces without eliminating the current "click takes you to the reference list" behavior.

تنظیمات

To edit this gadget's settings, hover over a citation so that the tooltip appears, then click on the gear icon. You can set the following options:

  • Whether the tooltip appears on hover or on click
  • Delay before the tooltip appears (by default 200 milliseconds)
  • Whether to show a tooltip for abbreviations inside ‎<abbr> tags. (Example: "abbr.")

جستارهای وابسته