Module:PD-author-release
Appearance
This module depends on the following other modules: |
Implements {{PD-author-release}}.
--[=[
Implements [[Template:PD-author-release]]
]=]
local p = {} --p stands for package
local getArgs = require('Module:Arguments').getArgs
local PD = require('Module:PD')
function p._PD_author_release(args)
local author = args[1] or args.author
local text = PD.license_scope() .. " in the '''[[w:public domain|public domain]]''' worldwide because " .. PD.license_grammar({"it has", "they have"}) .. " been so released by the author"
if author then
text = text .. ", " .. author
end
text = text .. "."
return PD.license({
['image'] = PD.PD_image,
['text'] = text,
['category'] = args.category or "PD-author-release"
})
end
function p.PD_author_release(frame)
return p._PD_author_release(getArgs(frame))
end
return p