View source for Module:Years generator

MyWikiBiz, Author Your Legacy — Tuesday July 08, 2025
Jump to navigationJump to search

You do not have permission to edit this page, for the following reasons:

  • The action you have requested is limited to users in one of the groups: Users, vuser.
  • You must confirm your email address before editing pages. Please set and validate your email address through your user preferences.

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
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
000
1:0
Debug console
* The module exports are available as the variable "p", including unsaved modifications. * Precede a line with "=" to evaluate it as an expression or use print(). Use mw.logObject() for tables. * Use mw.log() and mw.logObject() in module code to send messages to this console.

Return to Module:Years generator.