Module:Slideshow: Difference between revisions
Created page with "local p = {} local function trim(s) return mw.text.trim(s or "") end function p.render(frame) local args = frame.args local items = args.items or args[1] or "" if trim(items) == "" then return "" end local output = {} table.insert(output, '<gallery mode="slideshow">') for line in mw.text.gsplit(items, "\n", true) do line = trim(line) if line ~= "" then local filename, caption = line:match("^(.-)%s*::%s*(.*)$") if filename then filename = tr..." |
No edit summary |
||
| Line 14: | Line 14: | ||
local output = {} | local output = {} | ||
table.insert(output, '<gallery mode="slideshow">') | table.insert(output, '<gallery mode="slideshow" class="adaris-slideshow">') | ||
for line in mw.text.gsplit(items, "\n", true) do | for line in mw.text.gsplit(items, "\n", true) do | ||