Difference between revisions of "Template:GIF Gallery"
From Dungeon Defenders 2 Wiki
m (Final Adjustments) |
m |
||
| Line 1: | Line 1: | ||
<onlyinclude> | <onlyinclude> | ||
| − | <div style="display: flex; flex: width; padding-left: | + | <div style="display: flex; flex: width; padding-left: 50px; padding-right: 40px; padding-top: 10px; text-align: center;"> |
[[{{{gif_image|File:Blank GIF.gif}}}|270px]] <br/> | [[{{{gif_image|File:Blank GIF.gif}}}|270px]] <br/> | ||
'''{{{description|Description?}}}''' | '''{{{description|Description?}}}''' | ||
Latest revision as of 10:41, 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 |




