Module:BahaiNewsTest
From Bahaipedia
local module = {}
-- Define a list of issue numbers and map to date published. [1] would be Issue #1
local publicationDate_map = {
[212]="October, 1948",
[213]="November, 1948",
[214]="December, 1948",
}
local maybethisway = {
[212] = {date = "October, 1948", },
[213] = {date = "November, 1948", },
}
-- Accept the input as the publication number, return date published
function module.publicationDate( frame )
local issueNumber = tonumber(frame.args[1])
return publicationDate_map[issueNumber]
end
function module.publicationDate2( frame )
local issueNumber = tonumber(frame.args[1])
return maybethisway[issueNumber].date
end
return module