Модуль:Chemistry Lookup/data

Материал из SUNRISE WIKI
Версия от 13:29, 12 февраля 2024; Reach7 (обсуждение | вклад) (Новая страница: «local chem = "User:IanComradeBot/chem_prototypes.json" local react = "User:IanComradeBot/react_prototypes.json" return { chem = mw.text.jsonDecode(mw.title.new(chem, "User"):getContent()), react = mw.text.jsonDecode(mw.title.new(react, "User"):getContent()), groupDirection = { Drinks = "Drinks"; Foods = "Cooking"; } }»)

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

local chem = "User:IanComradeBot/chem_prototypes.json"
local react = "User:IanComradeBot/react_prototypes.json"

return {
	chem = mw.text.jsonDecode(mw.title.new(chem, "User"):getContent()),
	react = mw.text.jsonDecode(mw.title.new(react, "User"):getContent()),
	groupDirection = {
		Drinks = "Drinks";
		Foods = "Cooking";
	}
}