- v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
- Use this page to report any issues related to the migration.
Difference between revisions of "Template:TipBox2"
m |
m (eliminate left/right margin on float) |
||
Line 1: | Line 1: | ||
− | <div style="float: {{{float|none}}}; clear:{{{float|both}}}; border: 2px solid black; background: {{{textbg|white}}}; margin: {{#if:{{{float|}}}|1em|auto}}; width: {{#if:{{{float|}}}|{{{width|35%}}}|{{{width|80%}}}}};"> | + | <div style="float: {{{float|none}}}; clear:{{{float|both}}}; |
+ | border: 2px solid black; background: {{{textbg|white}}}; | ||
+ | margin: {{#if:{{{float|}}}|1em|auto}}; | ||
+ | {{#ifeq:{{{float}}}|right|margin-right:0}} | ||
+ | {{#ifeq:{{{float}}}|left|margin-left:0}} | ||
+ | width: {{#if:{{{float|}}}|{{{width|35%}}}|{{{width|80%}}}}};"> | ||
<div style="background: {{{titlebg|#0a0}}}; padding: 0.3em 0.5em; border-bottom: 1px solid black; text-align: center; font-size:120%; color:{{{textcolor|#ffffff}}}">'''{{{1|Title}}}'''</div> | <div style="background: {{{titlebg|#0a0}}}; padding: 0.3em 0.5em; border-bottom: 1px solid black; text-align: center; font-size:120%; color:{{{textcolor|#ffffff}}}">'''{{{1|Title}}}'''</div> | ||
<div style="padding: 0 0.5em;"> | <div style="padding: 0 0.5em;"> |
Revision as of 23:02, 5 May 2011
Body text
Usage
{{TipBox2|Title|Body Text| float=[left/right/none]| textbg=[html color]| titlebg=[html color]| width=[css width] }}
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.