Template:Lgallery
This documentation is transcluded from Template:Lgallery/doc.
Displays a gallery of the languages of a multilingual file
Category:Main message boxesCategory:Lua-based templates
using just the conventional <gallery> tag,
but with shorter parametrizing and some useful defaults, like Template:G.
with a parameter to differentiate between multilingual SVG and Switch-controlled SVG.
Usage
{{Lgallery |1= }}
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | (list of) file(s) to be displayed, can be in different ⇒ notations | empty | suggested | |
fformat | one of four values to specify the ⇒ format: 0 or 1 or 2 or 3whether or how the displayed image(s) should be captioned | 1(or 2) | optional | |
mmode | gallery mode, can be specified with t or traditionaln 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 | |
ccaption | gallery caption (may be shifted to the left with e.g. some trailing   entities) | empty | optional | |
pperrow | pictures per row | empty | optional | |
sstyle | style attributes, e.g. s=float:right | empty | optional | |
aattr, class | class attributes: any wikimedia class; or the special code "c" ( a=c) for a global <center> tag | empty | optional | |
wwidths | width for the displays | empty | optional | |
hheights | height for the displays | empty | optional | |
ddisplay | display size; can specify widths and heights | empty | optional | |
ttext | text size; can specify a tag like e.g. "small" or "big" | empty | optional | |
sw | when the file is a Switch-controlled SVG | empty | optional | |
num | any text (as e.g. 15), the number of systemLanguage | empty | optional | |
0 | Layout: 0=+ to display the default language first; 0=- to suppress the headline. | empty | optional | |
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.
Category:Templates not requiring internationalization Category:Gallery templates#L Category:Autoreferencing templates#🌸- Examples
{{Lgallery|file=EulerDiagram.svg|w=176|de|en|es|fr|0=-}}(size can be set) generates:
- File:EulerDiagram.svgde «German»
- File:EulerDiagram.svgen «English»
- File:EulerDiagram.svges «Spanish»
- File:EulerDiagram.svgfr «French»
{{Lang gallery|file=EulerDiagram.svg|de|en|es|fr}}(no size setting, count not suppressed) generates:
{{Svg lang|file=EulerDiagram.svg|de|en|es|fr|0=-}}(no size setting) generates:



