Interested Article - DataStorage

Документация
return {
	init=function(frame)
		local f = frame:getParent();
		_G.DataStorage = {};
		for k,v in pairs(f.args) do
			DataStorage[k]=v
		end;
		mw.loadData('Module:DataStorage/data');
		return #DataStorage;
	end;
	d=function(frame)
		local f=frame:getParent();
		local s=mw.loadData('Module:DataStorage/data');
		return s[f.args[1]] or s[tonumber(f.args[1])]
	end;
}
Источник —

Same as DataStorage