Modul:Subrefs
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)
-- Next lines catch the parent (template) arguments
--pf = frame:getParent()
--args = pf.args
-- We want the #invoke arguments directly
local args = frame.args
local t = args[1] or ""
-- 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("%<", "smalla") --"{{#tag:ref|")
--t = t:gsub("%>", "biggga")
return frame:preprocess(t)
end
return p