Difference between revisions of "Template:TOC right/doc"

From Stardew Valley Wiki
Jump to navigation Jump to search
m (Pathoschild moved page Template:Tocright/doc to Template:TOC right/doc: more readable name)
(Trying to figure out why this template is listed as uncategorized...)
Line 13: Line 13:
 
;limit: Limits the depth of subheadings shown. For instance using <code>limit=4</code> will hide the fourth level and deeper subheadings in the hierarchy. And <code>limit=2</code> will hide all subheadings leaving only the main headings. This is implemented as a CSS class in the MediaWiki:Common.css.
 
;limit: Limits the depth of subheadings shown. For instance using <code>limit=4</code> will hide the fourth level and deeper subheadings in the hierarchy. And <code>limit=2</code> will hide all subheadings leaving only the main headings. This is implemented as a CSS class in the MediaWiki:Common.css.
  
<includeonly>[[Category:General wiki templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
+
<includeonly>[[Category:General wiki templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>
 
__notoc__
 
__notoc__
 
<includeonly>[[de:Vorlage:{{PAGENAME}}]]
 
<includeonly>[[de:Vorlage:{{PAGENAME}}]]

Revision as of 07:44, 15 May 2017

Description
This template will float the article's table of contents to the right. It will also force a ToC when/where it would not normally be found.
Use it only when needed.
Syntax
Type {{Template:Tocright}}

Parameters (optional)

clear
Sets the CSS clear property, which forces this float underneath the side specified with this attribute. So, clear=left (which is the default) will place the element after all the left floating elements before it. Options are left, right, both, or none.
width
Set the CSS width.
limit
Limits the depth of subheadings shown. For instance using limit=4 will hide the fourth level and deeper subheadings in the hierarchy. And limit=2 will hide all subheadings leaving only the main headings. This is implemented as a CSS class in the MediaWiki:Common.css.