Module:WorkshopsData2: Difference between revisions
From Against the Storm Official Wiki
m (Testing) Tag: Replaced |
m (Created to instantiate a data model instance for workshops data) |
||
Line 3: | Line 3: | ||
-- Initialize a new instance of the BaseDataModel, configured to load the workshops data | |||
local BaseDataModel = require("Module:BaseDataModel") | local BaseDataModel = require("Module:BaseDataModel") | ||
local DATA_FILE = "Module:WorkshopsData/Workshops.json" | local DATA_FILE = "Module:WorkshopsData/Workshops.json" | ||
local baseDataModel = BaseDataModel.new(DATA_FILE) | local baseDataModel = BaseDataModel.new(DATA_FILE) | ||
-- Return the instance for workshops data, not this module itself! | |||
return baseDataModel | return baseDataModel |
Revision as of 21:44, 24 October 2024
Documentation for this module may be created at Module:WorkshopsData2/doc
---@module WorkshopsData local WorkshopsData = {} -- Initialize a new instance of the BaseDataModel, configured to load the workshops data local BaseDataModel = require("Module:BaseDataModel") local DATA_FILE = "Module:WorkshopsData/Workshops.json" local baseDataModel = BaseDataModel.new(DATA_FILE) -- Return the instance for workshops data, not this module itself! return baseDataModel