Template:RoundImage: Difference between revisions

From Dead Suns Game
Jump to navigationJump to search
No edit summary
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
__NOEDITSECTION__ __NOTOC__<div style="display: block; height: 200px; width: 200px;border-radius: 25px;padding:0p; background-image: url([[File:Amech-5.png]])
<includeonly><div style="
">{{{pic}}}</div>
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}}
Absalom.jpg