Module:Biota infobox/test

From blackwiki
< Module:Biota infobox
Revision as of 14:17, 28 January 2020 by blackwiki>Jts1882 (create with skeleton convert taxobox function)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Documentation for this module may be created at Module:Biota infobox/test/doc

require('Module:No globals')

local p = {}  -- exposed variables
local args = {}  

function p.convert(frame)
	args = frame.args
	local template = {'{{speciesbox '};		
	
	
	for k,v in pairs(args) do
	    table.insert (template, table.concat ({' |'..k..'=', v}));	
	end

	table.insert (template, '}}');												-- close the template
	
	return table.concat (template, '\n');			
end

return p