Difference between revisions of "Help:Images"

→‎Galleries: Adding mode parameters and how to center gallery as I keep forgetting
m (→‎Using Files: +Link param)
(→‎Galleries: Adding mode parameters and how to center gallery as I keep forgetting)
Use galleries to add a series of related images.
 
To add a gallery, first use <code><nowiki><gallery></nowiki></code>. Then, ''on a new line'', enter <code><nowiki>File:FILENAME.EXT</nowiki></code>, where <code>FILENAME.EXT</code> is the filename (and extension) of the file you wish to add to the gallery. Repeat this for all images you wish to add, each on a new line. Finally, use <code><nowiki></gallery></nowiki></code> to complete the gallery. You may add vertical bars (<code>|</code>) after the individual file names followed by some text, to caption each image. If you wish to center your overall gallery, enter <code><nowiki><center></nowiki></code> before <code><nowiki><gallery></nowiki></code> and <code><nowiki></center></nowiki></code> after <code><nowiki></gallery></nowiki></code>.
 
You can use a few different parameters in the first <code><nowiki><gallery></nowiki></code> tag (separated by spaces) to change some aspects of the gallery. Some basic parameters are:
 
; Mode
: Use <code>mode=</code> to create an overall aesthetic for the gallery using one of the below paramenters.
* <code>traditional</code> Original gallery type used by MediaWiki.
* <code>nolines</code> Similar to traditional. No borders, less padding, captions centered under images.
* <code>packed</code> All images aligned by having same height, justified, captions centered under images The rows in this responsive mode organize themselves according to the width of the screen.
* <code>packed-overlay</code> Like packed, but caption overlays the image, in a translucent box.
* <code>packed-hover</code> Like packed-overlay, but caption is only visible on hover.
* <code>slideshow</code> Slideshow
 
;Widths
Editors, Keepers, Synod
3,209

edits