User:Manuela/colored box: Difference between revisions
m what links here |
m more flexibility for background and header color |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<onlyinclude> | <includeonly><onlyinclude> | ||
<div style="border: 1px solid #aaa; | <div style="border: 1px solid #aaa; | ||
padding: 0 0.5em 0.5em; | padding: 0 0.5em 0.5em; | ||
| Line 8: | Line 8: | ||
| l|li|lil|lila|lilac = #faf5ff; | | l|li|lil|lila|lilac = #faf5ff; | ||
| p|pi|pin|pink = #fff5fa; | | p|pi|pin|pink = #fff5fa; | ||
| #fafafa; | | {{{backgroundcolor|#fafafa}}}; | ||
}}"> | }}"> | ||
<div style="text-align: left; | <div style="text-align: left; | ||
| Line 22: | Line 22: | ||
| l|li|lil|lila|lilac = #ddcef2; | | l|li|lil|lila|lilac = #ddcef2; | ||
| p|pi|pin|pink = #f2cedd; | | p|pi|pin|pink = #f2cedd; | ||
| #eee; | | {{{headercolor|#eee}}}; | ||
}}"">{{{header}}}</div> | }}"">{{{header}}}</div> | ||
{{{body}}} | {{{body}}} | ||
</div></onlyinclude> | </div></onlyinclude></includeonly> | ||
{{User:Manuela/colored box/doc}} | |||
< | |||
{{ | |||
Latest revision as of 16:27, 29 January 2026
Raw Content
<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
- Talk:Maria durch ein Dornwald ging (← links | edit)
- Talk:HTML color names table (← links | edit)
- Talk:Mozart’s Musikalisches Würfelspiel (← links | edit)
- Talk:Center text below hairpin dynamics (← links | edit)
- Talk:Moving the ends of hairpins (← links | edit)
- Talk:PostScript lines (← links | edit)
- Talk:Volta text markup using repeatCommands (← links | edit)
- Talk:Ripped, torn staff-lines (← links | edit)
- User:Manuela (transclusion) (← links | edit)
- User talk:Jean Abou Samra (← links | edit)
- User talk:Lemzwerg (← links | edit)
- User talk:Manuela (← links | edit)
- User talk:Eble (← links | edit)
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
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
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
This is an example of a colored box with background and header color
Subpages