Module:Extracted

From Heroes 3 wiki
Revision as of 20:23, 11 January 2024 by Imahero (talk | contribs)
Jump to navigation Jump to search

{{#invoke:extracted|extracted|filename.png}}


local p = {} --p stands for package

function p.extracted(frame)
	if frame.args['start'] then
		return ''
	end
	if frame.args['end'] then
		return '==See Also==\n{{:extracted}}'
	end
	size = '50px'
	if  mw.title.getCurrentTitle().text == 'Extracted/Sprites/Campaign' then
		size = '1px'	
	end
	return '[[file:' .. frame.args[1] .. '|' .. size .. ']]'
end

return p