Jump to content

Module:Sandbox/CAS222222221

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 風中的刀劍 (talk | contribs) at 09:39, 21 July 2015. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

p = {}

function p.main(frame)
	args = frame.args
	
	local function InfoboxImage(image, upright)
		return frame:expandTemplate{ title = 'Infobox image', args = { ['image'] = image, ['upright'] = upright }  }
	end
	
	if args.image2 then
		return InfoboxImage(args.image2, '1.05')
	else
		return InfoboxImage(args.image, '1.05')
	end
	
end

return p