Editors, Keepers
8,241
edits
m |
|||
== Components of MediaWiki Gallery Coding ==
To create an actual gallery, whether on a page or a subpage, use <code><nowiki><gallery></nowiki></code>. Then, ''on a new line'', enter <code><nowiki>
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. For galleries on the main pages, do not use this parameter.
* <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. This is the mode we use for gallery subpages.
* <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.
|