본문으로 이동

모듈:PD-EdictGov

위키문헌, 우리 모두의 도서관.
모듈 설명문서[보기] [편집] [역사] [새로 고침]

{{PD-EdictGov}}와 아래 틀을 생성합니다.

--[=[
Implements [[Template:PD-EdictGov]] and related templates
]=]

require('strict')

local p = {} --p stands for package

local getArgs = require('Module:Arguments').getArgs
local PD = require('Module:PD')

local EdictGov_text = " 미국 국내 또는 외국 [[w:en:Edict of government|정부의 칙령]](edict of government)이기 때문에 미국에서 '''[[위키문헌:퍼블릭 도메인|퍼블릭 도메인]]'''에 해당합니다. 이는 [[w:en:United States Copyright Office|미국 저작권청]]의 "[[:en:Compendium of U.S. Copyright Office Practices|Compendium of U.S. Copyright Office Practices]]" 2014년 제3판의 [http://copyright.gov/comp3/chapter300.html § 313.6(C)(2)]에서 확인할 수 있습니다. 이러한 문서에는 "입법 행위, 사법적 결정, 행정 명령, 공공 조례 또는 유사한 유형의 공식 법적 자료"가 포함되며, 또한 "정부 직원이 자신의 공식적인 업무 범위 내에서 준비한 번역물"도 포함됩니다."

function p._PD_EdictGov(args)
	local text = PD.license_scope() .. EdictGov_text .. "\n\n이는 [[:w:유엔|유엔]]이나 [[:w:유엔 전문 기구|그 전문 기구]], 또는 [[:w:아메리카 국가 기구|아메리카 국가 기구]]가 처음 발행한 저작물을 포함하지 '''않습니다'''. 자세한 내용은 § 313.6(C)(2)와 17 U.S.C. § 104(b)(5)를 참조하십시오."
	local warning = "미국이 아닌 다른 국가의 정부의 칙령은 여전히 미국 외에서는 저작권 보호를 받을 수 있습니다. 마찬가지로 위에서 언급한 미국 저작권 사무소의 규정 사항은 외국의 저작권법 및 규정에 따라 미국의 주 또는 지방 정부가 해외에서 저작권을 보유하는 것을 막지 않습니다."
	return PD.license({
		['image'] = PD.PD_image,
		['image_r'] = PD.US_flag_image,
		['text'] = text,
		['warning'] = warning,
		['category'] = args['분류'] or args.category or "PD-EdictGov"
	})
end

function p.PD_EdictGov(frame)
	return p._PD_EdictGov(getArgs(frame))
end

function p._PD_ParticularGov(args)
	local data = require('Module:PD-EdictGov/data')
	
	local template = args.template
	if not template then
		return PD.error_text("[[모듈:PD-EdictGov]] 오류: 틀이 특정되지 않았습니다.", nil)
	elseif not data[template] or not data[template]['text'] then
		return PD.error_text("[[모듈:PD-EdictGov]] 오류: [[모듈:PD-EdictGov/data]]에 " .. template .. " 틀과 관련한 데이터가 없습니다.", nil)
	end
	
	return PD.license({
		['image'] = PD.PD_image,
		['image_r'] = data[template]['image_r'],
		['text'] = data[template]['text'] .. "\n----\n" .. "또한 " .. PD.license_scope() .. EdictGov_text,
		['category'] = args['분류'] or args.category or data[template]['category'] or template,
		['warning'] = data[template]['warning']
	})
end

function p.PD_ParticularGov(frame)
	return p._PD_ParticularGov(getArgs(frame))
end

return p