Module:CIA World Factbook/doc: Difference between revisions

From The Global Wiki
Jump to navigation Jump to search
en>Pppery
(Link templates)
 
m (1 revision imported)
 
(No difference)

Latest revision as of 02:14, 18 January 2023

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.