پوسته:تایم‌لس

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Skin:Timeless and the translation is 8% complete.
Other languages:
Bahasa Indonesia • ‎Deutsch • ‎English • ‎Esperanto • ‎español • ‎français • ‎italiano • ‎polski • ‎русский • ‎فارسی • ‎中文 • ‎日本語
This skin comes with MediaWiki 1.31 and above. Thus you do not have to download it again. با این‌حال، شما هنوز هم باید دستورالعمل‌های دیگر را دنبال کنید.
کتابچۀ راهنمای پوسته‌های مدیاویکی - رده
Crystal Clear device blockdevice.png
Timeless
وضعیت انتشار: آزمایشی
Timeless MediaWiki Skin.png
نویسنده(ها) Isarra
MediaWiki 1.31+
پروانه پروانۀ همگانی گنو ۲٫۰ یا بعدتر
دریافت
نمونه mediawiki.org
پارامترها
* $wgTimelessBackdropImage
ترجمه‌کردن پوستۀ Timeless اگر در ویکی‌ترجمه در دسترس است
بررسی ماتریس استفاده و نگارش؛
مسائل : بازکردن وظایف · گزارش یک مشکل

Skin based on Winter and an attempt to incorporate all the sensible things suggested on this 2015 Village pump discussion into a skin. Shh. Don't tell them. They thought I wasn't serious.

The general aim is to make a fully featured skin that emphasises both content and editing tools, with multiple view modes for showing everything, focusing only on content (winter), or switching to dark/night viewing. One day it will actually do this.

نصب‌کردن

  • پوسته را دریافت کنید و پرونده(های) آن‌را در یک پوشه با نام Timeless در پوشۀ skins/ جای‌گذاری کنید.
  • کد زیر را در پایین پروندۀ LocalSettings.php خود بیفزایید:
wfLoadSkin( 'Timeless' );
  • Configure as required.
  • Yes انجام شد - به Special:Version در ویکی خودتان بروید تا مطئمن شوید که پوسته با موفقیت نصب شده است.

Configuration

The following are only supported in MediaWiki 1.34+

$wgTimelessBackdropImage (string, default 'cat.svg')
Set it as you would $wgLogo to an appropriate background image. Recommendation is an svg set to 500-750px wide: svg for HiDPI support; the size can really be whatever, but where that will result in a similar behind-content look as with the default cat.
For a background to potentially also work unmodified with other background-colour themes if and when they are later implemented, a transparent single-colour image is recommended, with 20-50% opacity black/white, where the alpha values of the b/w parts are likewise around 10-50/255, as this should allow it to work on most anything that isn't pure white/black.
Examples (which actually don't follow the above recommendation and thus probably won't work on dark backgrounds): Timeless backdrop (wiktionary).svg and Timeless backdrop (metawiki).svg
$wgTimelessLogo (null|string|array, default null)
Special logo rendering, allowing for custom logos for Timeless specifically (such as a square logo version without the wordmrk in order to avoid duplication with the header). Also provides slightly better HiDPI support than using $wgLogoHD, as that only works for 135x135px logos, and scales all high-res logos down to this size.
Can be used to point Timeless at a File uploaded onwiki (remember to protect the file if using this) simply by providing the file name, or you can specify the logo path details manually using an array.
To reuse a $wgLogo and $wgLogoHD already set for a nominally 160x160px logo, but where the HD versions also come out the right size:
$wgTimelessLogo = [
	'1x' => $wgLogo,
	'1.5x' => $wgLogoHD['1.5x'],
	'2x' => $wgLogoHD['2x'],
	'width' => 160,
	'height' => 160
];
To use File:Cows.svg uploaded onwiki:
$wgTimelessLogo = 'Cows.svg';
  • Note that uploaded logos work best as svgs or as 2x- or higher-sized rasters, and will be scaled down for each target resolution. Obviously this approach requires file uploads and thumbnailing to be enabled.
  • Recommended nominal sizes probably around 135px to 165px.
$wgTimelessWordmark (null|string|array, default null)
To use an image instead of the default Linux Libertine serif text for the header banner wordmark. Same usage approach as $wgTimelessLogo.
So the english Wikipedia might use Wikipedia wordmark.svg, like so:
$wgTimelessWordmark = 'Wikipedia wordmark.svg';
Or specify an array of each resolution version, plus the dimensions, per above (more likely with them, frankly).
  • If not using an uploaded file onwiki, specifying the dimensions is required.
  • Recommended nominal size up to 200px wide by 38px tall.