Module:ListFunctions/doc

From Sun Haven Wiki
Jump to navigation Jump to search

This is the documentation page for Module:ListFunctions

List To Vertical Table (lst2VertTable)

Input
A Variable number of parameters in which each parameter is a list of comma separated values
Output
A table body (no header or close) in which each parameter is a column
{| class="wikitable" style="text-align:center;
! Header 1 !! Header 2 !! Header 3
{{#invoke:ListFunctions|lsts2VertTable|a,b,c|1,2,3|!,@,#}}
|}
Header 1 Header 2 Header 3
a 1 !
b 2 @
c 3 #


List To Horizontal Table (lst2HorzTable)

Input
A Variable number of parameters in which each parameter is a list of comma separated values
Output
A table body (no header or close) in which each parameter is a row
{| class="wikitable" style="text-align:center;
! Header 1 !! Header 2 !! Header 3
{{#invoke:ListFunctions|lsts2HorzTable|a,b,c|1,2,3|!,@,#}}
|}
Header 1 Header 2 Header 3
a b c
1 2 3
! @ #