Difference between revisions of "Template:GIF Gallery"
From Dungeon Defenders 2 Wiki
m (Test) |
m (Test) |
||
Line 1: | Line 1: | ||
<onlyinclude> | <onlyinclude> | ||
− | <div style="display: flex; flex: {{{width|15vw}}}; | + | <div style="display: flex; flex: {{{width|15vw}}}; column-gap: 10px; padding: 10px; text-align: center;"> |
[[{{{gif_image|File:Blank GIF.gif}}}|270px]] <br/> | [[{{{gif_image|File:Blank GIF.gif}}}|270px]] <br/> | ||
'''{{{description|Description?}}}''' | '''{{{description|Description?}}}''' |
Revision as of 10:43, 8 March 2025
Template Purpose
- To help with creating a gallery of gifs that can be responsive enough to various page sizes instead of getting pushed out of the page horizontally (or being squished if it's in mobile portrait view).
- In order for the responsiveness to fully work, the template must be wrapped in a div style element containing flex properties. (As shown below)
<div style="display: flex; flex-wrap: wrap; width:100%;">
{{GIF Gallery}}
</div>
|
Base Template Text Parameters
Parameter | Required | Description | Default |
---|---|---|---|
gif_image | ![]() |
The GIF image file. | https://wiki.dungeondefenders2.com/images/e/ec/Blank_GIF.gif |
description | ![]() |
Description of the presented GIF image. | Description? |
Examples
|
|
Result - Multiple Images with Div Style Wrapper |