Difference between revisions of "Template:Box"

From Citizendium
Jump to: navigation, search
(We'll start out with a very simple box, and add extra features as needed.)
 
(In this case, it seems prudent to show what the template produces)
Line 1: Line 1:
<includeonly><div style="border:1px #bbb solid; background-color:#eee; padding:0.5em; margin:0.5em 0">{{{1}}}</div></includeonly><noinclude>{{TlDoc}}</noinclude>
+
<div style="border:1px #bbb solid; background-color:#eee; padding:0.5em; margin:0.5em 0">{{{1}}}</div><noinclude>{{TlDoc}}</noinclude>

Revision as of 10:45, 15 June 2009

{{{1}}}
This documentation is transcluded from Template:Box/doc (edit | history)

This template is used to create a box around text.

Examples

{{Box|Text Here, [[Link Here]]}}

Produces

Text Here, Link Here

You can also specify the color you want the box to be using a parameter after the text.

{{Box|Text Here, [[Link Here]]|black}}

Produces

Text Here, Link Here
{{Box|Text Here, [[Link Here]]|#517}}

Produces

Text Here, Link Here