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

From Stardew Valley Wiki
Jump to navigation Jump to search
m (Text replacement - "tt>" to "samp>")
Line 15: Line 15:
 
|-
 
|-
 
|  
 
|  
| <tt>noautonum</tt>
+
| <samp>noautonum</samp>
 
| Pass these flags as the first argument, like <code><nowiki>{{TOC right|noautonum}}</nowiki></code>. Possible flags:
 
| Pass these flags as the first argument, like <code><nowiki>{{TOC right|noautonum}}</nowiki></code>. Possible flags:
* <tt>noautonum</tt>: hide the section numbers.
+
* <samp>noautonum</samp>: hide the section numbers.
 
|-
 
|-
| <tt>clear</tt>
+
| <samp>clear</samp>
| <tt>left</tt><br /><tt>right</tt><br /><tt>both</tt><br /><tt>none</tt>
+
| <samp>left</samp><br /><samp>right</samp><br /><samp>both</samp><br /><samp>none</samp>
| Forces any floating content on the given side to move down below the TOC. The default value is <tt>right</tt>.
+
| Forces any floating content on the given side to move down below the TOC. The default value is <samp>right</samp>.
 
|-
 
|-
| <tt>width</tt>
+
| <samp>width</samp>
 
| ''any positive integer''
 
| ''any positive integer''
 
| Set the width of the box.
 
| Set the width of the box.

Revision as of 18:47, 4 November 2021

Description

This template will force the page's table of contents to appear and align it the right.

Usage

Add {{TOC right}} (see result at right).

You can customise the template with these optional parameters. It's best not to use these in most cases, to keep TOCs consistent.

parameter valid values description
noautonum Pass these flags as the first argument, like {{TOC right|noautonum}}. Possible flags:
  • noautonum: hide the section numbers.
clear left
right
both
none
Forces any floating content on the given side to move down below the TOC. The default value is right.
width any positive integer Set the width of the box.