Uses, Limitations, Parameters and Options
Template name:Image3ontop Makes a four column table and places the Table of Contents, (TOC), in it. Allows three separate images with captions to be placed to its right, level with the top of the TOC. Saves space and looks better than the large expanse of white space which usually exists to the right of the TOC.
Because the TOC text can vary and because the TOC has its own internal sizing algorithm, a widthleft option is provided to adjust the width of the leftmost cell, if necessary.
Note that the table can be placed anywhere on the page, so text could exist above it. To reduce any excessive gap between such text and the images, consider placing the template in-line with the end of the top text.
An example of its use is shown below, but because the TOC only appears once, th result cannot be shown.
I cannot figure out how to fully manage the mind of the TOC so the widthleft option was found necessary to unwrap TOC entries on occasion.
Images vary in size so it is important to select images of about the right shape before scaling. Scale the images to the same height if possible by specifying the height of each exactly and exaggerating the width to a considerable extent. In this way the software picks the least size to match the specification, which will be the one you want. Tiled Images contains further examples of such scaling.
Provision for three images is made, but if captions are not needed, use template:textontop with images scaled and in-line within the text space. In this way, a variable number of images could be included.
There are six parameters;
- Image 1 code, for example: [[Image:A_sunflower.jpg|1000x220px]]
- caption 1, any text or text template eg; Template: Caption
- image 2 code
- caption 2
- image 3 code
- caption 3
- width of the leftmost table cell, with the Table of Contents, (TOC).Default 200px.
- background color, default transparent
- all-round cell padding, default 5px
- perimeter border, default none