User:Manuela/colored box


Raw Content

<includeonly><onlyinclude>

<div style="border: 1px solid #aaa; padding: 0 0.5em 0.5em; margin-top: 4px; background-color: {{#switch: {{{shade}}} | b|bl|blu|blue = #f5faff; | gr|gre|gree|green|g= #f5fffa; | l|li|lil|lila|lilac = #faf5ff; | p|pi|pin|pink = #fff5fa; | {{{backgroundcolor|#fafafa}}}; }}"> <div style="text-align: left; border: 1px solid #aaa; padding: 0.2em 0.4em; line-height: 1.375; margin: 0.5em 0; font-size: 120%; font-weight: bold; font-family: inherit; background-color: {{#switch: {{{shade}}} | b|bl|blu|blue = #cedff2; | gr|gre|gree|green|g= #a3bfb1; | l|li|lil|lila|lilac = #ddcef2; | p|pi|pin|pink = #f2cedd; | {{{headercolor|#eee}}}; }}"">{{{header}}}</div> {{{body}}} </div></onlyinclude></includeonly>

{{User:Manuela/colored box/doc}}

Usage of this template

Example of usage

Code

{{User:Manuela/colored box|header=Header of colored box example|body=This is an example of a colored box with no shade}}

Result

Header of colored box example

This is an example of a colored box with no shade

Code

{{User:Manuela/colored box|header=Header of colored box example|body=This is an example of a colored box with shade=p|shade=p}}

Result

Header of colored box example

This is an example of a colored box with shade=p

Code

{{User:Manuela/colored box|header=Header of colored box example|body=This is an example of a colored box with background and header color|backgroundcolor=#ff80ff|headercolor=#ff00ff}}

Result

Header of colored box example

This is an example of a colored box with background and header color

Subpages