Модуль:Entity Lookup/data: различия между версиями

Материал из Space Station 14 Вики
мНет описания правки
мНет описания правки
Строка 1: Строка 1:
local entities = "Участник:Mhamster/entity_prototypes.json" -- Only for test. If you are seing this then we forgot to change it :)
local entities = "Участник:Mhamster/entity_prototypes.json" -- Only for test. If you are seing this then we forgot to change it :(
-- local entities = "User:IanComradeBot/entity_prototypes.json"
-- local entities = "User:IanComradeBot/entity_prototypes.json"


return {
return {
entities = mw.text.jsonDecode(mw.title.new(entities, "User"):getContent()),
entities = mw.text.jsonDecode(mw.title.new(entities, "User"):getContent())
}
}

Версия от 22:09, 21 сентября 2023

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

local entities = "Участник:Mhamster/entity_prototypes.json" -- Only for test. If you are seing this then we forgot to change it :( 
-- local entities = "User:IanComradeBot/entity_prototypes.json"

return {
	entities = mw.text.jsonDecode(mw.title.new(entities, "User"):getContent())
}