Jump to content

Module:Marriage

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Pedantical (talk | contribs) at 05:47, 7 January 2024 (create initial module). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

--
--
--    ! This module is currently Pre-Alpha and not ready for testing.
--
--


-- This module provides consistent formatting for common information included in
-- the spouse parameter of an Infobox_person.
-- It is intended to be used by Template:Marriage and not invoked directly within pages.

local getArgs = require('Module:Arguments').getArgs
local p = {}

function p.reasonFormatter(frame)
	local args = getArgs(frame, {trim = true})
	return p._reasonFormatter(args)
end

function p._reasonFormatter(args)
	local return_value = string.lower(args["end"])
	return return_value
end

function p.main(frame)
	local args = getArgs(frame)
	return p._main(args)
end

function p._main(args)
	-- Main module code will end up here.
	return "Nothing to see here."
end

return p