Module:Extracted: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 8: | Line 8: | ||
return frame.args['end'] | return frame.args['end'] | ||
end | end | ||
return '[[file:' .. frame.args[1] .. '| | size = '50px' | ||
if mw.title.getCurrentTitle().text == 'Extracted/Sprites/Campaign' then | |||
size = '1px' | |||
end | |||
return '[[file:' .. frame.args[1] .. '|' .. size .. ']]' | |||
end | end | ||
return p | return p |
Revision as of 18:55, 11 January 2024
{{#invoke:extracted|extracted|filename.png}}
local p = {} --p stands for package
function p.extracted(frame)
if frame.args['start'] then
return frame.args['start']
end
if frame.args['end'] then
return frame.args['end']
end
size = '50px'
if mw.title.getCurrentTitle().text == 'Extracted/Sprites/Campaign' then
size = '1px'
end
return '[[file:' .. frame.args[1] .. '|' .. size .. ']]'
end
return p