Module:Extracted: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 16: | Line 16: | ||
size = '|90px' | size = '|90px' | ||
elseif mw.title.getCurrentTitle().text:find('Extracted/Sprites/TownView') then | elseif mw.title.getCurrentTitle().text:find('Extracted/Sprites/TownView') then | ||
size = '|200px' | |||
elseif mw.title.getCurrentTitle().text:find('Extracted/UI/Back') then | |||
size = '|200px' | size = '|200px' | ||
end | end |
Revision as of 21:33, 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 = ''
if mw.title.getCurrentTitle().text:find('Extracted/Sprites/BattleBackgrounds') then
size = '|200px'
elseif mw.title.getCurrentTitle().text:find('Extracted/Sprites/Campaign') then
size = '|90px'
elseif mw.title.getCurrentTitle().text:find('Extracted/Sprites/TownView') then
size = '|200px'
elseif mw.title.getCurrentTitle().text:find('Extracted/UI/Back') then
size = '|200px'
end
return '[[file:' .. frame.args[1] .. size .. ']]'
end
return p