Manual:$wgImageLimits/fi

From Linux Web Expert

<translate> Images</translate>: $wgImageLimits
A list of user-selectable limits for the image thumbnail size on image description pages.
<translate> Introduced in version:</translate>1.4.0
<translate> Removed in version:</translate><translate> still in use</translate>
<translate> Allowed values:</translate>katso alta
<translate> Default value:</translate>katso alta

Tiedot

Tämä muuttuja sisältää joukon 2-elementin taulukoita. Each of these defines a width/height pair describing a maximum image size (in pixels). The image sizes defined in this variable are used on the user preference page to allow the user to specify an image size-limit when viewing image pages. In order to reduce the amount of disk space taken up by thumbnails of many different sizes, limits can only be selected from this list.

This setting also determines the list of thumbnail links which are provided on the image page, just below the image.

This setting relates to images as shown on image description pages (File: namespace). For thumbnails in articles and other wiki pages, see $wgThumbLimits .

Oletusarvot

<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>">
<translate> ≥</translate> 1.36
Gerrit change 682645
<translate> MediaWiki version:</translate>
$wgImageLimits = [
	[ 320, 240 ],
	[ 640, 480 ],
	[ 800, 600 ],
	[ 1024, 768 ],
	[ 1280, 1024 ],
	[ 2560, 2048 ],
];
<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.35</tvar> is unsupported version</translate>">
1.20 – 1.35
<translate> MediaWiki versions:</translate>
$wgImageLimits = [
	[ 320, 240 ],
	[ 640, 480 ],
	[ 800, 600 ],
	[ 1024, 768 ],
	[ 1280, 1024 ]
];
<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.19</tvar> is unsupported version</translate>">
1.4 – 1.19
<translate> MediaWiki versions:</translate>
$wgImageLimits = array(
	array( 320, 240 ),
	array( 640, 480 ),
	array( 800, 600 ),
	array( 1024, 768 ),
	array( 1280, 1024 ),
	array( 10000, 10000 )
);

Esimerkki

If you are using a skin which has a fixed width for page content, you will probably want to make the maximum size equal to that width. Lisää nämä asetukset tiedostoosi LocalSettings.php :

// Älä salli suurempia kuvakokoja, koska ne pilaavat sivun ulkoasun
$wgImageLimits = [
   [ 320, 240 ], // kuvakoko 0
   [ 500, 375 ]  // kuvakoko 1
];

If you change this array, you also want to change the default user option for image sizes on image pages. Each image size set is automatically associated with an integer value that may be used for the imagesize user option. This value always starts with "0" for the lowest image size set in the array and increases by 1 per additional image size defined, e.g. if five different image sizes were set the lowest value for the user option is "0" while "4" is the highest.

// Oletuksena näytä suurempi vaihtoehto
$wgDefaultUserOptions['imagesize'] = 1; // kuvakoko 500, 375


Katso myös