Module:TableGenerator: Difference between revisions

Jump to navigation Jump to search
Sur (talk | contribs)
mNo edit summary
Sur (talk | contribs)
m function docs
Line 1: Line 1:
local p = {}
local p = {}


--{{#invoke: TableGenerator | generateWikiTable | cols=3 | Item 1 | Item 2 | Item 3 | Item 4 | Item 5 }}
--creates
--Item 1, Item 2, Item 3
--Item 4, item 5
function p.generateWikiTable(frame)
function p.generateWikiTable(frame)
     -- Get the arguments passed to the template
     -- Get the arguments passed to the template
Line 35: Line 39:
end
end


 
--{{#invoke: TableGenerator | generateHtmlTable | cols=3 | Item 1 | Item 2 | Item 3 | Item 4 | Item 5 }}
--creates
--Item 1, Item 2, Item 3
--Item 4, item 5
function p.generateHtmlTable(frame)
function p.generateHtmlTable(frame)
     -- Get the arguments passed to the template
     -- Get the arguments passed to the template