Module:Create plant stub: Difference between revisions
Appearance
Content deleted Content added
create with basic outline |
(No difference)
|
Revision as of 14:25, 31 January 2021
require('Module:No globals')
local p = {}
local pargs = {}
local function getArgs (frame, args)
local parents = mw.getCurrentFrame():getParent()
for k,v in pairs(parents.args) do
--check content
if v and v ~= "" then
args[k]=v --parents.args[k]
end
end
for k,v in pairs(frame.args) do
--check content
if v and v ~= "" then
args[k]=v
end
end
end
p.main = function (frame)
getArgs(frame,pargs)
return "Species called ''" .. pargs['genus'] .. " " .. pargs['species'] .. " (" .. pargs['common_name'] .. ")"
end
return p