Модуль:IanComradeBot/ftl/ru-RU.json/data: различия между версиями

Материал из Space Station 14 Вики
Новая страница: «local title = mw.title.new("User:IanComradeBot/ftl/ru-RU.json", "User") local content = title and title:getContent() or "" local success, data = pcall(mw.text.jsonDecode, content) if not success or type(data) ~= "table" then data = {} end return data»
 
м Update via atematic bot
 
(не показаны 2 промежуточные версии этого же участника)
Строка 1: Строка 1:
local title = mw.title.new("User:IanComradeBot/ftl/ru-RU.json", "User")
local loader = require("Module:JsonLoader")
local content = title and title:getContent() or ""
return loader.getFromTitle("Участник:IanComradeBot/ftl/ru-RU.json")
 
local success, data = pcall(mw.text.jsonDecode, content)
if not success or type(data) ~= "table" then
    data = {}
end
 
return data

Текущая версия от 11:47, 17 июля 2025

Для документации этого модуля может быть создана страница Модуль:IanComradeBot/ftl/ru-RU.json/data/doc

local loader = require("Module:JsonLoader")
return loader.getFromTitle("Участник:IanComradeBot/ftl/ru-RU.json")