Module:Participants list team

From TwogPedia
Revision as of 00:32, 6 September 2022 by Couchor (talk | contribs) (Created page with "local getArgs = require('Module:Arguments').getArgs local Links = require('Module:Links') local Subheader = require('Module:Infobox/Widget/Subheader') local ListWidget = require('Module:Infobox/Widget/List') local Flags = require('Module:Flags') local Participants = {} function Participants.main(frame) local args = getArgs(frame) local currentTitleSplit = mw.text.split(mw.title.getCurrentTitle().text, '/') local container = mw.html.create('div') :addClass('p-te...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation for this module may be created at Module:Participants list team/doc

local getArgs = require('Module:Arguments').getArgs
local Links = require('Module:Links')
local Subheader = require('Module:Infobox/Widget/Subheader')
local ListWidget = require('Module:Infobox/Widget/List')

local Flags = require('Module:Flags')
local Participants = {}

function Participants.main(frame)
	local args = getArgs(frame)

	local currentTitleSplit = mw.text.split(mw.title.getCurrentTitle().text, '/')
	
	local container = mw.html.create('div')
		:addClass('p-team-container')
	
	for key, value in pairs (args) do
		mw.log('Ei hiti üldse?')
		mw.log(key)
		-- local values = mw.text.jsonDecode(value)
		mw.log(value)
		mw.log('!!!!!!!!!!!!!!!!')
		-- if key ~= 'teamsize' then
		-- 	for key2, value2 in pairs (value) do
		-- 		mw.log('key2!??????????????????')
		-- 		mw.log(key2)
		-- 		mw.log(value2)
		-- 	end
		-- end
		-- for key2, value2 in pairs ( values ) do
		-- 	if  string.find(mw.text.jsonEncode(properties), '"' .. key2 .. '"') then
			
		-- 	else
		-- 		table.insert(properties, key2)
		-- 	end
		-- end
	end
	
	


	return container

end

return Participants