3,554
edits
mNo edit summary |
mNo edit summary |
||
Line 4: | Line 4: | ||
To use this template, begin with this code, you can delete and parameters you do not use: | To use this template, begin with this code, you can delete and parameters you do not use: | ||
<div style="float:left;"><pre> | <div style="float:left;"><pre> | ||
{{Gallery|size=|pad=|perrow=|title=}} | {{Gallery|size=|pad=|perrow=|title=|margin=|align=}} | ||
{{Gallery/Box|file=|link=|margin=|tip=|caption=}} | {{Gallery/Box|file=|link=|margin=|align=|tip=|caption=}} | ||
{{Gallery/Bottom}} | {{Gallery/Bottom}} | ||
</pre></div><br style="clear:both"> | </pre></div><br style="clear:both"> | ||
Use the parameter ''size'' to set the size to have each image as a pure number, the default value is 120. Use the parameter ''pad'' to set the amount of padding to have,as a pure number, the default value is 15. Use ''perrow'' to set the number of images per row, by default the number automatically fits the screen. Use '''title''' to make a title for the gallery. | Use the parameter ''size'' to set the size to have each image as a pure number, the default value is 120. Use the parameter ''pad'' to set the amount of padding to have,as a pure number, the default value is 15. Use ''perrow'' to set the number of images per row, by default the number automatically fits the screen. Use '''title''' to make a title for the gallery. Use ''perrow'' to set the default reduction in the top and bottom margins for all images. Use ''align'' to set the default alignment of all captions. | ||
Use a '''Gallery/Box''' for each image. All parameters other than file are optional and can be entered in any order. | Use a '''Gallery/Box''' for each image. All parameters other than file are optional and can be entered in any order. | ||
Line 14: | Line 14: | ||
*'''''link''''' — A page to link the image to. Defaults to the image's page. | *'''''link''''' — A page to link the image to. Defaults to the image's page. | ||
*'''''margin''''' — Use this reduce the margin above and below the image by the specified number of pixels. | *'''''margin''''' — Use this reduce the margin above and below the image by the specified number of pixels. | ||
*'''''align''''' — Use this change the alignment of the text caption of the image. | |||
*'''''tip''''' — A tooltip to display for the image, defaults to the page linked to. | *'''''tip''''' — A tooltip to display for the image, defaults to the page linked to. | ||
*'''''caption''''' — A traditional caption to display below the image. | *'''''caption''''' — A traditional caption to display below the image. |