Vorlage:Galerie: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 5: | Zeile 5: | ||
-->{{#vardefine:id|{{#regex: {{{caption|xy}}}|/\w{4}/}}}}<!-- | -->{{#vardefine:id|{{#regex: {{{caption|xy}}}|/\w{4}/}}}}<!-- | ||
-->{{#vardefine:rw|{{{rw|100}}}}}<!-- | -->{{#vardefine:rw|{{{rw|100}}}}}<!-- | ||
− | -->{{#vardefine:rh|{{{rh| | + | -->{{#vardefine:rh|{{#if:{{{rh|}}} |
+ | | grid-auto-rows: {{{rh|}}}px;}}<!-- | ||
-->{{#vardefine:repeat|{{{repeat|auto-fit}}}}}<!-- | -->{{#vardefine:repeat|{{{repeat|auto-fit}}}}}<!-- | ||
-->{{#vardefine:gap|{{{gap|10px}}}}}<!-- | -->{{#vardefine:gap|{{{gap|10px}}}}}<!-- | ||
Zeile 18: | Zeile 19: | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat({{#var:repeat}}, {{#var:rw}}px); | grid-template-columns: repeat({{#var:repeat}}, {{#var:rw}}px); | ||
+ | {{#var:rh}} | ||
column-gap: {{#var:gap}}; | column-gap: {{#var:gap}}; | ||
row-gap: {{#var:gapY}}; | row-gap: {{#var:gapY}}; |
Version vom 10. April 2020, 21:10 Uhr
{{#vardefine:rh|
Parameter:
- Bilder: 1
- Text: caption
- grid: rw, rh [Einheit=px], gap, gapY [Einheit dazuschreiben], repeat [Zahl, default = auto-fit]
- Position: center[center=1], margin [left und right, mit Einheit]