×
Create a new article
Write your page title here:
We currently have 770 articles on Angry Birds Wiki. Type your article name above or create one of the articles listed here!



    Angry Birds Wiki
    770Articles
    Revision as of 04:56, 24 March 2020 by fandom:angrybirds>Guilherme Santos1 (Created page with "local p = {} function p.animate( f ) local args = f if f == mw.getCurrentFrame() then args = f:getParent().args end local files = args[1] or '' local size = args[2] or ...")
    (diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
    This wiki has been automatically closed because there have been no edits or log actions made within the last 60 days. If you are a user (who is not the bureaucrat) that wishes for this wiki to be reopened, please request that at Requests for reopening wikis. If this wiki is not reopened within 6 months it may be deleted. Note: If you are a bureaucrat on this wiki, you can go to Special:ManageWiki and uncheck the "Closed" box to reopen it.

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

    local p = {}
    function p.animate( f )
    	local args = f
    	if f == mw.getCurrentFrame() then
    		args = f:getParent().args
    	end
    	local files = args[1] or ''
    	local size = args[2] or ''
    	local link = args[3] or ''
    	
    	if size ~= '' then
    		size = '|' .. size
    	end
    
    	if link ~= '' then
    		link = '|link=' .. link
    	end
    	
    	local images = {}
    	for image in mw.text.gsplit( files, '%s*;%s*' ) do
    		if image == '' then
    			table.insert( images, '<span><br></span>' )
    		else
    			table.insert( images, '<span>[[File:' .. image .. size .. ']]</span>' )
    		end
    	end
    	images[1] = images[1]:gsub( '^<span>', '<span class="animated-active">' )
    	
    	return '<span class="animated">' .. table.concat( images ) .. '</span>'
    end
    return p
    
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.