This site is the archived OWASP Foundation Wiki and is no longer accepting Account Requests.
To view the new OWASP Foundation website, please visit https://owasp.org
Difference between revisions of "Template:ColoredBackground"
From OWASP
(renamed parameters to default html-style attributes) |
m (added an example with white big text) |
||
Line 9: | Line 9: | ||
* <nowiki>{{ColoredBackground|text=simple example with a green border|border=3px solid|border-color=#207F4A}}</nowiki><br>{{ColoredBackground|text=simple example with a green border|border=3px solid|border-color=#207F4A}}<br> | * <nowiki>{{ColoredBackground|text=simple example with a green border|border=3px solid|border-color=#207F4A}}</nowiki><br>{{ColoredBackground|text=simple example with a green border|border=3px solid|border-color=#207F4A}}<br> | ||
* <nowiki>{{ColoredBackground|text=example with green background and green border|background-color=#55DF8E|border=3px solid|border-color=#207F4A}}</nowiki><br>{{ColoredBackground|text=example with green background and green border|background-color=#55DF8E|border=3px solid|border-color=#207F4A}}<br> | * <nowiki>{{ColoredBackground|text=example with green background and green border|background-color=#55DF8E|border=3px solid|border-color=#207F4A}}</nowiki><br>{{ColoredBackground|text=example with green background and green border|background-color=#55DF8E|border=3px solid|border-color=#207F4A}}<br> | ||
+ | * <nowiki>{{ColoredBackground|text=example with green background and green border and white big text|color=white|font-size=180%|background-color=#55DF8E|border=3px solid|border-color=#207F4A}}</nowiki><br>{{ColoredBackground|text=example with green background and green border and white big text|color=white|font-size=180%|background-color=#55DF8E|border=3px solid|border-color=#207F4A}}<br> | ||
</noinclude><includeonly><div style=" | </noinclude><includeonly><div style=" | ||
background-color: {{#if: {{{background-color|}}} | {{{background-color}}} | yellow}}; <!---- Top10:2013=#55DF8E, Top10:2010=#558EDF ---> | background-color: {{#if: {{{background-color|}}} | {{{background-color}}} | yellow}}; <!---- Top10:2013=#55DF8E, Top10:2010=#558EDF ---> | ||
color: {{#if: {{{color|}}} | {{{color}}} | black}}; | color: {{#if: {{{color|}}} | {{{color}}} | black}}; | ||
font-size: {{#if: {{{font-size|}}} | {{{font-size}}} | 100%}}; | font-size: {{#if: {{{font-size|}}} | {{{font-size}}} | 100%}}; | ||
− | padding: {{#if: {{{padding|}}} | {{{padding}}} | none }}; <!---- Top10: 6px ---> | + | padding: {{#if: {{{padding|}}} | {{{padding}}} | none }}; <!---- Top10: 6px ---> |
− | padding-top: {{#if: {{{padding-top|}}} | {{{padding-top}}} | none }}; | + | padding-top: {{#if: {{{padding-top|}}} | {{{padding-top}}} | none }}; <!---- Top10: 8px ---> |
font-weight: {{#if: {{{font-weight|}}} | {{{font-weight}}} | bold}}; | font-weight: {{#if: {{{font-weight|}}} | {{{font-weight}}} | bold}}; | ||
border: {{#if: {{{border|}}} | {{{border}}} | none }} {{#if: {{{border-color|}}} | {{{border-color}}} | black }}; <!--- Top10:2013=#207F4A, Top10:2010=#204A7F ---> | border: {{#if: {{{border|}}} | {{{border}}} | none }} {{#if: {{{border-color|}}} | {{{border-color}}} | black }}; <!--- Top10:2013=#207F4A, Top10:2010=#204A7F ---> |
Revision as of 16:00, 7 September 2017
Usage:
Examples
- {{ColoredBackground|text=simple example}}simple example
- {{ColoredBackground|text=simple example with a Border|border=2px solid}}simple example with a border
- {{ColoredBackground|text=simple example with a green border|border=3px solid|border-color=#207F4A}}simple example with a green border
- {{ColoredBackground|text=example with green background and green border|background-color=#55DF8E|border=3px solid|border-color=#207F4A}}example with green background and green border
- {{ColoredBackground|text=example with green background and green border and white big text|color=white|font-size=180%|background-color=#55DF8E|border=3px solid|border-color=#207F4A}}example with green background and green border and white big text