You are browsing a read-only backup copy of Wikitech. The primary site can be found at wikitech.wikimedia.org

Module:Archive-timeline

From Wikitech-static
Revision as of 20:53, 26 July 2022 by imported>Krinkle
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Documentation for this module may be created at Module:Archive-timeline/doc (Test casesTest results)

-- 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",

	-- 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=2010&oldid=908693123
	["2010"] = "The Winter Olympics are held in Vancouver, Canada",

	-- 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 (ref. T25223)",
	-- Alternatively,
	-- 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",

	-- https://en.wikipedia.org/w/index.php?title=2014&oldid=988064178
	["2014"] = "Malaysia Airlines Flight 370 disappears over the Gulf of Thailand with 239 people on board",
	-- 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

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

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

	-- https://en.wikipedia.org/w/index.php?title=2017&oldid=1100236355
	["2017"] = "Swedish acedemic Hans Rosling passes away at age 68",
	-- 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

	-- https://en.wikipedia.org/w/index.php?title=2018&oldid=1098955768
	["2018"] = "15-year old Greta Thunberg starts to stay out of school to give attention to climate change",
	-- 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

	-- 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: 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'

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

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

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

-- Exported lua module

local p = {}
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