Content deleted Content added
drop ending period |
add comments |
||
Line 2:
local getArgs = require('Module:Arguments').getArgs
-- Format of archive link. Both %d represent the year of the archive
local format = ' [https://www.cia.gov/the-world-factbook/about/archives/download/factbook-%d.zip (Archived %d edition)]'
-- Function to fill in archive link, above:
-- Arguments:
-- args.archive: if non-empty, return nil
-- args.year: else if this is non-empty, use it for year
-- args.date: else if this is non-empty, parse it for a year
-- Returns:
-- the link, above, filled in with the year
function p._archive(args)
if args.archive then
|