Difference between revisions of "Template:Boxes"
From NorCon MUSH
(Created page with "<noinclude>{{Boxes |box-width=5 |box-color=warning |box-heading=Panels! |box-content=Panels (or boxes) are a flexible way of formatting content within a page. This template is...") |
|||
| Line 37: | Line 37: | ||
<p class="bs">{{{box-content}}}</p> | <p class="bs">{{{box-content}}}</p> | ||
</div> | </div> | ||
| − | <div class="panel-footer">{{{box-footer}}}</div> | + | <div class="panel-footer">{{{box-footer|}}}</div> |
</div> | </div> | ||
</div></includeonly> | </div></includeonly> | ||
Revision as of 22:43, 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. 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 }}