如何更改 MediaWiki 类别中的图库格式选项
How to change the image gallery format options in a MediaWiki category
有很多optional attributes that can be placed on MediaWiki galleries. Also, when images are placed in a category on MediaWiki, they are automatically displayed in a gallery on that category page (example)。但是,我找不到任何方法来结合这两个观察结果。我能否将这些可选图库属性中的任何一个应用于自动生成的类别图库,例如,将缩略图设为 180 像素宽而不是 120 像素宽?
您可以使用 $wgGalleryOptions
进行设置
只需将此行添加到 localsettings.php 文件的末尾
$wgGalleryOptions = array ( 'imageWidth' => 180 );
有很多optional attributes that can be placed on MediaWiki galleries. Also, when images are placed in a category on MediaWiki, they are automatically displayed in a gallery on that category page (example)。但是,我找不到任何方法来结合这两个观察结果。我能否将这些可选图库属性中的任何一个应用于自动生成的类别图库,例如,将缩略图设为 180 像素宽而不是 120 像素宽?
您可以使用 $wgGalleryOptions
进行设置只需将此行添加到 localsettings.php 文件的末尾
$wgGalleryOptions = array ( 'imageWidth' => 180 );