Module:Ref

From JoJo's Bizarre Encyclopedia - JoJo Wiki
Revision as of 05:39, 11 March 2024 by KojoB (talk | contribs) (Created page with "local p = {} function p.main(frame) local parent_args = frame:getParent().args local final_content = "" -- Variables from parent template. -- Ref tag parameters. local name = parent_args["name"] local group = parent_args["group"] -- "lower-alpha" or nil mostly -- MLA citation parameters. local title = parent_args["title"] local url = parent_args["url"] local author = parent_args["author"] local publisher = parent_args["publisher"] local platform =...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

local p = {}

function p.main(frame)
	local parent_args = frame:getParent().args
	local final_content = ""
	
	-- Variables from parent template.
		-- Ref tag parameters.
		local name = parent_args["name"]
		local group = parent_args["group"] -- "lower-alpha" or nil mostly
		-- MLA citation parameters.
		local title = parent_args["title"]
		local url = parent_args["url"]
		local author = parent_args["author"]
		local publisher = parent_args["publisher"]
		local platform = parent_args["platform"]
		local handle = parent_args["handle"]
		local date = parent_args["date"]
		local archived = parent_args["archived"]
		local isbn = parent_args["isbn"]
		
		if parent_args[1] == nil then

		else
			final_content = parent_args[1]
		end
		
		return frame:extensionTag{ name = "ref", content = final_content, args = { name = name, group = group }}
end

return p