Jump to content

Module:User contrib

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Zackmann08 (talk | contribs) at 04:32, 16 October 2018 (Created page with '-- -- This module implements {{Sidebar games events}} -- This module was created using code taken directly from Module:Sidebar -- require('Module:Userbox')...'). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

--
-- This module implements {{Sidebar games events}}
-- This module was created using code taken directly from [[Module:Sidebar]] 
--
require('Module:Userbox')

local p = {}

local getArgs = require('Module:Arguments').getArgs
local Userbox = require('Module:Userbox')

function p.contrib(frame, args)
	if not args then
		args = getArgs(frame)
	end

	
	local count = 'id = ' .. args[1]
	-- mw.log(count)
	-- id-color	id-bg	info-color	info-bg
	local user_args = {}
	local id_color		= '#ff0000'
	local id_bg 		= '#00ff00'
	local info_color	= '#0000ff'
	local info_bg		= '#ff00ff'
	-- local root = mw.html.create()
	
	user_args['id-color'] = '#ff0000'
	user_args['1'] = '200'
	
	return Userbox._userbox(args)
end

return p

	
	-- {{userbox
	-- 	| border-c      = 
	-- 	| id            = 
	-- 	| id-c          = 
	-- 	| id-fc         = 
	-- 	| id-s          = 
	-- 	| info          = 
	-- 	| info-c        = 
	-- 	| info-fc       = 
	-- 	| info-lh       = 
	-- 	| info-s        = 
	-- }}