Template:Compact ToC: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (→‎top: Unicodifying, replaced: {{ModernTodo| → {{todo|)
(added underscore workaround.)
Line 1: Line 1:
__NOTOC__<div style="display:inline-flex;">{{CodeBlock| {{{name|Contents}}}:{{#if:{{{@|}}}|&nbsp;[[#@|@]]|}}{{#if:{{{sym|}}}|&nbsp;[[#?|?]]|}}{{#if:{{{num|}}}|&nbsp;[[#0-9|0-9]]|}} [[#.2B|+]] [[#-|-]] [[#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><noinclude>
__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]] }}</div><noinclude>




Line 9: Line 9:
* <code>num=</code> adds a link to numbers.
* <code>num=</code> adds a link to numbers.
</noinclude>
</noinclude>
To make the underscore button work, please add this to the page:
{{code|<nowiki>===_<span id="Underscore"><!-- Workaround for links to section--></span>===</nowiki>
}}

Revision as of 04:23, 17 January 2024

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


Todo: Documentation

A more compact table of contents. Primarily designed for use on list pages, to save space. Takes the following 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>===