Jump to content

User:Manuela/colored box: Difference between revisions

From LilyPond wiki
Manuela (talk | contribs)
m what links here
Manuela (talk | contribs)
m template documentation added
Line 26: Line 26:
{{{body}}}
{{{body}}}
</div></onlyinclude>
</div></onlyinclude>
== Usage of this page==
{{User:Manuela/colored box/doc}}
<div>
{{Special:WhatLinksHere/{{FULLPAGENAME}}|hideredirs=1&hidelinks=1}}
</div>

Revision as of 18:58, 22 January 2026

{{{header}}}

{{{body}}}

Raw Content

<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; | #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; | #eee; }}"">{{{header}}}</div> {{{body}}} </div></onlyinclude>

{{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