Модуль: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
Строка 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("User:IanComradeBot/chem_prototypes.json")
local success, data = pcall(mw.text.jsonDecode, jsonData)
return (success and type(data) == "table") and data or {}

Версия от 13:24, 25 февраля 2026

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

local loader = require("Module:JsonLoader")
  return loader.getFromTitle("User:IanComradeBot/chem_prototypes.json")