يمكنك أن تنشئ صفحة توثيق لهذه الوحدة (أنشئ). يمكن للمحررين تجريب تعديلاتهم على الوحدة في صفحات ملعب (أنشئ | مرآة) ومختبر (أنشئ). من فضلك أضف التصنيفات في الصفحة الفرعية للقالب /شرح. الصفحات الفرعية لـ وحدة.
--[=[Implements [[Template:PD-US]]]=]localp={}--p stands for packagelocalgetArgs=require('Module:Arguments').getArgslocalPD=require('Module:PD')locallicense_scope=require('Module:License_scope')._license_scopelocallicense_grammar=require('Module:License_scope')._license_grammarfunctionp._PD_US(args)localdeathyear=tonumber(args[1]orargs.deathyear)localpubyear=tonumber(args[2]orargs.pubyear)localfilm=args.filmlocalcategory=args.categorylocaltemplate="PD-US"-- Is this work after the cutoff date?ifpubyearandpubyear>=PD.PD_US_cutoffthenreturnPD.error_text(template.." لا ينطبق على الأعمال المنشورة بعد "..PD.PD_US_cutoff-1..".",template)end-- Should we use PD-old?ifdeathyearandPD.currentyear-deathyear>100thenreturnrequire('Module:PD-old')._PD_old({['category']=category})endlocalpublished_infoifpubyearthenpublished_info="في "..pubyear.."، قبل يوم 1 كانون الثاني (يناير) ،"..PD.PD_US_cutoffelsepublished_info="قبل 1 يناير "..PD.PD_US_cutoffendlocaltext=license_scope().." في '''[[w:ملكية عامة|الملكية العامة]]''' في '''الولايات االمتحدة''' "..license_grammar({"لأنه","لأنها"}).." نُشرت "..published_info.."."..PD.shorter_term_text(deathyear,film)returnPD.license({['image']=PD.PD_image,['image_r']=PD.US_flag_image,['text']=text,['category']=categoryorPD.category_with_deathyear_floor("PD",deathyear).."-US"})endfunctionp.PD_US(frame)returnp._PD_US(getArgs(frame))endreturnp