Jump to content

Template:Framebox/doc

From Wikipedia, the free encyclopedia

This template creates a framework with colored edge. The first parameter (optional) can be: blue, green, yellow, gold, orange, purple, salmon, sand, average green, dark blue, red, scarlet. The default color is gray. {{Frame-footer}} must be used to close this template.


{{framebox|blue}}
...
{{frame-footer}}
{{framebox|green}}
...
{{frame-footer}}
{{framebox|yellow}}
...
{{frame-footer}}
{{framebox|gold}}
...
{{frame-footer}}
{{framebox|orange}}
...
{{frame-footer}}
{{framebox|violet}}
...
{{frame-footer}}
{{framebox|salmon}}
...
{{frame-footer}}
{{framebox|sand}}
...
{{frame-footer}}
{{framebox|averagegreen}}
...
{{frame-footer}}
 
{{framebox|darkblue}}
...
{{frame-footer}}
{{framebox|red}}
...
{{frame-footer}}
{{framebox|scarlet}}
...
{{frame-footer}}
{{framebox|gray}}
...
{{frame-footer}}
{{framebox}}
...
{{frame-footer}}

The container is by default transparent. If you want to make it with color, simply add color=color. For example :

{{framebox|violet|color=lightblue}}
...
{{frame-footer}}
{{framebox|darkblue|color=yellow}}
...
{{frame-footer}}
{{framebox|red|color=#CCFFFF}}
...
{{frame-footer}}

The width of the table is by default 100%. You can adjust that by adding width=numberpx or width=number%. For example :

{{framebox|violet|color=lightblue|width=400px}}
...
{{frame-footer}}
{{framebox|darkblue|color=yellow|width=50%}}
...
{{frame-footer}}