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