Jump to content

Module:Archive-timeline

From Wikitech
Module documentation

Short anecdotes by year for use in Template:Archive.

See also

-- Short anecdotes by year for use in [[Template:Archive]]
--
local timeline = {
	-- https://en.wikipedia.org/w/index.php?title=1950&oldid=908302504
	["1950"] = "United States President Harry S. Truman orders the development of the hydrogen bomb",

	-- https://en.wikipedia.org/w/index.php?title=2004&oldid=907904157
	["2004"] = "Mark Zuckerberg creates Facebook",

	-- https://en.wikipedia.org/w/index.php?title=2005&oldid=908345713
	["2005"] = "The first YouTube video is uploaded",

	-- https://en.wikipedia.org/w/index.php?title=2006&oldid=907909573
	["2006"] = "The IAU demotes Pluto from planet to the dwarf planet",

	-- https://en.wikipedia.org/w/index.php?title=2007&oldid=906058026
	["2007"] = "Steve Jobs introduces the original Apple iPhone",

	-- https://en.wikipedia.org/w/index.php?title=2008&oldid=908430892
	["2008"] = "The Spotify music streaming service is launched in Sweden",

	["2009"] = "The death of American pop star Michael Jackson triggers an outpouring of worldwide grief",
	-- https://en.wikipedia.org/w/index.php?title=2009&oldid=908645735
	-- 2009: The first block of the Bitcoin blockchain is established
	-- https://en.wikipedia.org/w/index.php?title=2009&oldid=1220286897
	-- 2009: The death of American pop star Michael Jackson triggers an outpouring of worldwide grief

	-- https://en.wikipedia.org/w/index.php?title=2010&oldid=908693123
	["2010"] = "The Winter Olympics are held in Vancouver, Canada",

	["2011"] = "Iceland's most active volcano erupts and causes disruption to air travel across Europe (ref. T25223)",
	-- https://en.wikipedia.org/w/index.php?title=2011&oldid=908660745
	-- 2011: Iceland's most active volcano erupts and causes disruption to air travel across Europe (https://phabricator.wikimedia.org/T25223)
	-- 2011: India and Bangladesh sign a pact to end their 40-year border demarcation dispute
	-- 2011: Osama bin Laden was killed in May 2011 during an American military operation in Pakistan
	-- 2011: An estimated two billion people watch the wedding of Prince William and Kate Middleton

	-- https://en.wikipedia.org/w/index.php?title=2012&oldid=907887565
	["2012"] = "Vladimir Putin is elected President of Russia (again)",

	-- https://en.wikipedia.org/w/index.php?title=2013&oldid=988063849
	["2013"] = "Edward Snowden discloses a mass surveillance program and flees the country",

	["2014"] = "Malaysia Airlines Flight 370 disappears over the Gulf of Thailand with 239 people on board",
	-- https://en.wikipedia.org/w/index.php?title=2014&oldid=988064178
	-- 2014: The WHO reports a major Ebola outbreak outside West Africa. The worldwide epidemic lasts until mid-2016
	-- 2014: Malaysia Airlines Flight 370 disappears over the Gulf of Thailand with 239 people on board
	-- 2014: Scotland votes, barely, against independence from the United Kingdom

	["2015"] = "Volkswagen is alleged to have rigged diesel emissions tests worldwide",
	-- https://en.wikipedia.org/w/index.php?title=2015&oldid=988072159
    -- 2015: SpaceX lands its reusable Falcon 9 rocket for the first time after a successfully return from orbital space
    -- 2015: Volkswagen is alleged to have rigged diesel emissions tests worldwide

	["2016"] = "English singer-songwriter and actor David Bowie dies at age 69",
	-- https://en.wikipedia.org/w/index.php?title=2016&oldid=1100368512
	-- 2016: The United Kingdom votes in a referendum to leave the European Union
	-- 2016: English singer-songwriter and actor David Bowie dies at age 69

	["2017"] = "Swedish acedemic Hans Rosling passes away at age 68",
	-- https://en.wikipedia.org/w/index.php?title=2017&oldid=1100236355
	-- 2017: German newspaper SZ publishes 13.4 million documents known as the Paradise Papers
	-- 2017: Swedish acedemic Hans Rosling passes away at age 68
	-- 2017: The United Kingdom starts Brexit negotiations to leave the European Union
	-- 2017: Computers around the world are hit by the WannaCry ransomware attack
	-- 2017: SpaceX conducts the world's first reflight of an orbital class rocket
	-- 2017: A total solar eclipse is visible from the entire United States on 21 August 2017, for the first time since 1918

	["2018"] = "15-year old Greta Thunberg starts to stay out of school to give attention to climate change",
	-- https://en.wikipedia.org/w/index.php?title=2018&oldid=1098955768
	-- 2018: The wedding of Meghan Markle and Prince Harry is held, with an estimated audience of 2 billion people worldwide
	-- 2018: The European Union's General Data Protection Regulation (GDPR) goes into effect
	-- 2018: Eritrea and Ethiopia officially declare an end to their twenty-year conflict
	-- 2018: A torrential downpour in Japan results in heavy rain fall and flash floods, killing 232 people
	-- 2018: 15-year old Greta Thunberg starts to stay out of school to give attention to climate change

	["2019"] = "WikiLeaks co-founder Julian Assange is arrested after seven years in Ecuador's embassy in London",
	-- https://en.wikipedia.org/w/index.php?title=2019&oldid=1098888777
	-- 2019: Israeli non-profit SpaceIL launches the Beresheet probe, the world's first privately financed Moon mission
	-- 2019: WikiLeaks co-founder Julian Assange is arrested after seven years in Ecuador's embassy in London
	-- 2019: India bans 'triple talaq', an Islamic concept where a man legally divorces his wife by merely proclaiming the word 'talaq'

	["2020"] = "In March 2020, worldwide lockdowns started with 2.6 billion people facing pandemic-related movement restrictions",
	-- https://en.wikipedia.org/wiki/2020
	-- 2020: In March 2020, worldwide lockdowns started with 2.6 billion people facing pandemic-related movement restrictions
	-- 2020: In March 2020, Kobe Bryant died in a helicopter crash.

	["2021"] = "Squid Game was released worldwide, it became Netflix's most-watched series and the most-watched program in 94 countries",
	-- https://pageviews.wmcloud.org/topviews/?project=en.wikipedia.org&platform=all-access&date=2021&excludes=
	-- https://en.wikipedia.org/wiki/Wikipedia:2021_Top_50_Report
	-- 2021: Squid Game was released worldwide, it became Netflix's most-watched series and the most-watched program in 94 countries
	-- 2021: Cristiano Ronaldo signs with Manchester United, returning to the team of his breakthrough 20 years earlier
	-- 2021: Prince Philip, consort of the  British monarch, died in April 2021
	-- https://en.wikipedia.org/wiki/2021

	["2022"] = "2022 saw the begin of the Russian invasion of Ukraine, the largest armed conflict in Europe since World War II",
	-- https://en.wikipedia.org/w/index.php?title=2022&oldid=1218712766
	-- https://pageviews.wmcloud.org/topviews/?project=en.wikipedia.org&platform=all-access&date=2022&excludes=
	-- 2022: 2022 saw the begin of the Russian invasion of Ukraine, the largest armed conflict in Europe since World War II

	-- https://en.wikipedia.org/wiki/2023
	["2023"] = nil,

	-- https://en.wikipedia.org/wiki/2024
	["2024"] = nil,
}

-- Exported lua module

local p = {}
function p.has_line( frame )
	local year = string.sub( frame.args[1], 0, 4 )
	return timeline[ year ] and "1" or ""
end
function p.get_line( frame )
	local year = string.sub( frame.args[1], 0, 4 )
	local text = timeline[ year ] and ("
 
Also in " .. year .. ": 
" .. timeline[ year ] .. ".

") or ""
	return text
end
return p