Template:Compact ToC: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(16 intermediate revisions by 5 users not shown)
Line 1: Line 1:
__NOTOC__{{{{#if:{{{inline|}}}|Code|CodeBlock}}| {{{name|Contents}}}: [[#?|?]] [[#0-9|0-9]] [[#A|A]] [[#B|B]] [[#C|C]] [[#D|D]] [[#E|E]] [[#F|F]] [[#G|G]] [[#H|H]] [[#I|I]] [[#J|J]] [[#K|K]] [[#L|L]] [[#M|M]] [[#N|N]] [[#O|O]] [[#P|P]] [[#Q|Q]] [[#R|R]] [[#S|S]] [[#T|T]] [[#U|U]] [[#V|V]] [[#W|W]] [[#X|X]] [[#Y|Y]] [[#Z|Z]]}}<noinclude>
{{Doc}}
<includeonly>


<onlyinclude>__NOTOC__<div style="display:inline-flex;">{{CodeBlock| {{{name|Contents}}}:{{#if:{{{@|}}}|&nbsp;[[#@|@]]|}}{{#if:{{{sym|}}}|&nbsp;[[#?|?]]|}}{{#if:{{{num|}}}|&nbsp;[[#0-9|0-9]]|}} [[#.2B|+]] [[#-|-]] [[#Underscore|_]] [[#A|A]] [[#B|B]] [[#C|C]] [[#D|D]] [[#E|E]] [[#F|F]] [[#G|G]] [[#H|H]] [[#I|I]] [[#J|J]] [[#K|K]] [[#L|L]] [[#M|M]] [[#N|N]] [[#O|O]] [[#P|P]] [[#Q|Q]] [[#R|R]] [[#S|S]] [[#T|T]] [[#U|U]] [[#V|V]] [[#W|W]] [[#X|X]] [[#Y|Y]] [[#Z|Z]] [[#{{{bottom|See also}}}|↓]]}}</div></onlyinclude>


{{ModernTodo|Documentation}}
</includeonly>
 
A more compact table of contents. Primarily designed for use on list pages, to save space. Takes the following parameters:<br>
* <code>inline=</code> defines if the ToC is inline or not.
* <code>name=</code> defines a custom name for the table.
</noinclude>

Latest revision as of 14:49, 1 April 2025

English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [view] [edit]
Icon-translate.png Available doc translations
View
Page history

Usage

A more compact table of contents. Primarily designed for use on list pages, to save space.

Parameters

  • name= - Defines a custom name for the table.
  • sym= - Adds a link to symbols.
  • num= - Adds a link to numbers.

To make the underscore button work, please add this to the page: ===_<span id="Underscore"><!-- Workaround for links to section--></span>===

Preview

Contents: + - _ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z