24,527
ARTICLES
ON THIS WIKI
ON THIS WIKI
Module:ColumnList
This is the Lua module for Template:ColumnList. Below is the documentation for that template. |
Formats a given list in columns.
Syntax[edit]
{{ColumnList|<1>}}
Parameters[edit]
-
1
: The given list.
Examples[edit]
{{ColumnList| * {{Itemref|Wood Planks}} * {{Itemref|Redstone}} * {{Itemref|Glowstone Dust}} * {{Itemref|Wool}} * {{Itemref|Steak}} }}
gives...
local p = {}
local g = require("Module:Common")
p.pre = '<div style="-moz-column-width: 20em; -webkit-column-width: 20em; column-width: 20em; -moz-column-gap: 1em; -webkit-column-gap: 1em; column-gap: 1em;">'
p.post = '</div>'
function p.main(frame)
local data = frame.args[1]
if g.isGiven(data) then
return p.pre .. data .. p.post
else
return ""
end
end
return p
View All FTB Twitter Feed
Discussion
To discuss the topics on this wiki, you can visit our community forums!