Editing Module:TeamImages

From TwogPedia
Revision as of 19:22, 7 October 2022 by Couchor (talk | contribs)

Warning: You are editing an out-of-date revision of this page. If you publish it, any changes made since this revision will be lost.

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
local getArgs = require('Module:Arguments').getArgs
VariablesLua = mw.ext.VariablesLua
local TeamImages = {}
function TeamImages.main(frame)
local args = getArgs(frame)
local logos = {}
mw.log('args')
mw.logObject(args)
local currentDate = os.date('%Y-%m-%d')
for key, value in ipairs (args) do
local values = mw.text.jsonDecode(value)
mw.log('VALUES')
mw.logObject(values)
if (values.start == nil or values.start < currentDate) and (values['end'] == nil or values['end'] > currentDate) then
VariablesLua.vardefine('logoLight', values.logoLight)
VariablesLua.vardefine('logoDark', values.logoLight)
end
end
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
000
1:0
Please note that all contributions to TwogPedia may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see TwogPedia:Copyrights for details). Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)
Preview page with this template
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.

Template used on this page: