Template:Lgallery
Jump to navigation
Jump to search
This documentation is transcluded from Template:Lgallery/doc.
Displays a gallery of the languages of a multilingual file
Uses Lua: |
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
Parameter | Description | Default | Status | |
---|---|---|---|---|
1 | (list of) file(s) to be displayed, can be in different ⇒ notations | empty | suggested | |
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 | 1(or 2) | optional | |
m mode | 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 | |
c caption | gallery caption (may be shifted to the left with e.g. some trailing   entities) | empty | optional | |
p perrow | pictures per row | empty | optional | |
s style | style attributes, e.g. s=float:right | empty | optional | |
a attr, class | class attributes: any wikimedia class; or the special code "c" ( a=c ) for a global <center> tag | empty | optional | |
w widths | width for the displays | empty | optional | |
h heights | height for the displays | empty | optional | |
d display | display size; can specify widths and heights | empty | optional | |
t text | 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.
- Examples
{{Lgallery|file=EulerDiagram.svg|w=176|de|en|es|fr|0=-}}
(size can be set) generates:
-
EulerDiagram.svg de «German»
-
EulerDiagram.svg en «English»
-
EulerDiagram.svg es «Spanish»
-
EulerDiagram.svg fr «French»
{{Lang gallery|file=EulerDiagram.svg|de|en|es|fr}}
(no size setting, count not suppressed) generates:
File:EulerDiagram.svg has 4 embedded translations.
{{Svg lang|file=EulerDiagram.svg|de|en|es|fr|0=-}}
(no size setting) generates: