|
|
Line 1: |
Line 1: |
− | <noinclude>This template makes a rounded box.
| |
| | | |
− | *w = width of the box
| |
− | *bg = backgroundcolor
| |
− | *bc = bordercolor
| |
− | *content = text or other content in the box</noinclude>
| |
− | <includeonly><div style="width: {{{w|100%}}};">
| |
− | <div style="border-bottom: 1px solid {{{bc|#AAA}}}; height: 1px; margin: 0 5px 0 5px; overflow: hidden;"></div>
| |
− | <div style="background: {{{bg|#F9F9F9}}}; border-left: 2px solid {{{bc|#AAA}}}; border-right: 2px solid {{{bc|#AAA}}}; height: 1px; margin: 0 3px 0 3px; overflow: hidden;"></div>
| |
− | <div style="background: {{{bg|#F9F9F9}}}; border-left: 1px solid {{{bc|#AAA}}}; border-right: 1px solid {{{bc|#AAA}}}; height: 1px; margin: 0 2px 0 2px; overflow: hidden;"></div>
| |
− | <div style="background: {{{bg|#F9F9F9}}}; border-left: 1px solid {{{bc|#AAA}}}; border-right: 1px solid {{{bc|#AAA}}}; height: 2px; margin: 0 1px 0 1px; overflow: hidden;"></div>
| |
− | <div style="background: {{{bg|#F9F9F9}}}; border-left: 1px solid {{{bc|#AAA}}}; border-right: 1px solid {{{bc|#AAA}}}; padding: 0 8px 0 8px; text-align: left;">{{{content}}}</div>
| |
− | <div style="background: {{{bg|#F9F9F9}}}; border-left: 1px solid {{{bc|#AAA}}}; border-right: 1px solid {{{bc|#AAA}}}; height: 2px; margin: 0 1px 0 1px; overflow: hidden;"></div>
| |
− | <div style="background: {{{bg|#F9F9F9}}}; border-left: 1px solid {{{bc|#AAA}}}; border-right: 1px solid {{{bc|#AAA}}}; height: 1px; margin: 0 2px 0 2px; overflow: hidden;"></div>
| |
− | <div style="background: {{{bg|#F9F9F9}}}; border-left: 2px solid {{{bc|#AAA}}}; border-right: 2px solid {{{bc|#AAA}}}; height: 1px; margin: 0 3px 0 3px; overflow: hidden;"></div>
| |
− | <div style="border-top: 1px solid {{{bc|#AAA}}}; height: 1px; margin: 0 5px 0 5px; overflow: hidden;"></div>
| |
− | </div></includeonly>
| |
− | <noinclude>
| |
− | The following code:
| |
− | <code><nowiki>{{Rounded| bg = #F9F9F9 | bc = #AAAAAA| w = 75%| content = This is a rounded box.}}</nowiki></code>
| |
− |
| |
− | Makes the following box:
| |
− | {{Rounded| bg = #F9F9F9 | bc = #AAAAAA| w = 75%| content = This is a rounded box.}}
| |
− |
| |
− | From [http://en.wikipedia.org/wiki/Template:Rounded Template:Rounded at Wikipedia].
| |
− | </noinclude>
| |