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) |
No edit summary |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 4: | Line 4: | ||
++ HEADER ++ | ++ HEADER ++ | ||
-->{{#if:{{{title|}}} | <div style="font-style:italic;" | -->{{#if:{{{title|}}} | <div style="font-style:italic;">{{{title}}}:</div> }}<!-- | ||
++ BOX CONTENTS ++ | ++ BOX CONTENTS ++ | ||
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><!-- | ||
--></includeonly></onlyinclude> | --></includeonly></onlyinclude> | ||
{{ | {{doc}} | ||
<!-- Add categories to the /doc subpage, not here --> | <!-- Add categories to the /doc subpage, not here --> |
Latest revision as of 17:54, 11 November 2024
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.