View source for Module:Years generator
MyWikiBiz, Author Your Legacy — Tuesday July 08, 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.
local p = {} --p stands for package
function p.templateEveryYearToPresent ( frame )
-- use the parent args if available, assuming this is embedded in a template
parentArgs = frame:getParent().args
argsToUse = ((parentArgs[1] and parentArgs) or frame.args)
years = yearsFromYearToPresent( argsToUse[1] )
toReturn = ""
templateArgs = {}
templateDoNotConsume = {}
-- allow transcluding templates to specify arguments they consume,
-- so we should ignore them
for arg in mw.text.gsplit( frame.args['templatedonotconsume'] or '', ',', true )
do
templateDoNotConsume[arg] = true
end
for key, arg in pairs( argsToUse ) do
000
1:0
Templates used on this page:
Return to Module:Years generator.