Toggle search
Search
Toggle menu
Notifications
Toggle personal menu
Editing
Module:Animate
From WoopMC
Views
Read
Edit
View history
associated-pages
Module
Discussion
More actions
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
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['link'] or 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 .. link .. ']]</span>' ) end end images[1] = images[1]:gsub( '^<span>', '<span class="animated-active">' ) return '<span class="animated">' .. table.concat( images ) .. '</span>' end return p
Summary:
Please note that all contributions to WoopMC may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
WoopMC:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)