پوسته:برداری

This page is a translated version of the page Skin:Vector and the translation is 42% complete.
Outdated translations are marked like this.
This skin comes with MediaWiki 1.16 and above. بنابراین شما مجبور نیستید آن را دوباره بارگیری کنید. با این‌حال، شما هنوز هم باید دستورالعمل‌های دیگر را دنبال کنید.
کتابچۀ راهنمای پوسته‌های مدیاویکی - رده
Vector
وضعیت انتشار: پایدار
Compatibility policy Snapshots releases along with MediaWiki. Master is not backwards compatible.
Composer mediawiki/vector-skin
مجوز پروانۀ همگانی گنو ۲٫۰ یا بعدتر
دریافت
نمونه
پارامترها
Quarterly downloads 735 (Ranked 1st)
Public wikis using 14,010 (Ranked 2nd)
Public wikis using as default skin 5,943
ترجمه‌کردن پوستۀ Vector اگر در ویکی‌ترجمه در دسترس است
Vagrant role vector
مسائل : بازکردن وظایف · گزارش یک مشکل

Vector is a MediaWiki skin that has been MediaWiki's default skin since 2010, replacing MonoBook .

In recent years the skin has undergone a number of technical changes, e.g. the switch to Mustache to support the construction of Skin:Vector/2022 as part of the work done by the مطالعه/وب/بهبودهای دسکتاپ initiative.

نصب

  • اگر از Vagrant استفاده می‌‌کنید، با vagrant roles enable vector -p نصب کنید

نصب دستی

  • Download and place the file(s) in a directory called Vector in your skins/ folder.
  • کد زیر را در پایین پروندۀ LocalSettings.php خود بیفزایید:
    wfLoadSkin( 'Vector' );
    
  •   انجام شد - به Special:Version در ویکی خودتان بروید تا مطئمن شوید که پوسته با موفقیت نصب شده است.

Setting the default skin to Vector

A default skin should be set for new users of a wiki by setting the variable $wgDefaultSkin in LocalSettings.php to the lowercase skin name specified in the skin file:

$wgDefaultSkin = 'vector'; // "Legacy" Vector (2010)
$wgDefaultSkin = 'vector-2022'; // New Vector (2022)

گزینه‌های پیکربندی

$wgVectorUseIconWatch

  • پی‌گیری و حذف پی‌گیری به‌عنوان یک نماد نه پیوند.
  • Supported values:
    • true — استفاده از نماد برای دکمه‌ی پی‌گیری/حذف پی‌گیری
    • false — استفاده از متن برای پیوند پی‌گیری/حذف پی‌گیری
$wgVectorUseIconWatch = true;

$wgVectorResponsive

MediaWiki versions:
1.26 – 1.35

* تنظیمات تجربی برای ساخت پوسته‌ی برداری با واکنش‌گرایی کمی بیشتر. false by default.

  • Supported values:
    • true — استفاده از واکنش‌گرایی برای بهبود قابلیت استفاده در نمایشگرهای باریک
    • false — ناواکنش‌گرایی

MediaWiki versions:
1.30 – 1.35

نشان‌وارۀ مورد استفاده در سبک‌های چاپ.

Keys are 'url', 'width', 'height' (in pixels). Note that this solution only works correctly if the image pointed to by 'url' is an SVG that does not specify width and height attributes, or its width and height match the corresponding variables below. Alternatively, a PNG or other type of image can be used, but its dimensions also need to match the corresponding variable below. That in turn may result in blurry images, though.

For MediaWiki 1.36 and higher, the print logo will simply be set from Manual:$wgLogos .

$wgVectorPrintLogo = [
	'url' => 'https://en.wikipedia.org/static/images/mobile/copyright/wikipedia-wordmark-en.svg',
	'width' => 174,
	'height' => 27
];

$wgVectorShareUserScripts

Setting to false prevents Vector 2022 skin from loading MediaWiki:Vector.css and MediaWiki:Vector.js.


ویژگی‌ها

ویژگی‌های اصلی پوسته‌ی برداری
  • کاهش اختلال،در درجه اول با کاهش شمار خط‌های روی نما
  • جداسازی دیداری کنش‌های محتوا و پیوندهای فضای نام، نخستی که به زبانه‌های
  • نمایش‌ها و موردهای فهرست کنش تقسیم شده است
  • افزایش/کاهش خودکار حاشیه‌ها (margin) از طریق رابط کاربری براساس اندازه‌ی مرورگر
  • استفاده از نماد ستاره برای کنش‌های پی‌گیری و حذف پی‌گیری
ویژگی‌های افزوده‌شده‌ی Vector برداری (برخی از ویژگی‌ها بعدها به پوسته یا MediaWiki Core افزوده یا حذف شدند)
  • درگاه جستجوی ساده، شامل پیشنهادها
  • درگاه ناوبری انعطاف‌پذیر
  • هشدار هنگام ترک یک برگه‌ی ویرایش بدون ذخیره
  • مخفی‌کردن خودکار زبانه‌هایی که در نما مناسب نیستند
ویژگی‌های پیشرفته‌ی افزونه‌ی برداری
  • محتوای پابرگ ساده‌شده
  • گسترش جعبه‌ی جستجو در تمرکز
  • پیوندهای ویرایش بخش در کنار عنوان هستند و از یک نماد استفاده می‌کنند
پشتیبانی از ناوبری انعطاف‌پذیر از طریق افزونه‌ی CollapsibleVector

یادداشت‌ها

Collapsible navigation

درگاه‌های ناوبری انعطاف‌پذیر درحال حاضر توسط CollapsibleVector ارائه می‌شود که علاوه بر آن افزونه نیز باید نصب شود.

Smartphone and tablet design

Vector will work on many mobile devices, but it is not fully optimized for mobile devices. This latest version of Vector, Vector 2022, has better support for mobile devices.

History of the skin

Vector was created in 2009 as part of the work done by the Wikipedia Usability Initiative . It became MediaWiki's default skin in 2010 (MediaWiki 1.17 , git #2833b07a), succeeding Skin:MonoBook . In 2022, as part of the MediaWiki 1.38 release, it was updated as part of the work done by the مطالعه/وب/بهبودهای دسکتاپ initiative.

پوستهٔ برداری نخستین پوسته‌ای بود که برای جداسازی سطح تخت $1 از $2 رده‌بندی شده بود It was the first skin to separate the flat level content_actions into the categorized content_navigation.

در ابتدا کارکرد اساسی در هستهٔ پوسته گنجانده شد، درحالی که برخی‌از ویژگی‌های ویژهٔ پوستهٔ برداری با یک افزونهٔ جداگانه (Extension:Vector ) مورد استفاده قرار گرفتند. In MediaWiki 1.22, the extension was merged into the skin.

Dark mode customizations

A dark color scheme can be applied to Vector using CSS , for example with user styles, [۱] which are enabled by default. Dark mode derivatives of the Vector skin, such as Skin:DarkVector , can be loaded into a wiki as a separate option.

Note all of these are supported by third parties, not the Wikimedia Foundation .

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

New Vector skin in 1.38+

نسخهٔ مدیاویکی:
1.38

In MediaWiki 1.38 a new variant of Vector, Vector 2022 , was created as part of the Desktop Improvements project.