Modul:Chronik: Unterschied zwischen den Versionen
Aus FürthWiki
KKeine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 13: | Zeile 13: | ||
end | end | ||
return '->' .. args[1] .. 'x' .. args[2] .. 't:' .. title.text .. tostring(year) ..'<-' | return '->' .. args[1] .. 'x' .. args[2] .. | ||
' t:' .. title.text .. ' a:' .. tostring(year) ..'<-' | |||
end | end | ||
Version vom 20. August 2025, 13:05 Uhr
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