Module:GetWatermark

From Bodhicitta
Revision as of 09:41, 30 May 2025 by Jeremi (talk | contribs) ((by SublimeText.Mediawiker))

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

local p = {}

function p.main(frame)

	local pArgs = frame:getParent().args
	local output = ''

	if pArgs.watermark then
		return pArgs.watermark
	elseif pArgs.subclasses then
	    for value in string.gmatch(pArgs.subclasses, "([^;]+)") do
	        if value == "Stories" then
	        	return "Story"
	        else
	        	return value
	        end
	    end
	end

end

return p