Template:TOChidden: Difference between revisions

From Nottinghack Wiki
Jump to navigation Jump to search
Created page with "{{#if: {{{float|}}} |<div style="margin-bottom: 0.1em; margin-{{#ifeq:"{{{float|}}}"|"right"|left|right}}: 0.5em; padding: 0.5em 1.4em 0.8em 0; float: {{{float|}}};">|}} {| cell..."
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 4: Line 4:
|-   
|-   
|style="{{#if:{{{font|}}}|font-size: {{{font|}}}|}}; background-color: transparent; border: none; padding: 0cm; margin: 0cm; " align="center" |<div id="toctitle" style= "display:none; border: none; background-color: transparent;  padding: 0cm; margin: 0cm;"></div><div id="toc" style="display:block; height: 1px; border: none; background-color: transparent;  padding: 0cm; margin: 0cm;"></div>__TOC__
|style="{{#if:{{{font|}}}|font-size: {{{font|}}}|}}; background-color: transparent; border: none; padding: 0cm; margin: 0cm; " align="center" |<div id="toctitle" style= "display:none; border: none; background-color: transparent;  padding: 0cm; margin: 0cm;"></div><div id="toc" style="display:block; height: 1px; border: none; background-color: transparent;  padding: 0cm; margin: 0cm;"></div>__TOC__
|}{{#if:{{{float|}}}|</div>|}}
|}{{#if:{{{float|}}}|</div>|}}<!--
 
--><noinclude>
<noinclude>
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
 
==Documentation==
==Purpose of this template==
This template is for page <nowiki>__TOC__</nowiki> (Table Of Contents) code to go into a collapsible box that has [show]/[hide] functionality with the default being that the box is collapsed (and the TOC hidden) thereby allowing for a single click on the [show] area for display. This provides editors an option to better pages with long TOCs so that the lead isn't by default occupied with a large amount of dead blank space. Place the template in the location where the TOC is to be displayed. Note that Show Preview will show the TOC; the page must first be saved before the TOC will be hidden.
This template is for page <nowiki>__TOC__</nowiki> (Table Of Contents) code to go into a collapsible box that has [show]/[hide] functionality with the default being that the box is collapsed (and the TOC hidden) thereby allowing for a single click on the [show] area for display. This provides editors an option to better pages with long TOCs so that the lead isn't by default occupied with a large amount of dead blank space. Place the template in the location where the TOC is to be displayed. Note that Show Preview will show the TOC; the page must first be saved before the TOC will be hidden.


Line 15: Line 13:


'''Alternative:''' - The necessity of this template is often disputed, so apply it with consideration. A suggested alternative is: <code>{{tl|TOC limit}}</code>.
'''Alternative:''' - The necessity of this template is often disputed, so apply it with consideration. A suggested alternative is: <code>{{tl|TOC limit}}</code>.
[[Category:Templates layout]]
[[Category:Templates (unused)]]
</noinclude>
</noinclude>

Latest revision as of 08:55, 15 August 2019

Documentation

This template is for page __TOC__ (Table Of Contents) code to go into a collapsible box that has [show]/[hide] functionality with the default being that the box is collapsed (and the TOC hidden) thereby allowing for a single click on the [show] area for display. This provides editors an option to better pages with long TOCs so that the lead isn't by default occupied with a large amount of dead blank space. Place the template in the location where the TOC is to be displayed. Note that Show Preview will show the TOC; the page must first be saved before the TOC will be hidden.

Usage: - Place the following on the page: Template:Tl

Alternative: - The necessity of this template is often disputed, so apply it with consideration. A suggested alternative is: Template:Tl.