Jump to content

Module:Iraq Syria map date

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by LightandDark2000 (talk | contribs) at 02:29, 10 June 2017 (Update.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
require('Module:No globals')
local dts = require('Module:Dts')._main
local p = {}
--[[
The purpose of this file is to have a centralised place where the dates which File:Syrian,_Iraqi,_and_Lebanese_insurgencies.png (and related files) is updated can be managed, instead of having to update them in different articles. 

To update, edit the strings (the parts between quotes) underneath each function.
For maintainability of modules being used on other-language Wikipedias, you must use ISO date: YYYY-MM-DD (i.e. 2015-12-09)
The output will be a correct wordy date format (i.e. "9 December 2015", or "9 tháng 12 năm 2015" if you're on Vietnamese Wikipedia)

Example usage: "(as of {{#invoke:Iraq Syria map date|syriadate}})"
--]]

function p.date( frame )
	return dts{"2017-06-10"}   -- [[commons:File:Syrian,_Iraqi,_and_Lebanese_insurgencies.png]]
end
function p.iraqdate( frame )
	return dts{"2017-06-10"}   -- [[commons:File:Iraq_war_map.png]]
end
function p.syriadate( frame )
	return dts{"2017-06-01"}   -- [[commons:File:Syrian_Civil_War_map.svg]]
end
function p.aleppo2date( frame )
	return dts{"2017-03-30"}   -- [[commons:File:Rif_Aleppo2.svg]]
end
function p.damascusdate( frame )
	return dts{"2017-06-02"}   -- [[commons:File:Rif_Damashq.svg]]
end
function p.mosuldate( frame )
	return dts{"2017-05-27"}   -- [[commons:File:Battle_of_Mosul_(2016%E2%80%932017).svg]]
end
function p.lebanondate( frame )
	return dts{"2017-06-09"}   -- [[commons:File:Lebanese_insurgency.png]]
end

return p