Jump to content

Module:Person

From WhiskerWiki

Documentation for this module may be created at Module:Person/doc

-- ================================================================================
-- Module dependencies
-- ================================================================================
local getArgs = require('Module:Arguments').getArgs
local cargo = mw.ext.cargo -- for cargo queries if needed
local ibf = require("Module:Infobox_functions")
local html = mw.html.create()



local p = {}


function p.main(frame)
	
	local args = frame:getParent().args
	-- simplify argument syntax	
	local title = mw.title.getCurrentTitle().text
	local full_name = args.Full_name
	local role = args.Role
	local email = args.Email
	local user_page = args.User_page
	
    
	-- Final formatting of output
	-- color control for the infobox
	local html_theme_class = "-base"
        
        
	-- start infobox
	root = ibf.create_infobox(root, title, subtitle, html_theme_class)
	root = ibf.add_image(root, args.Image, html_theme_class)
	root = ibf.add_row(root, 'Wiki role:', role, html_theme_class, "string")
	root = ibf.add_row(root, 'Email:', email, html_theme_class, "string")
	return root
end

return p
Cookies help us deliver our services. By using our services, you agree to our use of cookies.