Template:Lgallery/doc

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Displays a gallery of the languages of a multilingual file

using just the conventional <gallery> tag,
but with shorter parametrizing and some useful defaults, like Template:G.


with a parameter to differentiate between multilingual and Switch-controlled SVG


Usage

{{Lgallery |1= }}

Template parameters

ParameterDescriptionDefaultStatus
1(list of) file(s) to be displayed, can be in different ⇒ notationsemptysuggested
f
format
one of four values to specify the ⇒ format: 0 or 1 or 2 or 3
whether or how the displayed image(s) should be captioned
10(or 2)optional
m
mode
gallery mode, can be specified with
t or traditional
n or nolines,
p or packed,
h or packed-hover,
o or packed-overlay,
s or slideshow
when parameter format is not specified, nolines is defaulted,
but that defaulting can be avoided with an empty mode parameter m=



empty




nolines
optional
c
caption
gallery caption (may be shifted to the left with e.g. some trailing &emsp; entities)emptyoptional
p
perrow
pictures per rowemptyoptional
s
style
style attributes, e.g. s=float:rightemptyoptional
a
attr, class
class attributes: any wikimedia class;
or the special code "c" (a=c) for a global <center> tag
emptyoptional
w
widths
width for the displaysemptyoptional
h
heights
height for the displaysemptyoptional
d
display
display size; can specify widths and heightsemptyoptional
t
text
text size; can specify a tag like e.g. "small" or "big"emptyoptional
swwhen the file is a Switch-controlled SVGemptyoptional
numany text (as e.g. 15), the number of systemLanguageemptyoptional
0Layout: 0=+ to display the default language first; 0=- to suppress the headline.emptyoptional

Additional information

The template is intended to be used in the following namespaces: the File namespace

The template is intended to be used by the following user groups: all users

See also

Language galleries of multi-language files:

Localization

This template is not intended to be localized.