Template:ScrollBox: Difference between revisions
Jump to navigation
Jump to search
(Removed default bottom border if noscroll is set.) |
(Added ability to set scrolling using "noscroll" parameter value (enable: "noscroll=0", disable: "noscroll=1"). This will not work if the parameter reads any value other than 0 or 1 or blank) |
||
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| {{# | {{#if: {{{bottom-border| {{#ifeq:{{{noscroll|0}}} | 1 || {{{title|}}} }} }}} | border-bottom:1px solid #444; }} | ||
border-color: {{{border-color|#3A3937}}}; <!-- overrides previous colors --> | border-color: {{{border-color|#3A3937}}}; <!-- overrides previous colors --> | ||
{{# | {{#ifeq: {{{noscroll|0}}} | 1 | max-height:100%; | max-height:{{{maxheight|30em}}}; }} | ||
{{{style|}}}; <!-- can override anything because it's the last --> | {{{style|}}}; <!-- can override anything because it's the last --> | ||
">{{{1}}}</div><!-- | ">{{{1}}}</div><!-- |
Revision as of 09:31, 14 September 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.