Module:British regnal year: Difference between revisions

Content deleted Content added
m Changed protection settings for "Module:British regnal year": High-risk template or module: 2791 transclusions (more info) ([Edit=Require extended confirmed access] (indefinite) [Move=Require administrator access] (indefinite))
m Changed protection settings for "Module:British regnal year": Up to template-protection as dependency of template-protected Module:Year in various calendars ([Edit=Require template editor access] (indefinite) [Move=Require administrator access] (indefinite))
 
(One intermediate revision by one other user not shown)
Line 29:
end
local currentYear = tonumber( mw.language.getContentLanguage():formatDate( 'Y' ) )
-- The year 1066 is significant because it is when the Norman conquest of England occurred.
if inputYear < 1066 or inputYear > currentYear then
return "''N/A''"