Template:Floatimage
From Dragon Mania Legends (DML) Wiki
Template documentation |
---|
Note: portions of the template sample may not be visible without values provided. |
View or edit this template's documentation. (About template documentation) |
Example(s)
{{floatimage|[[File:Battle Points.png|200px]]|30}}
gives:
Used instead of "right" or "left" floated images, which don't adapt automatically to smaller screens, creating many different problems. Creates a responsive column that adjusts per device width, based on the width (percentage set), uses a min-width to images aren't sized too small (applies one of two globally defined CSS styles float-r, or float-l). The max with that should be used is 30(%).
Parameter | Description | Type | Status | |
---|---|---|---|---|
Image(s) (e.g., [[File:Name.png|200px]]) | 1 file | [[File:1.png|200px]]<br>[File:2.png|200px]] | String | required |
Width (number only, "%" is added automatically) | 2 width | Don't use numbers larger than 30
| Number | optional |
(Override, CSS Class) float | 3 float | no description
| String | optional |