v50 Steam/Premium information for editors
  • 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.
This notice may be cached—the current version can be found here.

Difference between revisions of "Template:TipBox2"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
m (eliminate left/right margin on float)
(allow setting clear)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<div style="float: {{{float|none}}}; clear:{{{float|both}}};
+
<div style="float: {{{float|none}}}; clear:{{{clear|{{{float|both}}}}}};
 
             border: 2px solid black; background: {{{textbg|white}}};
 
             border: 2px solid black; background: {{{textbg|white}}};
 
             margin: {{#if:{{{float|}}}|1em|auto}};  
 
             margin: {{#if:{{{float|}}}|1em|auto}};  
               {{#ifeq:{{{float}}}|right|margin-right:0}}
+
               {{#ifeq:{{{float}}}|right|margin-right:0em;}}
               {{#ifeq:{{{float}}}|left|margin-left:0}}
+
               {{#ifeq:{{{float}}}|left|margin-left:0em;}}
 
             width: {{#if:{{{float|}}}|{{{width|35%}}}|{{{width|80%}}}}};">
 
             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>
Line 16: Line 16:
 
<pre>{{TipBox2|Title|Body Text|
 
<pre>{{TipBox2|Title|Body Text|
 
   float=[left/right/none]|
 
   float=[left/right/none]|
 +
  clear=[left/right/none]|
 
   textbg=[html color]|
 
   textbg=[html color]|
 
   titlebg=[html color]|
 
   titlebg=[html color]|

Latest revision as of 21:35, 9 June 2017

Title

Body text


Usage[edit]

{{TipBox2|Title|Body Text|
   float=[left/right/none]|
   clear=[left/right/none]|
   textbg=[html color]|
   titlebg=[html color]|
   width=[css width]
}}


This is a title....

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.


This is a title....

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.

This is a title....

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.