Manual:Thumb.php/zh

细节
thumb.php is a script used for creating and streaming thumbnails.

To use it, set  to the path of this file.

Parameters are  for file name,   for width,   for page in multipaged files (if available).

例如： https://commons.wikimedia.org/w/thumb.php?f=Delle_strade_ferrate_e_della_loro_futura_influenza_in_Europa.djvu&w=600&p=206

404 处理器
This script can also be used as a 404 handler to generate image thumbs when they don't exist. To use it, follow the steps below, then set  to false. If you have  defined in LocalSettings.php, then you need to also set:


 * 例如：https://www.mediawiki.org/w/thumb.php?f=example.jpg&width=100

撰稿转换
将下列代码放置在的底部.

No web server configuration needed. This will cause thumb.php to either return the file if its already been rendered, or render the file on demand if needed.

参见

 * ：404处理器
 * ：404处理器