Module:Sandbox/Χ/InfoboxMaker/testcases explained

local getArgs = require('Module:Arguments').getArgslocal yesno = require('Module:Yesno')local ib = require('Module:Sandbox/Χ/InfoboxMaker')local br = require('Module:Separated entries').br

local p = function p.main(frame) local args = getArgs(frame) ib.initialize(args) ib.setup local hp = args['honorific prefix'] or args['honorific_prefix'] or args['honorific-prefix'] local name = args.name or mw.title.getCurrentTitle.text local hs = args['honorific suffix'] or args['honorific_suffix'] or args['honorific-suffix'] hp = hp and mw.html.create('span'):cssText('font-size:77%;font-weight:normal;'):wikitext(hp) or "" name = name and mw.html.create('span'):addClass('fn'):wikitext(name) or "" hs = hs and mw.html.create('span'):cssText('font-size:77%;font-weight:normal;'):wikitext(hs) or "" ib.above ib.addImage --ib.addRow ib.addRow ib.addRow ib.addRow ib.addRow ib.addRepeatedRow ib.addCategory ib.addCategory ib.addSection ib.addSection ib.addRepeatedSection -- return ib.makeInfoboxend

return p