Modul:Chronik: Unterschied zwischen den Versionen

Aus FürthWiki

Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 6: Zeile 6:
args = pf.args
args = pf.args
title = mw.title.getCurrentTitle()
title = mw.title.getCurrentTitle()
ij = c.istJahreszahl(title.text)
ij = c.istJahreszahl()
return '->' .. args[1] .. 'x' .. args[2] .. 't:' .. title.text .. tostring(ij) ..'<-'
return '->' .. args[1] .. 'x' .. args[2] .. 't:' .. title.text .. tostring(ij) ..'<-'
end
end


return p
return p

Version vom 18. August 2025, 16:00 Uhr

local p = {}
local c = require( "Module:Common" )

function p.Semantify(frame)
	pf = frame:getParent()
	args = pf.args
	title = mw.title.getCurrentTitle()
	ij = c.istJahreszahl()
	return '->' .. args[1] .. 'x' .. args[2] .. 't:' .. title.text .. tostring(ij) ..'<-'
end

return p