Difference between revisions of "Template:LiathRoundImage"

From PRIMUS Database
Jump to: navigation, search
m (added category to <noinclude> section)
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div style="float:left; width:{{{#ifeq: diameter | | 300 | diameter }}}px; height:{{{#if:{{{diameter}}}|{{{diameter}}}|300}}}px; border-radius:{{{#if:{{{diameter}}}|{{#expr:floor({{{diameter}}}/2)}}|150}}}px; overflow:hidden; border: {{{border|5}}}px solid {{{bordercolor|#000000}}}; padding: 0px; margin:15px; font-size:0px;">
+
<noinclude>[[Category:Templates]]<!--please do not delete or overwrite--></noinclude>
[[Image:{{{image|Primusdatabase300.jpg}}}|{{{#if:{{{diameter}}}|{{{diameter}}}|300}}}px|]]
+
<div style="float:{{{alignment|left}}}; width:{{{diameter|300}}}px; height:{{{diameter|300}}}px; border-radius:{{{diameter|300}}}px; overflow:hidden; border: {{{border|5}}}px solid {{{bordercolor|#000000}}}; background-color:{{{bordercolor|#000000}}}; padding: 0px; margin:5px; font-size:0px;">
 +
[[Image:{{{image|Primusdatabase300.jpg}}}|{{{diameter|300}}}px]]
 
</div>
 
</div>
 
<noinclude>
 
<noinclude>
Line 18: Line 19:
 
| border =
 
| border =
 
| bordercolor =
 
| bordercolor =
 +
| alignment =
 
|}}</nowiki>
 
|}}</nowiki>
 
</pre>
 
</pre>
  
 
+
[[Category:@Liath|{{FULLPAGENAME}}]]
 
</noinclude>
 
</noinclude>

Latest revision as of 03:04, 26 April 2014

Primusdatabase300.jpg



















image = Name of your image file (no File: or Image: required)
diameter = Full width/height of your div i.e width of circle (no px required). Default: diameter = 300
radius = Curve size for corners. For full circle make radius = half of diameter (no px required). Default: radius = 150
border = width of border. Set to 0 for no border (no px required). Default: border = 5
bordercolor = color of border. Use #nnnnnn notation of recognised HTML color codes. Default: bordercolor = #000000

Copy the following onto your page and fill out the appropriate information.

{{LiathRoundImage
| image =
| diameter =
| border =
| bordercolor =
| alignment =
|}}