Template:Framebox: Difference between revisions
Template page
More actions
Created page with "<templatestyles src="Framebox/styles.css" /> <includeonly><div class="framebox-container" style="{{{style|}}} width: {{{width|auto}}}; margin-left: {{{margin-left|auto}}}; border:1px solid #{{#switch:{{{1|}}} |blue=8898BF |green=97BF87 |yellow=AAAA66 |gold=777777 |orange=AA8833 |violet=7755AA |salmon=AA8866 |sand=AA9955 |averagegreen=88BB55 |darkblue=1144AA |red=AA8866 |scarlet=AAAAAA |#default=AAAAAA}}; background: {{{color|transparent}}}; color: {{#if:{{{color|}}}||va..." |
No edit summary |
||
| Line 1: | Line 1: | ||
<templatestyles src="Framebox/styles.css" /> | <templatestyles src="Template:Framebox/styles.css" /> | ||
<includeonly><div class="framebox-container" style="{{{style|}}} width: {{{width|auto}}}; margin-left: {{{margin-left|auto}}}; | <includeonly><div class="framebox-container" style="{{{style|}}} width: {{{width|auto}}}; margin-left: {{{margin-left|auto}}}; | ||
border:1px solid #{{#switch:{{{1|}}} |blue=8898BF |green=97BF87 |yellow=AAAA66 |gold=777777 |orange=AA8833 |violet=7755AA |salmon=AA8866 |sand=AA9955 |averagegreen=88BB55 |darkblue=1144AA |red=AA8866 |scarlet=AAAAAA |#default=AAAAAA}}; background: {{{color|transparent}}}; | border:1px solid #{{#switch:{{{1|}}} |blue=8898BF |green=97BF87 |yellow=AAAA66 |gold=777777 |orange=AA8833 |violet=7755AA |salmon=AA8866 |sand=AA9955 |averagegreen=88BB55 |darkblue=1144AA |red=AA8866 |scarlet=AAAAAA |#default=AAAAAA}}; background: {{{color|transparent}}}; | ||
Latest revision as of 05:36, 24 February 2025
| This template uses TemplateStyles: |
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}} |