Template:Compact ToC: Difference between revisions
Jump to navigation
Jump to search
Thunder4ik (talk | contribs) m (→top: Unicodifying, replaced: {{ModernTodo| → {{todo|) |
(added underscore workaround.) |
||
Line 1: | Line 1: | ||
__NOTOC__<div style="display:inline-flex;">{{CodeBlock| {{{name|Contents}}}:{{#if:{{{@|}}}| [[#@|@]]|}}{{#if:{{{sym|}}}| [[#?|?]]|}}{{#if:{{{num|}}}| [[#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:{{{@|}}}| [[#@|@]]|}}{{#if:{{{sym|}}}| [[#?|?]]|}}{{#if:{{{num|}}}| [[#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
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>===