Модуль:IanComradeBot/prototypes/fills/Item.json/data: различия между версиями
Pok (обсуждение | вклад) Нет описания правки |
Pok (обсуждение | вклад) мНет описания правки |
||
| Строка 1: | Строка 1: | ||
local | local title = mw.title.new("User:IanComradeBot/prototypes/fills/Item.json", "User") | ||
local jsonData = title and title:getContent() or "" | |||
local success, data = pcall(mw.text.jsonDecode, jsonData) | |||
return (success and type(data) == "table") and data or {} | |||
} | |||