Template:ScrollBox: Difference between revisions
Jump to navigation
Jump to search
(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) |
m (Changed #ifeq to check against 0 and not 1 such that noscroll=2 etc. works like noscroll=1) |
||
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| {{#ifeq:{{{noscroll|0}}} | | {{#if: {{{bottom-border| {{#ifeq:{{{noscroll|0}}} | 0 | {{{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}}} | | {{#ifeq: {{{noscroll|0}}} | 0 | max-height:{{{maxheight|30em}}}; | max-height:100%; }} | ||
{{{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 06:28, 15 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.