Module:Video game reviews
Appearance
![]() | This Lua module is used on approximately 16,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 form and is thought to be relatively bug-free and ready for use wherever appropriate. It is ready to mention on help pages and other Wikipedia resources as an option for new users to learn. To reduce server load and bad output, it should be improved by sandbox testing rather than repeated trial-and-error editing. |
![]() | This module is subject to page protection. It is a highly visible module in use by a very large number of pages, or is substituted very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is protected from editing. |
![]() | This module depends on the following other modules: |
![]() | This module uses TemplateStyles: |
Related pages |
---|
This module implements the {{Video game reviews}} template. Please see the template page for usage instructions.
Tracking/maintenance category
--
-- This module will implement {{Video game multiple console reviews}}
--
local f = {}
local HtmlBuilder = require('Module:HtmlBuilder')
local args
--
-- Title row
--
function renderTitleRow(tbl)
if not args.title then return end
local titleRow = addTableRow(tbl)
local titleCell = titleRow.tag('th').attr('scope', 'col')
renderNavBar(titleCell)
titleCell
.tag('div')
.addClass(args.title)
.css('font-size', '100%')
.newline()
.wikitext(args.title)
end
--
-- Main tables
--
function renderMainTable()
local tbl = HtmlBuilder.create('table')
.attr('cellpadding', 0)
.attr('cellspacing', 0)
.addClass('nowraplinks')
.addClass(args.bodyclass)
if args.title and (args.state ~= 'plain' and args.state ~= 'off') then
tbl
.addClass('collapsible')
.addClass(args.state or 'autocollapse')
end
tbl
.css('align', 'right')
.css('background', 'transparent')
.css('padding', '0em')
.css('margin-top', '0em')
.css('margin', '1em')
.css('text-align', 'center')
.css('font-size', '80%')
renderTitleRow(tbl)
return tbl
end
return f