Template:Toc

From UO Eventine Wiki
Jump to navigation Jump to search

Template:Toc is designed for use on all pages to display a table of contents on the left side of the page at the insertion point that does not allow content to flow around it. {{#if: | {{{othernotes}}} | }}

Template

{{#switch:  {{Toc| }}  |  {{Toc| }}  }}

{{#if: | {{#ifeq: {{{display}}} | yes

 | ==Display==
 | ==Display==

{{{display}}}

 }}

}}

Parameters

{{#switch: {{{parameters}}} | none = This template has no parameters. | | #default = }} {{#fornumargs: key | value | [[Category:{{#var: value}}|Toc]] }}

1

  • Usage: {{#ifeq: | mandatory | Mandatory | Optional}}
  • Description: The 1 parameter takes a number denoting the lowest header level to be included in the table of contents. This is used to generate the "class" attribute in the div tag. {{#if: | If this parameter is left blank or omitted, a default value of "{{{defaultvalue}}}" is used. | }} {{#if: | {{#ifeq: {{{anonymous}}} | true | This parameter, the template's only one, is an anonymous parameter, which means that no parameter name needs to be explicitly specified when using Template:Toc. }} }} {{#if: This parameter, the template's only one, is an anonymous parameter, which means that no parameter name needs to be explicitly specified when using Template:Toc. | This parameter, the template's only one, is an anonymous parameter, which means that no parameter name needs to be explicitly specified when using Template:Toc. }}
  • Valid Value(s): 1, 2, 3, 4, 5, 6, or 7