Modul:Subrefs: Unterschied zwischen den Versionen

Aus FürthWiki

(Die Seite wurde neu angelegt: „local p = {} --p stands for package function p.subrefs( frame ) pf = frame:getParent() args = pf.args t ='This is just a text' return t end return p“)
 
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
local p = {} --p stands for package
local p = {} --p stands for package


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

Version vom 2. Februar 2025, 18:58 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, s )
	pf = frame:getParent()
	args = pf.args
	
	t ='This is just a text'..s 
	return t
end
return p