Vorlage:Galerie: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 6: | Zeile 6: | ||
-->{{#vardefine:rw|{{{rw|100}}}}}<!-- | -->{{#vardefine:rw|{{{rw|100}}}}}<!-- | ||
-->{{#vardefine:rh|{{{rh|100}}}}}<!-- | -->{{#vardefine:rh|{{{rh|100}}}}}<!-- | ||
+ | -->{{#vardefine:repeat|{{{repeat|auto-fit}}}}}<!-- | ||
-->{{#vardefine:gap|{{{gap|10px}}}}}<!-- | -->{{#vardefine:gap|{{{gap|10px}}}}}<!-- | ||
-->{{#vardefine:gapY|{{{gapY|{{{gap|10px}}}}}}}}<!-- | -->{{#vardefine:gapY|{{{gapY|{{{gap|10px}}}}}}}}<!-- | ||
Zeile 16: | Zeile 17: | ||
#grid_{{#var:id}} { | #grid_{{#var:id}} { | ||
display: grid; | display: grid; | ||
− | grid-template-columns: repeat( | + | grid-template-columns: repeat({{#var:repeat}}, {{#var:rw}}px); |
column-gap: {{#var:gap}}; | column-gap: {{#var:gap}}; | ||
row-gap: {{#var:gapY}}; | row-gap: {{#var:gapY}}; | ||
Zeile 33: | Zeile 34: | ||
<div id=grid_{{#var:id}}>{{{1|}}}</div> | <div id=grid_{{#var:id}}>{{{1|}}}</div> | ||
<div class=caption>{{#var:caption}}</div> | <div class=caption>{{#var:caption}}</div> | ||
− | </div> | + | </div><!-- |
+ | |||
+ | Vorlage Ende | ||
+ | |||
+ | --></onlyinclude></div> | ||
+ | ---- | ||
+ | Parameter: | ||
+ | : Bilder: 1 | ||
+ | : Text: caption, ref | ||
+ | : grid: rw, rh [Einheit=px], gap, gapY [Einheit dazuschreiben], repeat [Zahl, default = auto-fit] | ||
+ | : Position: center[center=1], margin [left und right, mit ] |
Version vom 10. April 2020, 19:59 Uhr
Parameter:
- Bilder: 1
- Text: caption, ref
- grid: rw, rh [Einheit=px], gap, gapY [Einheit dazuschreiben], repeat [Zahl, default = auto-fit]
- Position: center[center=1], margin [left und right, mit ]