Module:Time/sandbox: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 13:
local data_sandbox;
if frame:getTitle():find('sandbox', 1, true) then -- if in sandbox
data_sandbox = true; -- bolean to toggle usage of sandbox data (canmodule changewhen this module is in a sandbox (changeable)
else
data_sandbox = false; -- DO NOT CHANGE
Line 416:
 
local function time (frame)
local args = getArgs (frame); -- create the args table
local utc_timestamp, timestamp; -- current or time timestamps; timestamp is local ST or DST time used in output
local tz_abbr; -- select ST or DST timezone abbreviaion used in output
Line 426:
data = mw.loadData (data); -- load the data module
cfg = data.cfg; -- get the configuration table
local formats = datacfg.formats; -- get the formats table
local tz_aliases = {} -- create the general aliases table
local tz_aliases = {}
local aliases_tabledst_table = data.tz_aliasesdst_tz; -- get the dst aliases tabletalbe
local dst_tablealiases_table = data.dst_tztz_aliases; -- get the other aliases table
local tz_data = data.tz_data; -- get the tz data table