Module:Guidance: Difference between revisions

Jump to navigation Jump to search
Work in progress checkpoint.
imported>Pingu
No edit summary
imported>Pingu
(Work in progress checkpoint.)
Line 13: Line 13:
},
},
{ "jumpscare",
{ "jumpscare",
"jump scares",
"a jump scare",
"[[:wikipedia:jump scare|jump scares]]",
"a [[:wikipedia:jump scare|jump scare]]",
1,
1,
},
},
Line 104: Line 104:
do
do
-- Timestamp parsing
-- Timestamp parsing
if string.match(frame.args[1],r[i][1]..'%([%d,:-]*%)') then
if string.match(frame.args[1],r[i][1]..'%([%d,:-]*%)') and r[i][4] == 1 then
rs = string.match(frame.args[1],r[i][1]..'%([%d,:-]*%)')
local ri = 1
rt = string.match(rs,'%([%d,:-]*%)')
local rt = {}
mw.log(rt)
for p in string.gmatch(string.match(frame.args[1],r[i][1].."%([%d,:-]*%)"), "[%d:-]+") do
if string.match(rt,"-") then
rt.ri = p
rt = string.gsub(rt,'%('," (from ")
mw.log(rt.ri)
rt = string.gsub(rt,"-"," to ")
ri = ri + 1
else
end
rt = string.gsub(rt,'%('," (at ")
elseif string.match(frame.args[1],r[i][1]) and r[i][4] == 1 then
end
rd = r[i][2].." for the whole duration"
mw.log(rt)
rs = r[i][2]..rt
elseif string.find(frame.args[1],r[i][1]) then
rs = r[i][2].." (for the whole duration)"
end
if rd == nil then
rd = rs
else
rd = rs.." and "..rd
end
end
end
end
return rd
end
end


return p
return p
Anonymous user

Navigation menu