Modul:Subrefs: Unterschied zwischen den Versionen

Aus FürthWiki

Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 3: Zeile 3:
function p.subrefs( frame )
function p.subrefs( frame )
pf = frame:getParent()
pf = frame:getParent()
args = pf.args[1]
args = pf.args
t ='This is just a text'..s
t ='This is just a text'..args[0]
return t
return t
end
end
return p
return p

Version vom 2. Februar 2025, 19:07 Uhr

Das ist ein Workaround um das Problem, daß <ref> in Datenfeldern nicht aufgelöst wird.


local p = {} --p stands for package

function p.subrefs( frame )
	pf = frame:getParent()
	args = pf.args
	
	t ='This is just a text'..args[0]
	return t
end
return p