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

Новая страница: «local title = mw.title.new("User:IanComradeBot/chem prototypes.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 {}»
 
м Auto-create loader module for chem_prototypes.json
Метка: ручная отмена
 
(не показано 5 промежуточных версий этого же участника)
Строка 1: Строка 1:
local title = mw.title.new("User:IanComradeBot/chem prototypes.json")
local loader = require("Module:JsonLoader")
local jsonData = title and title:getContent() or ""
return loader.getFromTitle("Участник:IanComradeBot/chem_prototypes.json")
local success, data = pcall(mw.text.jsonDecode, jsonData)
return (success and type(data) == "table") and data or {}