Difference between revisions of "Template:Box"
Jump to navigation
Jump to search
(Created page with "<noinclude> This templates insert a “draft” box on the page, like the following: {{box|#FF0000|#FFCCCC|Content of the box}} which is obtain with: <nowiki>{{draft|This is a ...") |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <noinclude> | + | <noinclude>This templates insert a “draft” box on the page, like the following: |
− | This templates insert a “draft” box on the page, like the following: | ||
{{box|#FF0000|#FFCCCC|Content of the box}} | {{box|#FF0000|#FFCCCC|Content of the box}} | ||
− | which is obtain with: <nowiki>{{ | + | which is obtain with: <nowiki>{{box|#FF0000|#FFCCCC|Content of the box}}</nowiki> where: |
− | |||
− | <includeonly> | + | * first argument is the border color |
− | <div style="background-color: {{{ | + | * second argument is the background color |
− | + | * last comes the content of the box</noinclude><includeonly><div style="background-color: {{{2}}}; border-style: solid; border-color:{{{1}}};border-width:2px 2px 2px 7px;padding:1em;width:70%;margin:auto"> | |
− | + | {{{3}}} | |
− | {{{ | + | </div></includeonly> |
− | </div> | ||
− | </includeonly> |
Latest revision as of 12:33, 5 December 2012
This templates insert a “draft” box on the page, like the following:
Content of the box
which is obtain with: {{box|#FF0000|#FFCCCC|Content of the box}} where:
- first argument is the border color
- second argument is the background color
- last comes the content of the box