Jump to content

User:Zyxw/upright

From Wikipedia, the free encyclopedia

The available values for thumbnail size in Special:Preferences (on the Appearance tab) are 120px, 150px, 180px, 200px, 220px (default), 250px, 300px, and 400px. As explained at Wikipedia:Extended image syntax § Size, upright=Factor will "adjust a thumbnail's size to Factor times the default thumbnail size, rounding the result to the nearest multiple of 10". That math can be done on Wikipedia via {{#expr: SIZE * FACTOR round -1}}, which is how the following chart was generated.

Effects of upright on image widths available in user preferences
upright=0.6 upright=0.75
upright
(default)
upright=0.9 upright=1
(no change)
upright=1.1 upright=1.2 upright=1.35 upright=1.8
120px 70px 90px 110px 120px 130px 140px 160px 220px
150px 90px 110px 140px 150px 170px 180px 200px 270px
180px 110px 140px 160px 180px 200px 220px 240px 320px
200px 120px 150px 180px 200px 220px 240px 270px 360px
220px
(default)
130px 170px 200px 220px 240px 260px 300px 400px
250px 150px 190px 230px 250px 280px 300px 340px 450px
300px 180px 230px 270px 300px 330px 360px 410px 540px
400px 240px 300px 360px 400px 440px 480px 540px 720px

Examples

[edit]

Actual effects

[edit]

The first column of the following table shows a frameless image at the user's current thumbnail size setting (220px for users who have not changed it or are not logged in). The second column shows the same frameless image with upright or upright=value added.

To see the actual effect at other thumbnail sizes, change the setting in Special:Preferences (on the Appearance tab), come back to this page, and either refresh it or click Purge. View the HTML source via the web browser to confirm the actual sizes in the image tags.

Note: As shown in the first three rows, upright, upright=0.1, and upright=0.75 all have the same effect.

Effect of upright on user's current thumbnail size in preferences
[[File:Apple.jpg|frameless]] [[File:Apple.jpg|frameless|upright]]
[[File:Apple.jpg|frameless]] [[File:Apple.jpg|frameless|upright=0.1]]
[[File:Apple.jpg|frameless]] [[File:Apple.jpg|frameless|upright=0.75]]
[[File:Apple.jpg|frameless]] [[File:Apple.jpg|frameless|upright=0.9]]
[[File:Apple.jpg|frameless]] [[File:Apple.jpg|frameless|upright=1]]
[[File:Apple.jpg|frameless]] [[File:Apple.jpg|frameless|upright=1.2]]
[[File:Apple.jpg|frameless]] [[File:Apple.jpg|frameless|upright=1.35]]

Simulated effects

[edit]

This first column of the following table shows an image at each of the thumbnail size settings available in Special:Preferences (400px was not included due to its effect on the table and page width). The second column shows simulated examples of how upright=1.35 would change each of those thumbnail sizes (the math used is shown in the heading above each adjusted image).

Simulated effect of upright=1.35 on thumbnail sizes available in preferences (excluding 400px)
width: 120px 120 * 1.35 round -1 = 160px
width: 150px 150 * 1.35 round -1 = 200px
width: 180px 180 * 1.35 round -1 = 240px
width: 200px 200 * 1.35 round -1 = 270px
width: 220px (default) 220 * 1.35 round -1 = 300px
width: 250px 250 * 1.35 round -1 = 340px
width: 300px 300 * 1.35 round -1 = 410px