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