Editing Module:Gnoblin
From Deepest Lore
More actions
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 9: | Line 9: | ||
if entry ~= "" then | if entry ~= "" then | ||
local | local parts = mw.text.split(entry, "::", true) | ||
local file = mw.text.trim(parts[1] or "") | |||
local | local desc = mw.text.trim(parts[2] or "") | ||
if file ~= "" then | if file ~= "" then | ||
local galleryEntry = "File:" .. file | local galleryEntry = "File:" .. file | ||
if | if desc ~= "" then | ||
galleryEntry = galleryEntry .. "|" .. | galleryEntry = galleryEntry .. "|" .. desc | ||
end | end | ||
| Line 38: | Line 29: | ||
end | end | ||
return | return frame:extensionTag{ | ||
name = "gallery", | |||
content = table.concat(entries, "\n") | |||
} | |||
end | end | ||