Module:CIA World Factbook/doc

From The Global Wiki
< Module:CIA World Factbook
Revision as of 22:36, 15 December 2022 by en>Pppery (Link templates)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is the documentation page for Module:CIA World Factbook

Template:Module rating Used by {{CIA World Factbook}} and {{Cite CIA World Factbook}}

Usage

Country

{{#invoke:CIA World Factbook|country|country=|section=}}

Generates the URL for a country entry in the CIA World Factbook.
|country= is the topic country (optional)
|section= is the section anchor to link to (e.g., "People and Society") (optional)

Archive

{{#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.