Template:TOC Horizontal
This template creates a table of contents with up to three horizontal rows, with up 26 items in each row.
Here is a usage example:
{{TOC Horizontal |a1=[[#Foo|Foo]] |a2=[[#Bar|Bar]] |b1=[[#A|A]] |b2=[[#B|B]] |b3=[[#C|C]] |c1=[[#Other|Other]] }}