Template:RoundImage: Difference between revisions
From Dead Suns Game
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<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><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> | ||
<noinclude> | <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}} | {{RoundImage|pic=[[File:Absalom.jpg]]|width=700px|height=400px}} | ||
</noinclude> | </noinclude> |
Revision as of 08:48, 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}}