Difference between revisions of "Template:Frame"

From Peter
Jump to: navigation, search
({{roundy}} margin: auto 0; to reduce need for <center> wrapper... testing...)
Line 1: Line 1:
<includeonly><table style="border:{{{borderstyle|.5em solid {{{border|#e5e5e5}}}}}}; {{roundy|{{{radius|.9em}}}}}; background-color:{{{background|#e5e5e5}}}; width:auto; margin:0 {{{css|0}}};"><tr><td>{{{1|}}}</td></tr></table></includeonly><noinclude>
+
<includeonly><table style="border:{{{borderstyle|.5em solid {{{border|#e5e5e5}}}}}}; {{roundy|{{{radius|.9em}}}}}; background-color:{{{background|#e5e5e5}}}; width:auto; margin:0 {{{margin|0}}};"><tr><td>{{{1|}}}</td></tr></table></includeonly><noinclude>
 
This template will put a rounded frame (like the one used for thumbnails) around whatever you specify.
 
This template will put a rounded frame (like the one used for thumbnails) around whatever you specify.
  
Line 8: Line 8:
  
 
==Examples==
 
==Examples==
 +
 
  <nowiki>{{frame|'''LOL WUT'''<br>[[File:Lolwutpear.jpg|400px]]|border=red|background=red}}</nowiki>
 
  <nowiki>{{frame|'''LOL WUT'''<br>[[File:Lolwutpear.jpg|400px]]|border=red|background=red}}</nowiki>
 
produces:
 
produces:
Line 15: Line 16:
 
produces:
 
produces:
 
{{frame|<big>'''8-Bit Rick Roll'''</big><br><youtube>b1WWpKEPdT4</youtube>|border=blue|background=blue}}
 
{{frame|<big>'''8-Bit Rick Roll'''</big><br><youtube>b1WWpKEPdT4</youtube>|border=blue|background=blue}}
 +
 +
<nowiki>{{frame|[[Image:Lolwutpear.jpg|300px]]|border=red|background=red|margin=auto}}</nowiki>
 +
produces:
 +
{{frame|[[Image:Lolwutpear.jpg|300px]]|border=red|background=red|margin=auto}}
  
 
==See also==
 
==See also==

Revision as of 01:05, 11 December 2013

This template will put a rounded frame (like the one used for thumbnails) around whatever you specify.

Syntax

{{ frame | text <br> [[File:something.jpg|200px]] or <youtube>WV_aWXeT</youtube> | border=purple | background=purple }}

Be sure to remove whitespaces before saving the article.

Examples

{{frame|'''LOL WUT'''<br>[[File:Lolwutpear.jpg|400px]]|border=red|background=red}}

produces:

LOL WUT

400px
{{frame|'''8-Bit Rick Roll'''<br><youtube>b1WWpKEPdT4</youtube>|border=blue|background=blue}}

produces:

8-Bit Rick Roll
<youtube>b1WWpKEPdT4</youtube>
{{frame|[[Image:Lolwutpear.jpg|300px]]|border=red|background=red|margin=auto}}

produces:

300px

See also