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() | ||
if c.istJahreszahl(frame) then | |||
ij = "IST JAHRESZAHL" | |||
else | |||
ij = 'no year' | |||
end | |||
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:06 Uhr
local p = {}
local c = require( "Module:Common" )
function p.Semantify(frame)
pf = frame:getParent()
args = pf.args
title = mw.title.getCurrentTitle()
if c.istJahreszahl(frame) then
ij = "IST JAHRESZAHL"
else
ij = 'no year'
end
return '->' .. args[1] .. 'x' .. args[2] .. 't:' .. title.text .. tostring(ij) ..'<-'
end
return p