Module:Video game release
Appearance
| This module depends on the following other modules: |
| This Lua module is used on approximately 18,000 pages and changes may be widely noticed. Test changes in the module's /sandbox or /testcases subpages, or in your own module sandbox. Consider discussing changes on the talk page before implementing them. |
| This module is rated as ready for general use. It has reached a mature state, is considered relatively stable and bug-free, and may be used wherever appropriate. It can be mentioned on help pages and other Wikipedia resources as an option for new users. To minimise server load and avoid disruptive output, improvements should be developed through sandbox testing rather than repeated trial-and-error editing. |
| This module is currently protected from editing. See the protection policy and protection log for more details. Please discuss any changes on the talk page; you may submit an edit request to ask an administrator to make an edit if it is uncontroversial or supported by consensus. You may also request that this page be unprotected. |
This module implements the {{Video game release}} and {{Video game release hlist}} templates. The parameter "format" is passed to Module:List to set the output format. Please see the template page for usage instructions and tracking categories.
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