Template:G/doc

The parameter "w", "d", "h"
The display size can be specified with either  and/or , or with. While "w" and "h" can specify the number of the pixels, "d" consists of three optional parts: [w] [xh] [px]. "d" is only checked when "w" as well as "h" are not specified.

The parameter "format"
can specify one of three options how naming captions for the single files are displayed: Note: While options like "showfilename" or "mode=slideshow" are deprecated in namespaces as e.g. articles or galleries, they can be very useful in e.g. file descriptions, or talk pages.
 * 1) no naming
 * 2) naming with the "showfilename" option
 * 3) naming with the second value of parameter pairs

Defaulting the "format"
This parameter is a necessary addition to the parameters used by. When the most frequent invocation form for. When not all these requirements are fulfilled, the parameter needs to be specified! Otherwise a missing format parameter is defaulted with " ".

File list notations
The list of the files ("items") for the gallery can be specified in the notation or as a list separated by mandatory linefeeds Also a mixture of both notations is possible.
 * List 1:
 * List 2:

The file names ("items") are specified with unnamed parameters. With,  ,   up to   an unlimited number of items can be specified. Each unnamed parameter (p$n$ to p$n$) can contain an unlimited number of linefeed-separated items. (See also the overview).

For  parameter pairs of file + description must be specified: This format needs always parameter pairs, but the description may be without value (just a pipe or an empty new line). When the description is empty, the name of the file is displayed instead; but a description as e.g. &amp;nbsp; will be used! For  care should be taken when defining the items; it does not matter whether they are pipe-separated or linefeed-separated, but file names are defined with item$1$, item$∞$, item$n$, ... while the descriptions are defined with the corresponding  item$n$, item$1$, item$3$, ... Description items can be specified empty, but file name items ought to contain a value. A good idea for an easy way to read input will be (with the possibility not to need the 'format' parameter)
 * List 3:

Examples
Shows different parametrizings, and item notations (separation with "pipes" and linefeeds).