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:Rounded info box"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(simplity, use <div>'s instead of tables)
(collapsible (optional))
Line 1: Line 1:
 
<div style="text-align:center;"> <!-- EDITORS: THE HEADER COMES SECOND, NOT FIRST! Make sure you edit the correct part! -->
 
<div style="text-align:center;"> <!-- EDITORS: THE HEADER COMES SECOND, NOT FIRST! Make sure you edit the correct part! -->
<div style="overflow:auto; color: {{{color|black}}}; background-color: {{{bgcolor|#eef5ff}}}; border: 1px solid {{{bordercolor|#0088CC}}}; font-size: 90%; margin: 1em 0em 0em; padding: 2px; text-align: {{{align|center}}}; width: auto; {{border radius|4px}} {{{style|}}}">
+
<div class="{{#if:{{{collapsible|{{{collapse|}}}}}}|mw-collapsible {{#if:{{{collapsed|}}}|mw-collapsed}}}}" style="position: relative; overflow:auto; color: {{{color|black}}}; background-color: {{{bgcolor|#eef5ff}}}; border: 1px solid {{{bordercolor|#0088CC}}}; font-size: 90%; margin: 1em 0em 0em; padding: 2px; text-align: {{{align|center}}}; width: auto; {{border radius|4px}} {{{style|}}}">
 
<div style="color: {{{hcolor|black}}}; border: 1px solid {{{bordercolor|#0088CC}}}; font-weight:bold; background-color: {{{hbgcolor|#8ce}}}; padding-left: 1em; padding-right: 1em; text-align: {{{halign|center}}}; box-shadow: 1px 1px 2px 0px {{{hshadowcolor|{{{hbgcolor|#8ce}}}}}}; {{border radius|3px}} {{{hstyle|}}}"> '''{{{1|&nbsp;}}}'''</div>
 
<div style="color: {{{hcolor|black}}}; border: 1px solid {{{bordercolor|#0088CC}}}; font-weight:bold; background-color: {{{hbgcolor|#8ce}}}; padding-left: 1em; padding-right: 1em; text-align: {{{halign|center}}}; box-shadow: 1px 1px 2px 0px {{{hshadowcolor|{{{hbgcolor|#8ce}}}}}}; {{border radius|3px}} {{{hstyle|}}}"> '''{{{1|&nbsp;}}}'''</div>
{{{2|&nbsp;}}}
+
<div class="{{#if:{{{collapsible|{{{collapse|}}}}}}|mw-collapsible-content}}">{{{2|&nbsp;}}}</div>
 
</div></div><noinclude>
 
</div></div><noinclude>
 
<!-- Please do not add in includeonly tags; they are left out so the empty template can serve as a preview for editors. -->
 
<!-- Please do not add in includeonly tags; they are left out so the empty template can serve as a preview for editors. -->

Revision as of 01:52, 22 December 2013