Template:Table list/doc

From RuneRealm Wiki
Jump to navigation Jump to search
This is a documentation subpage for Template:Table list.
It contains usage information, categories, and other content that is not part of the original template page.
Template:Table list invokes function main in Module:Table list using Lua.

Sorts any number of items into a table of a specified number of columns (default of 4). The elements are also sorted alphabetically automatically.

{{Table list
|header = Title
|columns = n
|item1
|item2
...
|itemx
}}
Examples
{{Table list
|header = Letters of the alphabet
|columns = 3
|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
}}
Letters of the alphabet
ABC
DEF
GHI
JKL
MNO
PQR
STU
VWX
YZ
{{Table list
|header = Letters of the alphabet
|columns = 7
|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
}}
Letters of the alphabet
ABCDEFG
HIJKLMN
OPQRSTU
VWXYZ