Template:TOC 2D

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Documentation icon Template documentation[view] [edit] [history] [purge]

Purpose[edit]

This template is designed to provide a two-dimensional table of contents, for where there is a substantial quantity of third-level headings with short titles, which, importantly, still make sense when run horizontally. This template should not be used if the resulting TOC could be confusing to users; in this case, consider using Template:TOC limit to prevent some levels of headings being displayed, instead.

Usage[edit]

Contents

Prince-electors:
Elections:
14th century
15th century
16th century
17th century
18th century
External links

This example is taken from the table of contents of the article Imperial election.

{{TOC 2D
|float       = right

|row1_header  = [[#Prince-electors|Prince-electors]]
|row1_content = <div></div>
* [[#Spiritual Electors|Spiritual]]
* [[#Secular Electors|Secular]]
* [[#Subsequent changes|Changes]]

|title2       = Elections:

|row3_header  = [[#14th century|14th century]]
|row3_content = <div></div>
* [[#Election of 1376|1376]]
* [[#First election of 1400|May 1400]]
* [[#Second election of 1400|August 1400]]

|row4_header  = [[#15th century|15th century]]
|row4_content = <div></div>
* [[#Election of 1410|1410]]
* [[#Election of 1411|1411]]
* [[#Election of 1438|1438]]
* [[#Election of 1440|1440]]
* [[#Election of 1486|1486]]

|row5_header  = [[#16th century|16th century]]
|row5_content = <div></div>
* [[#Election of 1519|1519]]
* [[#Election of 1531|1531]]
* [[#Election of 1562|1562]]
* [[#Election of 1575|1575]]

|row6_header  = [[#17th century|17th century]]
|row6_content = <div></div>
* [[#Election of 1612|1612]]
* [[#Election of 1619|1619]]
* [[#Election of 1636|1636]]
* [[#Election of 1653|1653]]
* [[#Election of 1658|1658]]
* [[#Election of 1690|1690]]

|row7_header  = [[#18th century|18th century]]
|row7_content = <div></div>
* [[#Election of 1711|1711]]
* [[#Election of 1742|1742]]
* [[#Election of 1745|1745]]
* [[#Election of 1764|1764]]
* [[#Election of 1790|1790]]
* [[#Election of 1792|1792]]

|after         = [[#External links|External links]]
}}

Empty syntax[edit]

{{TOC 2D
|before       = 

|title1       = 
|row1_header  = 
|row1_content = 

|title2       = 
|row2_header  = 
|row2_content = 

|title3       = 
|row3_header  = 
|row3_content = 

|title4       = 
|row4_header  = 
|row4_content = 

|title5       = 
|row5_header  = 
|row5_content = 

|title6       = 
|row6_header  = 
|row6_content = 

|title7       = 
|row7_header  = 
|row7_content = 

|title8       = 
|row8_header  = 
|row8_content = 

|title9       = 
|row9_header  = 
|row9_content = 

|title10       = 
|row10_header  = 
|row10_content = 

|title11       = 
|row11_header  = 
|row11_content = 

|title12       = 
|row12_header  = 
|row12_content = 

|title13       = 
|row13_header  = 
|row13_content = 

|title14       = 
|row14_header  = 
|row14_content = 

|title15       = 
|row15_header  = 
|row15_content = 

|after         =
|footer        =
}}

See also[edit]