Die Dokumentation für dieses Modul kann unter Modul:Vorlage:Infobox Kennzahl/Doku erstellt werden
--[[
Modul für Hilfsfunktionen für Vorlage:Infobox Kennzahl
]]
local p = { }
function p.maketable(frame)
--[[ makes table for quantities
gets input as e.g. <math>v</math> = Velocity, <math>c</math>=Speed of light
testrow="\n|-\n|"..frame:preprocess("<math>t</math>").."||time"]]
local tablehead="\n{|class=\"wikitable\""
local tablecontent=string.gsub(","..frame.args[1], ",%s*(.-)=%s*","\n|-\n| %1 ||")
local tableend="\n|}"
return tablehead..tablecontent..tableend
end
return p