Module:CIA World Factbook/doc explained

Used by and

Usage

Country

<nowiki>{{</nowiki>#invoke:CIA World Factbook|''country''|country=|section=<nowiki>}}</nowiki>

Generates the URL for a country entry in the CIA World Factbook.

is the topic country (optional)

is the section anchor to link to (e.g., "People and Society") (optional)

Archive

<nowiki>{{</nowiki>#invoke:CIA World Factbook|''archive''|year=|date=|archive=<nowiki>}}</nowiki>

Generates a link to the annual archives of the CIA World Factbook.

the year of the archive

the date of the article in the Factbook (either on the article itself, or the access date of the article)

the url or date of the archive of the article.

If is non-empty, then nothing is produced. Else, if is non-empty, then the link to that year's archive is produced. Else, if 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.