Difference between revisions of "Template:Box"

From FSCONS wiki
Jump to navigation Jump to search
 
(3 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>{{box|#FF0000|#FFCCCC|Content of the box}}</nowiki> where:
 
which is obtain with: <nowiki>{{box|#FF0000|#FFCCCC|Content of the box}}</nowiki> where:
 +
 
* first argument is the border color
 
* first argument is the border color
 
* second argument is the background color
 
* second argument is the background color
* last comes the content of the box
+
* 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">
</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}}}
 
{{{3}}}
</div>
+
</div></includeonly>
</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