Difference between revisions of "Template:Frame"

From Peter
Jump to: navigation, search
(Testing.)
(Fixing.)
Line 1: Line 1:
<includeonly><table style="border:.5em solid {{{color|#e5e5e5}}}; border-radius:{{{radius|.9em}}}; -o-border-radius:{{{radius|.9em}}}; -icab-border-radius:{{{radius|.9em}}}; -khtml-border-radius:{{{radius|.9em}}}; -moz-border-radius:{{{radius|.9em}}}; -webkit-border-radius:{{{radius|.9em}}}; background-color:{{#ifexist:{{{background}}}|{{{background}}}|{{{color|#e5e5e5}}}}}; width:auto;"><tr><td>{{{1|}}}</td></tr></table></includeonly><noinclude>
+
<includeonly><table style="border:.5em solid {{{border|#e5e5e5}}}; border-radius:{{{radius|.9em}}}; -o-border-radius:{{{radius|.9em}}}; -icab-border-radius:{{{radius|.9em}}}; -khtml-border-radius:{{{radius|.9em}}}; -moz-border-radius:{{{radius|.9em}}}; -webkit-border-radius:{{{radius|.9em}}}; background-color:{{{background|#e5e5e5}}}; width:auto;"><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.
  
 
==Syntax==
 
==Syntax==
  <nowiki>{{</nowiki> '''frame | text <nowiki><br/> [[File:something.jpg|200px]]</nowiki>''' or '''<nowiki><youtube>WV_aWXeT</youtube></nowiki>''' | '''color=purple''' | '''background=purple''' <nowiki>}}</nowiki>
+
  <nowiki>{{</nowiki> '''frame | text <nowiki><br/> [[File:something.jpg|200px]]</nowiki>''' or '''<nowiki><youtube>WV_aWXeT</youtube></nowiki>''' | '''border=purple''' | '''background=purple''' <nowiki>}}</nowiki>
  
 
Be sure to remove whitespaces before saving the article.
 
Be sure to remove whitespaces before saving the article.
  
 
==Examples==
 
==Examples==
  <nowiki>{{frame|'''LOL WUT'''<br/>[[File:Lolwutpear.jpg|400px]]|color=red}}</nowiki>
+
  <nowiki>{{frame|'''LOL WUT'''<br/>[[File:Lolwutpear.jpg|400px]]|border=red|background=red}}</nowiki>
 
produces:
 
produces:
{{frame|<center><big>'''LOL WUT'''</big></center><br/>[[Image:Lolwutpear.jpg|400px]]|color=red}}
+
{{frame|<center><big>'''LOL WUT'''</big></center><br/>[[Image:Lolwutpear.jpg|400px]]|border=red|background=red}}
  
  <nowiki>{{frame|'''George Bush hates black people'''<br><youtube>9pVTrnxCZaQ</youtube>|color=blue}}</nowiki>
+
  <nowiki>{{frame|'''George Bush hates black people'''<br><youtube>9pVTrnxCZaQ</youtube>|border=blue|background=blue}}</nowiki>
 
produces:
 
produces:
{{frame|<big>'''George Bush hates black people'''</big><br><youtube>9pVTrnxCZaQ</youtube>|color=blue}}
+
{{frame|<big>'''George Bush hates black people'''</big><br><youtube>9pVTrnxCZaQ</youtube>|border=blue|background=blue}}
  
 
[[Category:Formatting Templates|{{PAGENAME}}]]
 
[[Category:Formatting Templates|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Revision as of 13:41, 29 May 2011

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|'''George Bush hates black people'''<br><youtube>9pVTrnxCZaQ</youtube>|border=blue|background=blue}}

produces:

George Bush hates black people
<youtube>9pVTrnxCZaQ</youtube>