Difference between revisions of "Help:Gallery subpages"

m
no edit summary
m
Keep in mind, those aren't be-all and end-all rules. The following outlines how things should generally be done, but if you feel like something is weird, or have an odd edge case, don't hesitate to bring it up, or modify the subpage (within reason).
 
== Component'sComponents of MediaWiki Gallery Coding ==
OnTo create an articleactual subpagegallery, firstwhether on a page or a subpage, 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:
;Images per row
: Use <code>perrow=</code> followed by a number to set the number of images that will appear per row. The number of images per row will adjust dynamically with the window size if this is omitted.
 
== Cover galleries ==
A book's cover gallery should be linked on the its main page, near the bottom (there is no set place for them, but they will generally be above the "See also" and "Statistical analysis" sections, but underneath "Summary"). Link it like this:
Editors, Keepers
8,241

edits