View source for Module:British regnal year
MyWikiBiz, Author Your Legacy — Saturday May 17, 2025
Jump to navigationJump to searchYou do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
-- This module implements {{British regnal year}}. It converts a year in the Gregorian
-- calendar to the equivalent English or British regnal year.
local data = mw.loadData( 'Module:British regnal year/data' )
local p = {}
function p.main( frame )
-- If we are being called from #invoke, then the year is the first positional
-- argument. If not, it is the frame parameter.
local inputYear
if frame == mw.getCurrentFrame() then
inputYear = frame:getParent().args[ 1 ]
local frameArgsYear = frame.args[ 1 ]
if frameArgsYear then
inputYear = frameArgsYear
end
else
inputYear = frame
end
000
1:0
Templates used on this page:
Return to Module:British regnal year.