Template:ScrollBox: Difference between revisions
Jump to navigation
Jump to search
(Fixed typo in lang template. :) Moved border-bottom of title to border-top of scrolling <div>. Enabled bottom-border by default if a title exists. Simplified code for max-height and noscroll. Added color, border-color and style parameters.) |
(Removed default bottom border if noscroll is set.) |
||
Line 12: | Line 12: | ||
background-color: {{{color|none}}}; | background-color: {{{color|none}}}; | ||
{{#if: {{{title|}}} | border-top:1px solid #444; }} | {{#if: {{{title|}}} | border-top:1px solid #444; }} | ||
{{#if: {{{bottom-border|{{{title|}}}}}} | border-bottom:1px solid #444; }} | {{#if: {{{bottom-border| {{#if:{{{noscroll|}}} || {{{title|}}} }} }}} | border-bottom:1px solid #444; }} | ||
border-color: {{{border-color|#3A3937}}}; <!-- overrides previous colors --> | border-color: {{{border-color|#3A3937}}}; <!-- overrides previous colors --> | ||
{{#if: {{{noscroll|}}} | max-height:100%; | max-height:{{{maxheight|30em}}}; }} | {{#if: {{{noscroll|}}} | max-height:100%; | max-height:{{{maxheight|30em}}}; }} |
Revision as of 02:15, 16 January 2022
The above documentation is transcluded from Template:ScrollBox/doc. (Edit | Page history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.