Template:Compact ToC: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Underscores don't work, sadly.)
mNo edit summary
Line 1: Line 1:
__NOTOC__<div class="toc plainlinks hlist" id="toc" style="float:left; clear:left; text-align:{{{align|left}}}"><div id="toctitle" style="text-align: center;"><span style="font-weight: bold">{{{name|{{MediaWiki:Toc}}}}}</span></div>
__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>
<div style="margin: auto; white-space: nowrap;">{{#ifeq:{{{sym|}}}|yes|
 
[[#!$@|!$@]] •}} {{#ifeq:{{{num|}}}|yes|
 
[[#0–9|0–9]] •}} {{#ifeq:{{{symnum|}}}|yes|
{{ModernTodo|Documentation}}
[[#!–9|!–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]]</div></div>{{clr}}<noinclude>
 
A more compact table of contents. Primarily designed for use on list pages, to save space. Takes the following parameters:<br>
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.
* <code>name=</code> defines a custom name for the table.
* <code>sym=yes</code> adds a link for symbols.
</noinclude>
* <code>num=yes</code> adds a link for numbers.
* <code>symnum=yes</code> adds a link for symbols and numbers.
 
Further documentation can be found on [[w:Template:Compact ToC|Wikipedia]]</noinclude>

Revision as of 14:38, 4 April 2023

Contents: ? 0-9 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


Template:ModernTodo

A more compact table of contents. Primarily designed for use on list pages, to save space. Takes the following parameters:

  • inline= defines if the ToC is inline or not.
  • name= defines a custom name for the table.