Difference between revisions of "Help:Gallery subpages"

m
 
(9 intermediate revisions by 3 users not shown)
Say there is artwork on a page. ''Too much artwork''. What do you do, then? Make a gallery subpage, of course. Such gallery subpages generally come in several flavors: cover galleries, interior art galleries, character galleries, and location galleries. Cover galleries should be created if a book has more than one cover; character galleries -- if a character has more than four images (usually; if you're unsure, check with a [[Coppermind:Keepers|Keeper]]); location galleries -- if there's no good way to insert all images into the page. This page is here to teach you how to do all of those.
 
This page concerns only the general creation of gallery subpages; for a minutiae of galleries, see [[Help:Images#Galleries]]. Also, keepKeep 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).
 
== 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>FILENAME.EXT</nowiki></code>, meaning the filename (and extension) of the image 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. 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.
* <code>slideshow</code> Slideshow
 
;Widths
: Use <code>widths=</code> followed by a number and "px" to change the default width of all images in the gallery.
 
;Caption
: Use <code>caption=</code> followed by some text inside of quotation marks (<code>""</code>) to provide a caption for the gallery.
 
;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:
 
<pre class=mw-code>
 
<gallery widths=3000px heights=400px mode="packed">
FileName.extension | <center><small>Country</small></center> (Publisher)
</gallery>
 
 
<pre class=mw-code>
{{InteriorArtToC|SERIES}}
 
This is a gallery of interior art for ''[[BOOK]]''. For more information about each piece, including transcripts of the text (when needed), check each file's individual page.
 
</pre>
 
As with covers, if the book is a standalone, you can drop the {{t|InteriorArtToC}} template. If there are multiple art pieces of the same category (for example, multiple pages from [[Shallan's sketchbook]]), you can further divide the "Other artwork" into two galleries, with appropriate <code>caption</code> names. Endsheets should always go first, before the "Maps" gallery, divided into separate galleries for front and back. If there are multiple versions of an artwork file, pick one (for artwork like [[Navani's notebook]] pages, use the version with translation), and if there are multiple images on the Coppermind that are fragments of the same source picture, only include the original piece of art, and not its derivatives.
 
Some books have leatherbound re-releases, which will often include new artwork. In that case, divide this page into two sections, like this:
<pre class=mw-code>
== Official artwork ==
<gallery mode="packed" heights=150px200px caption="Official artwork">
FileName.extension | <center><small>by {{a|ARTIST}}</small></center> Description, SOURCE
</gallery>
 
== Portraits ==
<gallery mode="packed" heights=150px200px caption="Portraits">
FileName.extension | <center><small>by {{a|ARTIST}}</small></center> Description
</gallery>
 
</pre>
 
Note that the heights given here are recommended, but not obligatory. 200 or 250px are the recommended values, but anything between 150 and 350 goes (this being said, please stick to either 00s or 50s). For a gallery with fewer images, it's better to use larger heights; for a gallery with more images, it's better to tend towards the smaller. Likewise, you can set different galleries within a page to different heights, if needed. At the end of the day, you should make your decision based on what looks best to you.
 
When moving a characters' gallery from their page to a subpage, it's good to leave one image behind to illustrate the section (if there's enough space to fit it in, of course) - after all, this is about the characters' appearance, so some visualisation is nice. Feel free to pick your favourite for this.
 
=== Official artwork ===
 
== Location galleries ==
Location galleries are less commonly needed (people generally prefer to draw characters), but if there's enough images that you can't reasonably fit them on the page, it might be time for a gallery. Link it with the {{t|for}} template as you would for characters, on top of the section concerning the place's appearance or layout. The page itself will look like this:using;
 
<pre class=mw-code>
{{for|/Gallery|more images}}
</pre>
The subpage itself will look like this:
 
<pre class=mw-code>
Editors, Keepers
8,240

edits