User:Quibik/Montage

{{Documentation|content=This is a personal sandbox for developing a template that creates multiple-image montages using only ingredient images. That is: no need to create and upload new images such as the ones at Commons:Category:Montages.

The maximal size of the montage is 5×5 images (at the moment).

Parameters

 * align – align the montage left, right or center
 * border – CSS border value of each sub-image; defaults to "1px solid black"
 * caption – caption of the image
 * width – width of the whole montage (without a px suffix)


 * imagei_j – filename of the ij sub-image
 * ratioi_j – ratio of the width and height of the subimage; can be easily added by using
 * alti_j – alt text of the sub-image

Todo
(still under consideration)
 * scale – an alternative to width; renders the image at the default thumbnail size by using the "upright=" tag
 * direction – whether the images are grouped into rows or columns (defaults to horizontal)