Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Library citation: Difference between revisions

From ProleWiki, the proletarian encyclopedia
m (Needs to return a table)
m (oops, forgot to refactor code)
Line 4: Line 4:
-- Parent frame to get parameters from template calls instead of from {{#invoke: ...
-- Parent frame to get parameters from template calls instead of from {{#invoke: ...
local parentFrame = frame:getParent()
local parentFrame = frame:getParent()
local link = pframe.args.link
local link = parentFrame.args.link
local author = pframe.args.author
local author = parentFrame.args.author
local work = pframe.args.work
error("error message")
error("error message")
end
end
return p
return p

Revision as of 23:43, 6 October 2024

local p = {}

function p.cite(frame)
	-- Parent frame to get parameters from template calls instead of from {{#invoke: ...
	local parentFrame = frame:getParent()
	local link = parentFrame.args.link
	local author = parentFrame.args.author
	error("error message")
end
return p