Module:Qud time: Difference between revisions

18 bytes added ,  23:06, 15 November 2019
no edit summary
mNo edit summary
No edit summary
Line 53: Line 53:


function p.qudifyTime(year, days, hour, mins)
function p.qudifyTime(year, days, hour, mins)
  frame = mw.getCurrentFrame()
   local qudmonth = 'Uru Ux'
   local qudmonth = 'Uru Ux'
   local quddayint = 0
   local quddayint = 0
Line 102: Line 103:
   end
   end
   local qudday = tostring(quddayint) .. p.dayEnding(quddayint)
   local qudday = tostring(quddayint) .. p.dayEnding(quddayint)
   local qudstring = "Good " .. morningorevening .. " and welcome to the Official Caves of Qud Wiki! It is a lovely " .. qudsegment .. " on the " .. qudday .. " of " .. qudmonth .. "."
   local qudstring = frame:expandTemplate{ title = 'Qud time/format', args = { morningorevening=morningorevening, qudsegment=qudsegment, qudday=qudday, qudmonth=qudmonth} }
   return qudstring
   return qudstring
end
end