Module:AocUtils: Difference between revisions
Jump to navigation
Jump to search
no edit summary
imported>Leoetlino |
imported>Leoetlino No edit summary |
||
Line 55: | Line 55: | ||
function pack.get_aoc_canonical_path(frame) | function pack.get_aoc_canonical_path(frame) | ||
local path = frame.args.path | local path = frame.args.path | ||
local aoc_only = frame.args.aoc_only or false | |||
if not path then | if not path then | ||
return "(unknown)" | return "(unknown)" | ||
end | end | ||
if should_use_aoc_file_device(path) then | if aoc_only or should_use_aoc_file_device(path) then | ||
return "Aoc/0010/" + path | return "Aoc/0010/" + path | ||
end | end |