Modul:Subrefs

Aus FürthWiki

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 = args[3]
	t = t:gsub("-ref%-", "{{#tag:ref|")
	t = t:gsub("-uref%-", "}}")
	--t = t:gsub("Nachricht", "<b>Richtnach</b>")
	return frame:preprocess(t)
end
return p