View source for Module:Wikimedia engineering project date categories
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
-- Module to output [[:Category:WMF Projects]] subcategories
-- as appropriate for a start and end date, to be used in
-- {{Wikimedia engineering project information}}
local p = {}
local lang = mw.language.getContentLanguage()
local function makeCategory( catdate, trail )
local quarter, year
quarter = math.ceil( tonumber( lang:formatDate( "m", catdate ) ) / 3 )
year = lang:formatDate( "Y", catdate )
return "[[Category:WMF Projects " .. year .. "q" .. tostring( quarter ) .. trail .. "]]"
end
function p.datesToCategories( frame )
local startdate, curdate, enddate
local categories = ""
local trail = mw.getCurrentFrame():callParserFunction( '#translation', '' )
if (not frame.args.startdate) or frame.args.startdate == "" then
return "[[Category:WMF Projects missing start date]]"
000
1:0
Template used on this page:
Return to Module:Wikimedia engineering project date categories.