Template:ExpandBox: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(still testing)
(well, i figured out something at least. i'll work on improving it later.)
Line 1: Line 1:
<span onclick="document.getElementById('expand').style.height = 'auto'">spanning</span>
<noinclude>This template is intended for very long lists that aren't significant enough to warrant their own page, but also end up making pages ridiculously long. Currently only one can be used per page, and it will interfere with any table of contents box because it uses that same javascript.</noinclude>
<div id="expand" style="border:1px grey solid; height:7em; overflow:hidden;">What does that term encompass?
<div id="toc" class="toc" style="border:1px grey solid; height:1em; overflow:auto; background-color:rgb(38,38,38);"><div id="toctitle"><h2>Click to expand</h2></div><ul>{{{1}}}</ul></div>
What does that term encompass?
What does that term encompass?
What does that term encompass?
What does that term encompass?
What does that term encompass?
What does that term encompass?
What does that term encompass?
What does that term encompass?
What does that term encompass?
What does that term encompass?
What does that term encompass?
What does that term encompass?
What does that term encompass?
What does that term encompass?
What does that term encompass?
What does that term encompass?
What does that term encompass?
What does that term encompass?
What does that term encompass?
What does that term encompass?
What does that term encompass?
What does that term encompass?
What does that term encompass?
What does that term encompass?
What does that term encompass?
What does that term encompass?
</div><div style="position: relative; bottom: 4em; height: 4em; background: -webkit-linear-gradient( rgba(255, 255, 255, 0) 0%, rgba(38, 38, 38, 1) 100%);"></div>

Revision as of 16:34, 29 June 2018

This template is intended for very long lists that aren't significant enough to warrant their own page, but also end up making pages ridiculously long. Currently only one can be used per page, and it will interfere with any table of contents box because it uses that same javascript.

Click to expand

    {{{1}}}