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

Материал из Space Station 14 Вики
Новая страница: «local title = mw.title.new("Участник:IanComradeBot/prototypes/fills/chem/drink.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 {}»
 
м Update via atematic bot
 
Строка 1: Строка 1:
local title = mw.title.new("Участник:IanComradeBot/prototypes/fills/chem/drink.json")
local loader = require("Module:JsonLoader")
local jsonData = title and title:getContent() or ""
return loader.getFromTitle("Участник:IanComradeBot/prototypes/fills/chem/drink.json")
local success, data = pcall(mw.text.jsonDecode, jsonData)
return (success and type(data) == "table") and data or {}

Текущая версия от 11:32, 17 июля 2025

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

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