Difference between revisions of "Template:TOClimit/Doc"

The Beyond Skyrim Wiki — Hosted by UESP
Jump to: navigation, search
m (1 revision imported: templates from UESPWiki)
m (Parameters: fix)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{{TemProtect}}</includeonly>
 
 
== Summary ==
 
== Summary ==
 
This template places a table of contents (TOC) at the location where the template is. The only difference from a standard TOC is that the subheaders shown in the TOC can be controlled, using the limit parameter.
 
This template places a table of contents (TOC) at the location where the template is. The only difference from a standard TOC is that the subheaders shown in the TOC can be controlled, using the limit parameter.
 
{{Template copied|TOClimit}}
 
  
 
== Parameters ==
 
== Parameters ==
{{Parameters
+
{| class="wikitable"
|1 ''or'' limit|required|The limit to place on the subheaders shown in the TOC. limit{{=}}4 is the same as the default wiki settings.  limit{{=}}2 would only show level-1 or level-2 headers (<code><nowiki>=...=</nowiki></code> or <code><nowiki>==...==</nowiki></code>). Values below 2 are ignored by the MediaWiki software, resulting in a normal TOC.
+
!colspan="3"| {{{template|{{BASEPAGENAME}}}}}
}}
+
|-
 +
! Parameter !! Scope !! Description
 +
|-
 +
|1 ''or'' limit||required||The limit to place on the subheaders shown in the TOC. limit{{=}}4 is the same as the default wiki settings.  limit{{=}}2 would only show level-1 or level-2 headers (<code><nowiki>=...=</nowiki></code> or <code><nowiki>==...==</nowiki></code>). Values below 2 are ignored by the MediaWiki software, resulting in a normal TOC.
 +
|}
  
 
== Example ==
 
== Example ==

Latest revision as of 18:57, 30 June 2017

Summary[edit]

This template places a table of contents (TOC) at the location where the template is. The only difference from a standard TOC is that the subheaders shown in the TOC can be controlled, using the limit parameter.

Parameters[edit]

TOClimit
Parameter Scope Description
1 or limit required The limit to place on the subheaders shown in the TOC. limit=4 is the same as the default wiki settings. limit=2 would only show level-1 or level-2 headers (=...= or ==...==). Values below 2 are ignored by the MediaWiki software, resulting in a normal TOC.

Example[edit]

{{TOClimit|2}}

Demonstration[edit]

Notice that this section, being under a level-3 header, does not show in the TOC.