Editing Module:Video
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 2: | Line 2: | ||
function p.file( frame ) | function p.file( frame ) | ||
-- fileexists = frame:expandTemplate{title = 'exist', args = {'file:'..frame.args[1]..'.webm', 'yes'}} | |||
-- fileexists = frame:expandTemplate{title = 'exist', args = {'file:'..frame.args[1]..'.ogg', 'yes'}} | |||
local lines = p.split(frame.args[1], '-') | local lines = p.split(frame.args[1], '-') | ||
local | local result = '' | ||
for i, line in ipairs(lines) do | for i, line in ipairs(lines) do | ||
if i + 0 >= #lines then | |||
if i + | |||
break | break | ||
end | end | ||
result = result .. line | |||
end | end | ||
return (result) | |||
-- fileexists = frame:expandTemplate{title = 'exist', args = {'file:'..frame.args[1]..'.png', 'yes'}} | |||
-- if frame.args[1] == 'if' then | |||
-- return 'if' | |||
-- elseif frame.args[1] == 'elseif' then | |||
-- return 'elseif' | |||
-- else | |||
-- return 'else' | |||
-- end | |||
end | end | ||