|
|
| Line 1: |
Line 1: |
| <includeonly><table style="border:{{{borderstyle|.5em solid {{{border|#e5e5e5}}}}}}; {{roundy|{{{radius|.9em}}}}}; background-color:{{{background|#e5e5e5}}}; width:auto; margin:0 {{{margin|0}}}"><tr><td style="{{#if:{{{color|}}}|color:{{{color}}};}}">{{{1|}}}</td></tr></table></includeonly><noinclude>
| |
|
| |
|
| ==Usage==
| |
| This template will put a rounded frame (like the one used for thumbnails) around whatever you specify.
| |
|
| |
| <pre>{{frame|content|border|background|margin}}</pre>
| |
|
| |
| {| class="wikitable"
| |
| |content
| |
| |The content to go inside the frame. This may be text, images or videos. See below for examples.
| |
| |-
| |
| |border
| |
| |Border color. The default is border=purple.
| |
| |-
| |
| |background
| |
| |Background color. The default is background=#e5e5e5.
| |
| |-
| |
| |color
| |
| |Text color. Don't specify to leave as is.
| |
| |-
| |
| |margin
| |
| |The frame's horizontal margin. To center the frame without the <nowiki><center></nowiki> tag use margin=auto. The default is margin=0.
| |
| |}
| |
|
| |
| === Examples ===
| |
|
| |
| ;Simple
| |
|
| |
| <pre>{{frame|[[File:Lolwutpear.jpg|200px]]}}</pre>
| |
|
| |
| ;With a title
| |
|
| |
| <pre>{{frame|'''LOL WUT'''<br>[[File:Lolwutpear.jpg|200px]]}}</pre>
| |
|
| |
| ;Specify border and background
| |
|
| |
| <pre>{{frame|[[File:Lolwutpear.jpg|200px]]|border=red|background=black}}</pre>
| |
|
| |
| ;Specify margin to center
| |
|
| |
| <pre>{{frame|[[File:Lolwutpear.jpg|200px]]|margin=auto}}</pre>
| |
|
| |
| ;Specify a color
| |
|
| |
| <pre>{{frame|<big>THIS IS COLORED TEXT</big>|color=red}}</pre>
| |
|
| |
| ;YouTube video
| |
|
| |
| <pre>{{frame|<big>'''8-Bit Rick Roll'''</big><br><youtube>b1WWpKEPdT4</youtube>}}</pre>
| |
|
| |
| == Output ==
| |
|
| |
| {| class="wikitable" width="100%"
| |
| |-
| |
| !Simple
| |
| !With a title
| |
| !Specify border and background
| |
| |-
| |
| |{{frame|[[File:Lolwutpear.jpg|200px]]}}
| |
| |{{frame|'''LOL WUT'''<br>[[File:Lolwutpear.jpg|200px]]}}
| |
| |{{frame|[[File:Lolwutpear.jpg|200px]]|border=red|background=black}}
| |
| |-
| |
| ! colspan="2" | Specify margin to center
| |
| ! Color text
| |
| |-
| |
| | colspan="2" | {{frame|[[File:Lolwutpear.jpg|200px]]|margin=auto}}
| |
| | {{frame|<big>THIS IS COLORED TEXT</big>|color=red}}
| |
| |-
| |
| ! colspan="3" | YouTube video
| |
| |-
| |
| | colspan="3" | {{frame|<big>'''8-Bit Rick Roll'''</big><br><youtube>b1WWpKEPdT4</youtube>}}
| |
| |}
| |
|
| |
| ==See also==
| |
|
| |
| * {{Template|videoframe}} - for multiple [[YouTube]] videos in one box.
| |
|
| |
| [[Category:Formatting Templates|{{PAGENAME}}]]
| |
| </noinclude>
| |