Open main menu
Home
Random
Log in
Settings
About Starlight Wiki
Disclaimers
Starlight Wiki
Search
Changes
← Older edit
Module:StarlightDate
(view source)
Revision as of 10:18, 27 November 2018
310 bytes added
,
10:18, 27 November 2018
no edit summary
Line 1:
Line 1:
local p = {} -- p stands for package
local p = {} -- p stands for package
−
+
--
function p.hello( frame )
function p.hello( frame )
return "Hello, world!"
return "Hello, world!"
end
end
−
return
p
+
local Date = require('Module:Date')._Date
+
+
--local show -- function defined below to display results
+
+
local function current_date()
+
local now_date = Date('currentdate')
+
local now_datetime = Date('currentdatetime')
+
return
now_date.year
+
end
+
+
local function main()
+
return current_date()
+
end
+
+
return { main = main }
Stylo
Bureaucrats
,
Interface administrators
,
Administrators
2,284
edits