Template:Box/open: Difference between revisions

From NET Wiki
Jump to navigation Jump to search
(Created page with '{| cellspacing="2" cellpadding="0" style="margin:0em 0em 0em 0em; width:{{{width|100%}}};" | colspan="1" style="width:100%; vertical-align:top; border:1px solid {{{borderColor|#E...')
 
No edit summary
 
Line 1: Line 1:
{| cellspacing="2" cellpadding="0" style="margin:0em 0em 0em 0em; width:{{{width|100%}}};"
{| cellspacing="2" cellpadding="0" style="margin:0em 0em 0em 0em; width:{{{width|100%}}};"
| colspan="1" style="width:100%; vertical-align:top; border:1px solid {{{borderColor|#E39C79}}}; background-color:#ffFcF1;"|
| colspan="1" style="width:100%; vertical-align:top; border:1px solid {{{borderColor|#E39C79}}}; background-color:{{{backgroundColorTop|#ffFcF1}}};"|
<div style="border-bottom:1px solid {{{borderColor|#E39C79}}}; background-color:{{{backgroundColor|Wheat}}}; padding:0.2em 0.9em 0.2em 0.5em; font-size:120%; font-weight:bold;">{{{title|Title}}}</div>
<div style="border-bottom:1px solid {{{borderColor|#E39C79}}}; background-color:{{{backgroundColor|Wheat}}}; padding:0.2em 0.9em 0.2em 0.5em; font-size:120%; font-weight:bold;">{{{title|Title}}}</div>
<noinclude><div style="padding:0.75em 1.5em 0em 0.75em;">
<noinclude><div style="padding:0.75em 1.5em 0em 0.75em;">
Line 14: Line 14:
|}
|}
==Usage==
==Usage==
<nowiki>{{Box/open|title=Test title}}
<pre>
  <div style="{{Box/pad}}">
<nowiki>{{Box/open|title=Test title}}
      Test box with no content.
  <div style="{{Box/pad}}">
  </div>
    Test box with no content.
  {{Box/close}}</nowiki>
  </div>
{{Box/close}}</nowiki>
</pre>
produces:
produces:
{{Box/open|title=Test title}}
{{Box/open|title=Test title}}
Line 25: Line 27:
</div>
</div>
{{Box/close}}
{{Box/close}}
==Colors==


[[Category:Utility templates]]</noinclude>
[[Category:Utility templates]]</noinclude>

Latest revision as of 16:24, 11 March 2009

Title

Parameters:

  • width: width of the table, default is 100%
  • borderColor: color of the border
  • backgroundColor:
  • title:

Use the {{Box/close}} template to close the box!
This template should be used together with {{Box/pad}} to pad out the box contents - see examples below.
Template originates from [1]

Usage

{{Box/open|title=Test title}}
  <div style="{{Box/pad}}">
    Test box with no content.
  </div>
{{Box/close}}

produces:

Test title

Test box with no content.

Colors