Difference between revisions of "Template:Boxes"

From NorCon MUSH
 
Line 10: Line 10:
 
|box-content=They have the following variables:  
 
|box-content=They have the following variables:  
 
* '''box-width''' - Panels work on a grid. '12' is the full page. '6' is half. And so on.  
 
* '''box-width''' - Panels work on a grid. '12' is the full page. '6' is half. And so on.  
* '''box-color''' - There are several pre-set color schemes: primary, danger, success, info, warning. You can also leave this blank and get the default.  
+
* '''box-color''' - There are several pre-set color schemes: primary, danger, success, info, warning, ftw, and hrw. You can also leave this blank and get the default.  
 
* '''box-heading''' - The heading at the top of the box.  
 
* '''box-heading''' - The heading at the top of the box.  
 
* '''box-content''' - Whatever you want to put inside the box.  
 
* '''box-content''' - Whatever you want to put inside the box.  

Latest revision as of 23:33, 30 September 2015


Panels!

Panels (or boxes) are a flexible way of formatting content within a page. This template is designed to make this even easier.

Template variables

They have the following variables:

  • box-width - Panels work on a grid. '12' is the full page. '6' is half. And so on.
  • box-color - There are several pre-set color schemes: primary, danger, success, info, warning, ftw, and hrw. You can also leave this blank and get the default.
  • box-heading - The heading at the top of the box.
  • box-content - Whatever you want to put inside the box.
  • box-footer - The footer.


Template code

{{{Boxes |box-width=6 |box-color=success |box-heading=It worked! |box-content=This is my content |box-footer=This is my footer }}