Difference between revisions of "Template:Box"

From FSCONS wiki
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 ...")
 
Line 4: Line 4:
 
{{box|#FF0000|#FFCCCC|Content of the box}}
 
{{box|#FF0000|#FFCCCC|Content of the box}}
  
which is obtain with: <nowiki>{{draft|This is a draft box}}</nowiki>
+
which is obtain with: <nowiki>{{box|#FF0000|#FFCCCC|Content of the box}}</nowiki> where:
 +
* first argument is the border color
 +
* second argument is the background color
 +
* last comes the content of the box
 
</noinclude>
 
</noinclude>
  
 
<includeonly>
 
<includeonly>
<div style="background-color: {{{1}}}; border-style: solid; border-color:{{{2}}};border-width:2px 2px 2px 7px;padding:1em;width:70%;margin:auto">
+
<div style="background-color: {{{2}}}; border-style: solid; border-color:{{{1}}};border-width:2px 2px 2px 7px;padding:1em;width:70%;margin:auto">
<span style="font-size:1.5em;">✍ '''Draft'''</span>
+
{{{3}}}
----
 
{{{2}}}
 
 
</div>
 
</div>
 
</includeonly>
 
</includeonly>

Revision as of 13:43, 28 November 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