Модуль:IanComradeBot/prototypes/lathe/recipe pack.json/data: различия между версиями

Нет описания правки
м Update via atematic bot
 
(не показана 1 промежуточная версия этого же участника)
Строка 1: Строка 1:
local title = mw.title.new("Участник:IanComradeBot/prototypes/lathe/recipe pack.json")
local loader = require("Module:JsonLoader")
local jsonData = title and title:getContent() or ""
return loader.getFromTitle("Участник:IanComradeBot/prototypes/lathe/recipe pack.json")
local success, data = pcall(mw.text.jsonDecode, jsonData)
return (success and type(data) == "table") and data or {}