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

From blackwiki
Jump to navigation Jump to search
imported>Pppery
(Rm style page that is only used indirectly)
(This article of Wikipedia article is not working for the article and the Wikipedia was not working at all)
Line 1: Line 1:
{{Documentation subpage}}
+
Wikipedia article is not working for the internet but it won’t stop doing it so it’s not working out
<!-- Categories and interwikis go at the bottom of this page. -->
 
{{Uses TemplateStyles|Template:TOC limit/styles.css|Template:Horizontal TOC/styles.css}}
 
 
 
This template lays out the table of contents in a [[WP:HLIST|horizontal list]] rather than a vertical one.
 
 
 
== Usage ==
 
 
 
<pre>
 
{{horizontal TOC}}
 
</pre>
 
There is no need to specify <code><nowiki>__NOTOC__</nowiki></code>: this template handles that automatically.
 
*[https://en.wikipedia.org/w/index.php?title=Template:Horizontal_TOC/doc&oldid=653960465 See example]
 
 
 
To hide the generated heading numbers, use:
 
 
 
<pre>
 
{{horizontal TOC|nonum=yes}}
 
</pre>
 
*[https://en.wikipedia.org/w/index.php?title=Template:Horizontal_TOC/doc&oldid=653960502 See example]
 
 
 
To limit the depth of the generated headings to the first headings only, use:
 
 
 
<pre>
 
{{horizontal TOC|limit=2}}
 
</pre>
 
*[https://en.wikipedia.org/w/index.php?title=Template:Horizontal_TOC/doc&oldid=653960535 See example]
 
 
 
To float the table of contents to the center of the page, use:
 
 
 
<pre>
 
{{horizontal TOC|align=center}}
 
</pre>
 
*[https://en.wikipedia.org/w/index.php?title=Template:Horizontal_TOC/doc&oldid=653960585 See example]
 
 
 
For country and state lists with flag icons, see these examples: [[Legality of cannabis by country]]. And: [[Legality of cannabis by U.S. jurisdiction]].
 
 
 
For example,
 
<pre>
 
{{horizontal TOC}}
 
</pre>
 
produces:
 
{{horizontal TOC}}
 
 
 
== See also ==
 
*[[Help:TOC]]
 
* {{tl|Compact ToC}}
 
* {{tl|List TOC}}
 
* {{tl|List TOC Letters}}
 
 
 
<includeonly>
 
<!-- Categories go here -->
 
[[Category:Wikipedia table of contents templates]]
 
</includeonly>
 
<templatedata>
 
{
 
"params": {
 
"nonum": {
 
"label": "No numbers",
 
"description": "Hide the generated heading numbers",
 
"example": "yes",
 
"type": "string"
 
},
 
"limit": {
 
"label": "Limit",
 
"description": "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 works by hiding the lower levels with CSS",
 
"type": "number"
 
},
 
"align": {
 
"label": "Align",
 
"description": "Which side of the page to align the ToC to. Allowed values are left, right, center",
 
"example": "align=left",
 
"type": "string"
 
},
 
"clear": {
 
"label": "Clear",
 
"description": "Align underneath floating images and tables or not. Allowed values are left, right, both, none",
 
"example": "clear:both",
 
"type": "string"
 
}
 
},
 
"description": "This template lays out the table of contents in a horizontal list rather than a vertical one.",
 
"format": "inline"
 
}
 
</templatedata>
 

Revision as of 10:37, 12 July 2019

Wikipedia article is not working for the internet but it won’t stop doing it so it’s not working out