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

Материал из Space Station 14 Вики
Новая страница: «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 {}

Текущая версия от 13:45, 7 марта 2026

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

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