Template:RoundImage: Difference between revisions
From Dead Suns Game
Jump to navigationJump to search
No edit summary |
No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<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> | |||
= Put a rounded frame and trim overflow = | |||
== Use == | |||
<pre> | |||
{{RoundImage | |||
|pic= | |||
|width= | |||
|height= | |||
} | |||
pic = The thing you want to round | |||
width & height = the size of the "box" that will enclose it. | |||
</pre> | |||
== Example == | |||
<pre> | |||
{{RoundImage|pic=[[File:Absalom.jpg]]|width=700px|height=400px}} | |||
</pre> | |||
{{RoundImage|pic=[[File:Absalom.jpg]]|width=700px|height=400px}} | |||
</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}}