Template:RoundImage: Difference between revisions
From Dead Suns Game
Jump to navigationJump to search
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><div style=" box-shadow: 5px 5px 10px 1px #bbf;display: block;height:{{{height|100px}}}; width:{{{width|100px}}};border-radius: 25px;padding:0;overflow:hidden">{{{pic|}}}</div></includeonly> | <includeonly><div style=" | ||
box-shadow: 5px 5px 10px 1px #bbf; | |||
display: block; | |||
{{#ifeq:{{{height|+}}}|{{{height|-}}}|height:{{{height|100px}}};|}} | |||
{{#ifeq:{{{width|+}}}|{{{width|-}}}|width:{{{width|100px}}};|}} | |||
border-radius: 25px; | |||
padding:0; | |||
overflow:hidden; | |||
{{{extra}}} | |||
">{{{pic|}}}</div></includeonly> | |||
<noinclude> | <noinclude> |
Latest revision as of 16:39, 24 October 2022
Put a rounded frame and trim overflow
Use
{{RoundImage |pic= |width= |height= } pic = The thing you want to round width & height = the size of the "box" that will enclose it.
Example
{{RoundImage|pic=[[File:Absalom.jpg]]|width=700px|height=400px}}