local p = {}
local c = require( "Module:Common" )
function p.Semantify(frame)
pf = frame:getParent()
args = pf.args
title = mw.title.getCurrentTitle()
-- Wenn das Lemma eine Jahreszahl ist, merken
year = nil
if c.istJahreszahl(frame) == "true" then
year = title.text
end
return '->' .. args[1] .. 'x' .. args[2] ..
' t:' .. title.text .. ' a:' .. tostring(year) ..'<-'
end
function dateParsing(s, year)
-- Parses a date down where s is the datestring and year can be nil or string
return s
end
return p