17,230
edits
(allow the caller to specify args for the galleries (with "gallery_" prefix)) |
m (fix image links to use the link in {{Main}}) |
||
Line 45: | Line 45: | ||
end | end | ||
gallery:addFile( fileName or 'No Image.png', '[[' .. (link or section.name) .. '|' .. (fileCaption or section.name) .. ']]', { | gallery:addFile( fileName or 'No Image.png', '[[' .. (link or section.name) .. '|' .. (fileCaption or section.name) .. ']]', { | ||
link = section.name, | link = link or section.name, | ||
alt = fileCaption or section.name | alt = fileCaption or section.name | ||
} ) | } ) |