More languages
More actions
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 = | local link = parentFrame.args.link | ||
local author = | local author = parentFrame.args.author | ||
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