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

Other languages:
English • ‎日本語 • ‎polski
Thumbnail settings: $wgThumbUpright
Scaling factor applied to width of images when parameter 'upright' is used.
導入されたバージョン: 1.11.0 (r22305)
除去されたバージョン: 使用中
可能な値: decimal
既定値: 0.75
他の設定: アルファベット順 | 機能順


This is a scaling factor applied to image thumbnails when the 'upright' parameter is used. The user's preferred thumbnail width is multiplied by this scaling factor.

This allows a nicer look for upright (portrait) images without the need to specify a hardcoded pixel width in the page markup. The scaled images' widths will be rounded to the nearest 10 pixels for cache health.

For example, assume File:Portrait.jpg has dimensions 400×800. User X's preference is to see thumbnails that are 300px wide. When User X views [[File:Portrait.jpg|thumb|upright]], he or she will see a thumbnail of width (300 × $wgThumbUpright). By default that would be (300 × 0.75) = 225 pixels wide.