Difference between revisions of "Template:Frame"

From Peter
Jump to: navigation, search
(that's actually better)
m
Line 3: Line 3:
  
 
==Syntax==
 
==Syntax==
  <nowiki>{{</nowiki> '''frame | text <nowiki><br/> [[File:something.jpg|200px]]</nowiki>''' or '''<nowiki><youtube>WV_aWXeT</youtube></nowiki>''' | '''border=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]]|border=red|background=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]]|border=red|background=red}}
+
{{frame|<center><big>'''LOL WUT'''</big></center><br>[[Image:Lolwutpear.jpg|400px]]|border=red|background=red}}
  
 
  <nowiki>{{frame|'''8-Bit Rick Roll'''<br><youtube>b1WWpKEPdT4</youtube>|border=blue|background=blue}}</nowiki>
 
  <nowiki>{{frame|'''8-Bit Rick Roll'''<br><youtube>b1WWpKEPdT4</youtube>|border=blue|background=blue}}</nowiki>
 
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}}
 +
 +
==See also==
 +
* {{Template|videoframe}} - for multiple [[YouTube]] videos in one box.
  
 
[[Category:Formatting Templates|{{PAGENAME}}]]
 
[[Category:Formatting Templates|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Revision as of 10:09, 27 August 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|'''8-Bit Rick Roll'''<br><youtube>b1WWpKEPdT4</youtube>|border=blue|background=blue}}

produces:

8-Bit Rick Roll
<youtube>b1WWpKEPdT4</youtube>

See also