Jump to content

Module:CIA World Factbook/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Hike395 (talk | contribs) at 02:59, 27 September 2022 (Usage: one more thing). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.


Usage

{{#invoke:CIA World Factbook|archive|year=|date=|archive=}}

Generates a link to the annual archives of the CIA World Factbook.
|year= the year of the archive
|date= the date of the article in the Factbook (either on the article itself, or the access date of the article)
|archive= the url or date of the archive of the article.

If |archive= is non-empty, then nothing is produced. Else, if |year= is non-empty, then the link to that year's archive is produced. Else, if |date= is non-empty, it is parsed for a year and that year's archive is produced.

If the year is either the current year or the previous year, no archive is returned.