Template:Box: Difference between revisions
imported>Caesar Schinas mNo edit summary |
imported>Drew R. Smith m (Test, will fix if doesnt work) |
||
Line 1: | Line 1: | ||
<div style="border:1px #bbb solid; background-color:#eee; padding:0.5em; margin:0.5em 0; -moz-border-radius:4px; -webkit-border-radius:4px; {{{style|}}}">{{{1}}}</div><noinclude>{{TlDoc}}</noinclude> | <div style="border:1px #bbb solid; background-color:{{{color|#eee}}; padding:0.5em; margin:0.5em 0; -moz-border-radius:4px; -webkit-border-radius:4px; {{{style|}}}">{{{1}}}</div><noinclude>{{TlDoc}}</noinclude> |
Revision as of 04:45, 5 August 2009
<div style="border:1px #bbb solid; background-color:{{{{2}}}; padding:0.5em; margin:0.5em 0; -moz-border-radius:4px; -webkit-border-radius:4px; ">{{{1}}} <div style="border:1px #bbb solid; background-color:{{{{2}}}; padding:0.5em; margin:0.5em 0; -moz-border-radius:4px; -webkit-border-radius:4px; ">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
<div style="border:1px #bbb solid; background-color:{{{{2}}}; padding:0.5em; margin:0.5em 0; -moz-border-radius:4px; -webkit-border-radius:4px; ">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
<div style="border:1px #bbb solid; background-color:{{{{2}}}; padding:0.5em; margin:0.5em 0; -moz-border-radius:4px; -webkit-border-radius:4px; ">Text Here, Link Here
{{Box|Text Here, [[Link Here]]|#517}}
Produces
<div style="border:1px #bbb solid; background-color:{{{{2}}}; padding:0.5em; margin:0.5em 0; -moz-border-radius:4px; -webkit-border-radius:4px; ">Text Here, Link Here