Module:Lua test
Jump to navigation
Jump to search
Lua test documentation
local p = {}
function p.hello(frame)
return frame:preprocess( '{{#widget:Chartjs_bar|title = Test Predicted world population (millions) in 2050|data_labels = Africa, Asia, Europe, Latin America, North America|data_series = ' .. math.random(300, 5000) .. ',' .. math.random(30, 500) .. ',' .. math.random(300, 5000) .. ',' .. math.random(300, 5000) .. ',' .. math.random(300, 5000) .. '|data_identifier = Population (millions)|colors = #3e95cd, #8e5ea2, #3cba9f, #e8c3b9, #c45850|legend = yes/no <!-- default: yes -->|orientation = vertical/horizontal <!-- default: vertical -->}}' )
end
return p