Template:ScrollBox: Difference between revisions
Jump to navigation
Jump to search
(Wow, should of fixed this template. Docs are being made.) |
(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.) |
||
Line 1: | Line 1: | ||
{{lang|Template: | {{lang|Template:ScrollBox}}<!-- | ||
--><onlyinclude><includeonly><!-- | --><onlyinclude><includeonly><!-- | ||
++ HEADER ++ | ++ HEADER ++ | ||
--> | |||
{{#if:{{{title|}}} | < | -->{{#if:{{{title|}}} | <div style="font-style:italic;"><br>{{{title}}}:</div> }}<!-- | ||
<!-- | |||
++ BOX CONTENTS ++ | ++ BOX CONTENTS ++ | ||
--> | |||
<div style="overflow:auto; | --><div style=" | ||
{{#if:{{{ | overflow: auto; | ||
{{#if:{{{ | background-color: {{{color|none}}}; | ||
{{#if: {{{title|}}} | border-top:1px solid #444; }} | |||
{{#if: {{{bottom-border|{{{title|}}}}}} | border-bottom:1px solid #444; }} | |||
{{#if:{{{ | border-color: {{{border-color|#3A3937}}}; <!-- overrides previous colors --> | ||
}} | {{#if: {{{noscroll|}}} | max-height:100%; | max-height:{{{maxheight|30em}}}; }} | ||
">{{{1}}}</div></includeonly></onlyinclude> | {{{style|}}}; <!-- can override anything because it's the last --> | ||
">{{{1}}}</div><!-- | |||
--></includeonly></onlyinclude> | |||
{{documentation}} | {{documentation}} | ||
<!-- Add categories to the /doc subpage, not here --> | <!-- Add categories to the /doc subpage, not here --> |
Revision as of 06:49, 13 December 2021
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.