VOOZH about

URL: https://minecraft.wiki/w/Module:AnimateText

⇱ Module:AnimateText – Minecraft Wiki


Module:AnimateText

From Minecraft Wiki
Jump to navigation Jump to search
Documentation[view] [edit] [history] [purge]Jump to code ↴

Implements {{AnimateText}}.

[view] [edit] [history] [purge]The above documentation is transcluded from Module:AnimateText/doc.
localp={}
functionp.animate(f)
localargs=f
iff==mw.getCurrentFrame()then
args=f:getParent().args
end
localtext={}
localrows=args[1]
iftype(rows)~="table"then
rows=mw.text.split(rows,'%s*,,%s*')
end
for_,rowinipairs(rows)do
ifrow==''then
table.insert(text,'<span><br></span>')
else
table.insert(text,'<span>'..row..'</span>')
end
end
text[1]=text[1]:gsub('^<span>','<span class="animated-active">')
return'<span class="animated">'..table.concat(text)..'</span>'
end
returnp
Retrieved from "https://minecraft.wiki/w/Module:AnimateText?oldid=3634064"

Navigation menu