Difference between revisions of "Template:Frame"

From Peter
Jump to: navigation, search
m (Protected "Template:Frame" ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
Line 1: Line 1:
<onlyinclude><table cellpadding="0" border="0" style="border-collapse:collapse; background-color:{{{color|#E5E5E5}}}; margin: 4px;"><tr>
+
<includeonly>{| cellpadding="0" border="0" style="border-collapse:collapse; background-color:{{{color|#E5E5E5}}};"
<td>[[Image:Lt-grey.png]]</td><td></td><td>[[Image:Rt-grey.png]]</td>
+
|[[File:Lt-grey.png]]
</tr><tr>
+
|
<td></td><td>{{{1|}}}</td><td></td>
+
|[[File:Rt-grey.png]]
</tr><tr>
+
|-
<td>[[Image:Lb-grey.png]]</td><td></td><td>[[Image:Rb-grey.png]]</td>
+
|
</tr></table></onlyinclude>
+
|{{{1|}}}
 +
|
 +
|-
 +
|[[File:Lb-grey.png]]
 +
|
 +
|[[File:Rb-grey.png]]
 +
|}</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 frame used for thumbnails) around whatever you specify.
+
==Syntax==
 +
<nowiki>{{</nowiki> '''frame | text <nowiki><br> [[File:something.jpg|200px]]</nowiki>''' or '''<nowiki><youtube>WV_aWXeT</youtube></nowiki>''' | '''color=purple''' <nowiki>}}</nowiki>
 +
Be sure to remove whitespaces before saving the article.
 +
==Examples==
 +
<nowiki>{{frame|'''LOL WUT'''<br>[[File:Lolwutpear.jpg|400px]]|color=red}}</nowiki>
 +
produces:
 +
{{frame|<center><big>'''LOL WUT'''</big></center><br/>[[Image:Lolwutpear.jpg|400px]]|color=red}}
  
'''Syntax:'''
+
<nowiki>{{frame|'''George Bush hates black people'''<br><youtube>9pVTrnxCZaQ</youtube>|color=blue}}</nowiki>
<nowiki>{{frame|Whatever ever, or [[Image:something.jpg|200px]], or <youtube>WV_aWXeT</youtube>|color=#FF0000}}</nowiki>
+
produces:
 +
{{frame|<big>'''George Bush hates black people'''</big><br><youtube>9pVTrnxCZaQ</youtube>|color=blue}}
  
'''Examples:'''
+
[[Category:Templates]]
{{frame|<center><big>'''LOL WUT'''</big></center><br/>
+
</noinclude>
[[Image:Lolwutpear.jpg|400px]]|color=red}}
 
 
 
{{frame|<big>'''George Bush hates black people'''</big><br>
 
<youtube>9pVTrnxCZaQ</youtube>|color=blue}}
 

Revision as of 17:59, 5 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> | color=purple }}

Be sure to remove whitespaces before saving the article.

Examples

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

produces:

LOL WUT

400px
{{frame|'''George Bush hates black people'''<br><youtube>9pVTrnxCZaQ</youtube>|color=blue}}

produces:

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