User:Jc3s5h/sandbox/Module:M

local p = {}

function p.main( frame ) local signNumber = tonumber(frame.args[1]) local year = 0 -- initialize so it will defined no matter which path the if	-- statement takes if frame.args[2] == nil then t = os.date("*t") -- Get the current year. year = tonumber(t["year"]) else year = tonumber(frame.args[2]) -- The call is requesting a particular year. end -- red writing if (year < 2015) or (year > 2050) or ((year == 2050) and (signNumber == 10)) then return ' Error: Only 2015-2050 '.. '(except Capricorn 2050) are supported. ' end

--Template being replaced starts with Aries, which starts at 0 deg. longitude, --but we want to start with Aquarius, the sign that begins in January.

sn = {3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2} signNumber = sn[signNumber] year = year-2015

zd = { "January 20", "February 18", "March 20", "April 20", "May 21", "June 21", "July 23", "August 23", "September 23", "October 23", "November 22", "December 22", "January 20", "February 19", "March 20", "April 19", "May 20", "June 20", "July 22", "August 22", "September 22", "October 22", "November 21", "December 21", "January 19", "February 18", "March 20", "April 19", "May 20", "June 21", "July 22", "August 22", "September 22", "October 23", "November 22", "December 21", "January 20", "February 18", "March 20", "April 20", "May 21", "June 21", "July 22", "August 23", "September 23", "October 23", "November 22", "December 21", "January 20", "February 18", "March 20", "April 20", "May 21", "June 21", "July 23", "August 23", "September 23", "October 23", "November 22", "December 22", "January 20", "February 19", "March 20", "April 19", "May 20", "June 20", "July 22", "August 22", "September 22", "October 22", "November 21", "December 21", "January 19", "February 18", "March 20", "April 19", "May 20", "June 21", "July 22", "August 22", "September 22", "October 23", "November 22", "December 21", "January 20", "February 18", "March 20", "April 20", "May 21", "June 21", "July 22", "August 23", "September 23", "October 23", "November 22", "December 21", "January 20", "February 18", "March 20", "April 20", "May 21", "June 21", "July 23", "August 23", "September 23", "October 23", "November 22", "December 22", "January 20", "February 19", "March 20", "April 19", "May 20", "June 20", "July 22", "August 22", "September 22", "October 22", "November 21", "December 21", "January 19", "February 18", "March 20", "April 19", "May 20", "June 21", "July 22", "August 22", "September 22", "October 23", "November 22", "December 21", "January 20", "February 18", "March 20", "April 20", "May 21", "June 21", "July 22", "August 23", "September 23", "October 23", "November 22", "December 21", "January 20", "February 18", "March 20", "April 20", "May 21", "June 21", "July 23", "August 23", "September 23", "October 23", "November 22", "December 22", "January 20", "February 19", "March 20", "April 19", "May 20", "June 20", "July 22", "August 22", "September 22", "October 22", "November 21", "December 21", "January 19", "February 18", "March 20", "April 19", "May 20", "June 21", "July 22", "August 22", "September 22", "October 23", "November 22", "December 21", "January 20", "February 18", "March 20", "April 20", "May 20", "June 21", "July 22", "August 23", "September 22", "October 23", "November 22", "December 21", "January 20", "February 18", "March 20", "April 20", "May 21", "June 21", "July 23", "August 23", "September 23", "October 23", "November 22", "December 22", "January 20", "February 19", "March 20", "April 19", "May 20", "June 20", "July 22", "August 22", "September 22", "October 22", "November 21", "December 21", "January 19", "February 18", "March 20", "April 19", "May 20", "June 21", "July 22", "August 22", "September 22", "October 23", "November 22", "December 21", "January 20", "February 18", "March 20", "April 20", "May 20", "June 21", "July 22", "August 23", "September 22", "October 23", "November 22", "December 21", "January 20", "February 18", "March 20", "April 20", "May 21", "June 21", "July 22", "August 23", "September 23", "October 23", "November 22", "December 22", "January 20", "February 19", "March 20", "April 19", "May 20", "June 20", "July 22", "August 22", "September 22", "October 22", "November 21", "December 21", "January 19", "February 18", "March 20", "April 19", "May 20", "June 21", "July 22", "August 22", "September 22", "October 23", "November 21", "December 21", "January 19", "February 18", "March 20", "April 19", "May 20", "June 21", "July 22", "August 23", "September 22", "October 23", "November 22", "December 21", "January 20", "February 18", "March 20", "April 20", "May 21", "June 21", "July 22", "August 23", "September 23", "October 23", "November 22", "December 22", "January 20", "February 19", "March 20", "April 19", "May 20", "June 20", "July 22", "August 22", "September 22", "October 22", "November 21", "December 21", "January 19", "February 18", "March 20", "April 19", "May 20", "June 20", "July 22", "August 22", "September 22", "October 23", "November 21", "December 21", "January 19", "February 18", "March 20", "April 19", "May 20", "June 21", "July 22", "August 22", "September 22", "October 23", "November 22", "December 21", "January 20", "February 18", "March 20", "April 20", "May 21", "June 21", "July 22", "August 23", "September 23", "October 23", "November 22", "December 22", "January 20", "February 19", "March 19", "April 19", "May 20", "June 20", "July 22", "August 22", "September 22", "October 22", "November 21", "December 21", "January 19", "February 18", "March 20", "April 19", "May 20", "June 20", "July 22", "August 22", "September 22", "October 23", "November 21", "December 21", "January 19", "February 18", "March 20", "April 19", "May 20", "June 21", "July 22", "August 22", "September 22", "October 23", "November 22", "December 21", "January 20", "February 18", "March 20", "April 20", "May 21", "June 21", "July 22", "August 23", "September 23", "October 23", "November 22", "December 21", "January 20", "February 18", "March 19", "April 19", "May 20", "June 20", "July 22", "August 22", "September 22", "October 22", "November 21", "December 21", "January 19", "February 18", "March 20", "April 19", "May 20", "June 20", "July 22", "August 22", "September 22", "October 22", "November 21", "December 21", "January 19", "February 18", "March 20", "April 19", "May 20", "June 21", "July 22", "August 22", "September 22", "October 23", "November 22", "December 21", }

return zd[signNumber+12*year].." – "..zd[1+signNumber+12*year] end

return p