Модуль:FilePath
Для документации этого модуля может быть создана страница Модуль:FilePath/doc
local p = {}
function p.getWindowsPath(frame)
local filePath = frame.args[1]
filePath = filePath:gsub('/', '\\')
return filePath
end
function p.getOthersPath(frame)
local filePath = frame.args[1]
filePath = filePath:gsub('\\', '/')
return filePath
end
function p.getLink(frame)
local fileLink = frame.args[1]
fileLink = fileLink:gsub('\\', '/')
fileLink = fileLink:gsub('<br>', 'https://github.com/space-syndicate/space-station-14/tree/master/')
return fileLink
end
return p