Difference between revisions of "Template:Box"

(Created page with "<noinclude>This is template for formatting content as popup with light background == Usage == types * brown_dark * brown_light * l_brown_dark * l_brown_light * green_dark * gr...")
 
 
(7 intermediate revisions by the same user not shown)
Line 18: Line 18:
 
* l_red_dark
 
* l_red_dark
 
* l_red_light
 
* l_red_light
 +
height
 +
* may be specified or omitted (auto)
 +
Example:
 
<nowiki>
 
<nowiki>
{{Box|type=brown_dark|text=content of popup}}
+
{{Box|type=brown_dark|height=20px|text=content of popup}}
 
</nowiki>
 
</nowiki>
 +
gives
 +
{{Box|type=brown_dark|height=20px|text=content of popup}}
 +
 
</noinclude>
 
</noinclude>
<html>
+
<div class="box {{{type|brown_light}}}">
<div class="box </html>{{{type|brown_light}}}<html>">
 
 
<div class="box_top"><div></div></div>
 
<div class="box_top"><div></div></div>
<div class="box_content">
+
<div class="box_content" style="height: {{{height|auto}}};">
</html>{{{text|}}}<html>
+
{{{text|}}}
 
</div>
 
</div>
 
<div class="box_bottom"><div></div></div>
 
<div class="box_bottom"><div></div></div>
 
</div>
 
</div>
</html>
 

Latest revision as of 09:26, 19 September 2012

This is template for formatting content as popup with light background

Usage

types

  • brown_dark
  • brown_light
  • l_brown_dark
  • l_brown_light
  • green_dark
  • green_light
  • l_green_dark
  • l_green_light
  • blue_dark
  • blue_light
  • l_blue_dark
  • l_blue_light
  • red_dark
  • red_light
  • l_red_dark
  • l_red_light

height

  • may be specified or omitted (auto)

Example: {{Box|type=brown_dark|height=20px|text=content of popup}} gives

content of popup