Template:Compact ToC: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
 
(19 intermediate revisions by 6 users not shown)
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>
{{Doc}}
<div style="margin: auto; white-space: nowrap;">{{#ifeq:{{{sym|}}}|yes|
<includeonly>
[[#!$@|!$@]] •}} {{#ifeq:{{{num|}}}|yes|
[[#0–9|0–9]] •}} {{#ifeq:{{{symnum|}}}|yes|
[[#!–9|!–9]] •}} {{#ifeq:{{{unders|}}}|yes|
[[#_|_]] • }} [[#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><noinclude>{{clr}}
A more compact table of contents. Primarily designed for use on list pages, to save space. Takes the following parameters:<br>
* <code>name=</code> defines a custom name for the table.
* <code>sym=yes</code> adds a link for symbols.
* <code>num=yes</code> adds a link for numbers.
* <code>symnum=yes</code> adds a link for symbols and numbers.
* <code>unders=yes</code> adds a link for underscore.


Further documentation can be found on [[w:Template:Compact ToC|Wikipedia]]</noinclude>
<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>
 
</includeonly>

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