Jump to content

Příručka:$wgGalleryOptions

From mediawiki.org
This page is a translated version of the page Manual:$wgGalleryOptions and the translation is 100% complete.
Obrázky: $wgGalleryOptions
Výchozí nastavení pro značku ‎<gallery>.
Zavedeno od verze:1.17.0 (r63707)
Odstraněno od verze:stále se používá
Povolené hodnoty:(asociativní pole)
Výchozí hodnota:viz níže

Podrobnosti

Výchozí nastavení pro značku ‎<gallery> a galerie v kategoriích.

Možné klíče a popis každého nastavení naleznete v části "výchozí hodnota" níže.

Některá z těchto nastavení odpovídají, matoucím způsobem, atributům, které lze zadat pro samotný tag ‎<gallery>. Informace o jednotlivých atributech najdete v Nápovědě:Obrázky#Volitelné atributy galerie.

Tento klíč na $wgGalleryOptions... ...nastaví výchozí hodnotu pro tento atribut tagu ‎<gallery>
imagesPerRow perrow=
imageWidth widths=
imageHeight heights=
mode mode= (Novinka v MediaWiki 1.22 – další informace viz Nápověda:Obrázky#Parametr režimu)

Výchozí hodnota

Verze MediaWiki:
1.30
$wgGalleryOptions = [
];
Verze MediaWiki:
1.29
$wgGalleryOptions = [
	// Výchozí počet obrázků na řádek v galerii. 0: Přizpůsobit velikosti obrazovky
	'imagesPerRow' => 0,
	// Šířka buněk obsahujících obrázky v galeriích (v "px")
	'imageWidth' => 120,
	// Výška buněk obsahujících obrázky v galeriích (v "px")
	'imageHeight' => 120,
	// Length to truncate filename to in caption when using "showfilename".
	// A value of 'true' will truncate the filename to one line using CSS
	// and will be the behaviour after deprecation.
	// @deprecated since 1.28
	'captionLength' => true,
	// Show the filesize in bytes in categories
	'showBytes' => true,
	'mode' => 'traditional',
];
Verze MediaWiki:
1.28
$wgGalleryOptions = [
	'imagesPerRow' => 0, // Default number of images per-row in the gallery. 0 -> Adapt to screensize
	'imageWidth' => 120, // Width of the cells containing images in galleries (in "px")
	'imageHeight' => 120, // Height of the cells containing images in galleries (in "px")
	'captionLength' => true, // Deprecated @since 1.28
	                         // Length to truncate filename to in caption when using "showfilename".
	                         // A value of 'true' will truncate the filename to one line using CSS
	                         // and will be the behaviour after deprecation.
	'showBytes' => true, // Show the filesize in bytes in categories
	'mode' => 'traditional',
];
Verze MediaWiki:
1.22 – 1.27
$wgGalleryOptions = [
	'imagesPerRow' => 0, // Default number of images per-row in the gallery. 0 -> Adapt to screensize
	'imageWidth' => 120, // Width of the cells containing images in galleries (in "px")
	'imageHeight' => 120, // Height of the cells containing images in galleries (in "px")
	'captionLength' => 25, // Length of caption to truncate (in characters)
	'showBytes' => true, // Show the filesize in bytes in categories
	'mode' => 'traditional',
];
Verze MediaWiki:
1.18 – 1.21
$wgGalleryOptions = array(
	'imagesPerRow' => 0, // Default number of images per-row in the gallery. 0 -> Adapt to screensize
	'imageWidth' => 120, // Width of the cells containing images in galleries (in "px")
	'imageHeight' => 120, // Height of the cells containing images in galleries (in "px")
	'captionLength' => 25, // Length of caption to truncate (in characters)
	'showBytes' => true, // Show the filesize in bytes in categories
);
Verze MediaWiki:
1.17
$wgGalleryOptions = array (
	'imagesPerRow' => 0, // Default number of images per-row in the gallery. 0 -> Adapt to screensize
	'imageWidth' => 120, // Width of the cells containing images in galleries (in "px")
	'imageHeight' => 120, // Height of the cells containing images in galleries (in "px")
	'captionLength' => 20, // Length of caption to truncate (in characters)
	'showBytes' => true, // Show the filesize in bytes in categories
);