Модуль:FilePath: различия между версиями
Материал из Space Station 14 | Время приключений Вики
Дополнительные действия
Новая страница: «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>', '<br>https://github.com/AdventureTimeSS14/space_station_ADT/tree/master/')...» |
(нет различий)
|
Текущая версия от 19:43, 17 марта 2025
Для документации этого модуля может быть создана страница Модуль: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>', '<br>https://github.com/AdventureTimeSS14/space_station_ADT/tree/master/')
fileLink = fileLink:gsub(' ', '')
return fileLink
end
return p