![]() |
VOOZH | about |
Implements {{AnimateText}}.
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