Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgThumbLimits and the translation is 67% complete.

Other languages:
dansk • ‎Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎日本語 • ‎polski • ‎português • ‎português do Brasil
Thumbnail settings: $wgThumbLimits
List of image thumbnail sizes users can pick from.
導入されたバージョン: 1.5.0
除去されたバージョン: 使用中
可能な値: 正の整数の配列
既定値: (下記参照)
他の設定: アルファベット順 | 機能順


Users can select a default image thumbnail size in their preferences, which is used for all images displayed as thumbnails that lack an explicitly defined size. In order to reduce disk usage, users can only select a value from this list.

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


$wgThumbLimits = array(


$wgDefaultUserOptions['thumbsize'] = 5; // サムネイル サイズ 300

In order to reduce disk usage, the number of different values selectable from a list may by reduced. Put these settings in your LocalSettings.phpManual:LocalSettings.php:

// Don't allow more than three thumb sizes to reduce disk usage
$wgThumbLimits  = array(
   120, // サムネイル サイズ 0
   250, // サムネイル サイズ 1
   300  // サムネイル サイズ 2

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

// By default display the midsize option
$wgDefaultUserOptions['thumbsize'] = 1; // サムネイル サイズ 250