Jump to content

Module:Video game release

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Ferret (talk | contribs) at 17:19, 14 March 2017 (Basic frame work.). 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)

require('Module:No globals')

local getArgs = require('Module:Arguments').getArgs
local p = {}

function p.main(frame)
	local args = getArgs(frame)
	return p._main(args)
end

function p._main(args)
	local out = "<ul style=\"list-style: none none; line-height: inherit; margin: 0px;\">"
	
	local i = 1
	local j = i+1
    while args[i] and args[j] do
      out = out .. "<li><span style=\"font-size:95%;\">" .. args[i] .. ":</span> " .. args[j] .. "</li>"
      
      i = j + 1
      j = i + 1
    end
    
    out = out .. "</ul>"
    
    return out
end

return p