Dota 2 Wiki
Advertisement

Documentation for Module:Team icon Jump to code ↴ [ edit | purge ]

Reality Rift icon
▶️ Planeshift.
The documentation for this module can be found at Template:Team icon.
You may be forwarded to another wiki language, in case a translation is not available.


local p = {}

function p.main( frame )
	local args = frame:getParent().args
	return p._main( args )
end

function p._main( args )
	local image = 'File:Team icon ' .. args[1] .. '.png'
	local size = args[2] or '40'
	
	if mw.title.new( image ).fileExists == false then
		image = 'File:Team icon Default.png'
	end
	
	return '[[' .. image .. '|' .. size .. 'px|link=' .. args[1] .. ']]'
end

return p
Advertisement