Module:Sortkey

From Zoophilia Wiki
Revision as of 21:29, 22 June 2018 by meta>TheDJ (if the sortkey contains a sortkey, then blank. Nesting is)
Jump to navigationJump to search

Documentation for this module may be created at Module:Sortkey/doc

local p = {}
function p.encode(frame)
	local sortkey = frame.args[1];
	-- Protect against sortkey nesting.
	-- Example: {{sort|{{dts|2013|07|07}}|{{dts|1990|12|01}}}}
	if string.find(str, "sortkey") then
		return "";
	end
    return mw.text.encode(frame.args[1])
end
return p