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]
	-- Next one works for ultra sure, imagene me DANCING!
	t = t:gsub("-ref%-", "{{#tag:ref|")
	t = t:gsub("-uref%-", "}}")

	-- Try now to handle <subref> tag
	t = t:gsub("<", "tschuba") --"{{#tag:ref|")
	t = t:gsub("%</subref>", "}}")
	return frame:preprocess(t)
end
return p