<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh">
	<id>https://arolstar52-zhtest.hf.space/index.php?action=history&amp;feed=atom&amp;title=Module%3AVG_Reviews%2Ftestcases</id>
	<title>Module:VG Reviews/testcases - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://arolstar52-zhtest.hf.space/index.php?action=history&amp;feed=atom&amp;title=Module%3AVG_Reviews%2Ftestcases"/>
	<link rel="alternate" type="text/html" href="https://arolstar52-zhtest.hf.space/index.php?title=Module:VG_Reviews/testcases&amp;action=history"/>
	<updated>2026-06-30T04:30:06Z</updated>
	<subtitle>在这个wiki上该页的修订历史</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://arolstar52-zhtest.hf.space/index.php?title=Module:VG_Reviews/testcases&amp;diff=2357740&amp;oldid=prev</id>
		<title>imported&gt;Wangxuan8331800 来自 2014年4月28日 (一) 08:06</title>
		<link rel="alternate" type="text/html" href="https://arolstar52-zhtest.hf.space/index.php?title=Module:VG_Reviews/testcases&amp;diff=2357740&amp;oldid=prev"/>
		<updated>2014-04-28T08:06:48Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;--&lt;br /&gt;
-- Module layout for reviewer section in the work&lt;br /&gt;
--&lt;br /&gt;
-- 1 get args&lt;br /&gt;
-- 2 extract all reviewer args&lt;br /&gt;
-- 3 sort args for reviewer then system&lt;br /&gt;
-- 4 output args value where reviewer + system correlate&lt;br /&gt;
--&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
-- This module will implement {{Video game multiple console reviews}}&lt;br /&gt;
--&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
local reviewer = {{&amp;#039;[[1UP.com]]&amp;#039;, &amp;#039;1UP&amp;#039;}, {&amp;#039;ActionTrip&amp;#039;, &amp;#039;Atrip&amp;#039;}, {&amp;#039;Adventure Gamer&amp;#039;, &amp;#039;AdvGamers&amp;#039;}, {&amp;#039;[[Allgame]]&amp;#039;, &amp;#039;Allgame&amp;#039;}, {&amp;#039;[[Amstrad Action]]&amp;#039;, &amp;#039;AAction&amp;#039;}, {&amp;#039;[[Amtix!]]&amp;#039;, &amp;#039;Amtix&amp;#039;}, {&amp;#039;[[Computer and Video Games]]&amp;#039;, &amp;#039;CVG&amp;#039;}, {&amp;#039;[[Crash (杂志)|Crash]]&amp;#039;, &amp;#039;CRASH&amp;#039;}, {&amp;#039;[[Destructoid]]&amp;#039;, &amp;#039;Destruct&amp;#039;}, {&amp;#039;[[Dragon (杂志)]]&amp;#039;, &amp;#039;Dragon&amp;#039;}, {&amp;#039;[[Edge (杂志)|Edge]]&amp;#039;, &amp;#039;Edge&amp;#039;}, {&amp;#039;[[电子游戏月刊]]&amp;#039;, &amp;#039;EGM&amp;#039;}, {&amp;#039;[[Eurogamer]]&amp;#039;, &amp;#039;EuroG&amp;#039;}, {&amp;#039;[[Fami通]]&amp;#039;, &amp;#039;Fam&amp;#039;}, {&amp;#039;[[G4 (电视节目)|G4]]&amp;#039;, &amp;#039;G4&amp;#039;}, {&amp;#039;GameCritics&amp;#039;, &amp;#039;GCritics&amp;#039;}, {&amp;#039;[[GameFan]]&amp;#039;, &amp;#039;GameFan&amp;#039;}, {&amp;#039;[[Game Informer]]&amp;#039;, &amp;#039;GI&amp;#039;}, {&amp;#039;[[GamePro]]&amp;#039;, &amp;#039;GamePro&amp;#039;}, {&amp;#039;[[Game Revolution]]&amp;#039;, &amp;#039;GameRev&amp;#039;}, {&amp;#039;[[GamesMaster]]&amp;#039;, &amp;#039;GMaster&amp;#039;}, {&amp;#039;[[GamesRadar]]&amp;#039;, &amp;#039;GRadar&amp;#039;},  {&amp;#039;[[GameSpot]]&amp;#039;, &amp;#039;GSpot&amp;#039;}, {&amp;#039;[[GameSpy]]&amp;#039;, &amp;#039;GSpy&amp;#039;}, {&amp;#039;[[GamesTM]]&amp;#039;, &amp;#039;GTM&amp;#039;}, {&amp;#039;[[GameTrailers]]&amp;#039;, &amp;#039;GT&amp;#039;}, {&amp;#039;GameWire&amp;#039;, &amp;#039;GW&amp;#039;}, {&amp;#039;[[GameZone]]&amp;#039;, &amp;#039;GameZone&amp;#039;}, {&amp;#039;[[Giant Bomb]]&amp;#039;, &amp;#039;GB&amp;#039;}, {&amp;#039;[[Hyper (杂志)|Hyper Magazine]]&amp;#039;, &amp;#039;Hyper&amp;#039;}, {&amp;#039;[[IGN]]&amp;#039;, &amp;#039;IGN&amp;#039;}, {&amp;#039;[[Joystiq]]&amp;#039;, &amp;#039;Joystiq&amp;#039;}, {&amp;#039;[[Maximum PC]]&amp;#039;, &amp;#039;MaxPC&amp;#039;}, {&amp;#039;[[NGC杂志]]&amp;#039;, &amp;#039;N64&amp;#039;}, {&amp;#039;[[NGC杂志]]&amp;#039;, &amp;#039;NGC&amp;#039;}, {&amp;#039;[[NGamer]]&amp;#039;, &amp;#039;NG&amp;#039;}, {&amp;#039;NintendoLife&amp;#039;, &amp;#039;NLife&amp;#039;}, {&amp;#039;[[任天堂力量]]&amp;#039;, &amp;#039;NP&amp;#039;}, {&amp;#039;任天堂世界报道&amp;#039;, &amp;#039;NWR&amp;#039;}, {&amp;#039;[[官方任天堂杂志]]&amp;#039;, &amp;#039;ONM&amp;#039;}, {&amp;#039;[[官方PlayStation杂志 (美国)|官方PlayStation杂志（美国）]]&amp;#039;, &amp;#039;OPM&amp;#039;}, {&amp;#039;[[官方PlayStation杂志 (英国)|官方PlayStation杂志（英国）]]&amp;#039;, &amp;#039;OPMUK&amp;#039;}, {&amp;#039;[[官方PlayStation杂志 (澳大利亚)|官方PlayStation杂志（澳大利亚）]]&amp;#039;, &amp;#039;OPMAU&amp;#039;}, {&amp;#039;[[官方Xbox杂志]]&amp;#039;, &amp;#039;OXM&amp;#039;}, {&amp;#039;[[官方Xbox杂志|官方Xbox杂志（英国）]]&amp;#039;, &amp;#039;OXMUK&amp;#039;}, {&amp;#039;[[PALGN]]&amp;#039;, &amp;#039;PALGN&amp;#039;}, {&amp;#039;[[PC Format]]&amp;#039;, &amp;#039;PCF&amp;#039;}, {&amp;#039;[[PC Gamer|PC Gamer英国]]&amp;#039;, &amp;#039;PCGUK&amp;#039;}, {&amp;#039;[[PC Gamer|PC Gamer美国]]&amp;#039;, &amp;#039;PCGUS&amp;#039;}, {&amp;#039;[[PC PowerPlay]]&amp;#039;, &amp;#039;PCPP&amp;#039;}, {&amp;#039;[[PC Zone]]&amp;#039;, &amp;#039;PCZone&amp;#039;}, {&amp;#039;[[Play (英国杂志)|Play]]&amp;#039;, &amp;#039;Play&amp;#039;}, {&amp;#039;[[Polygon (网站)|Polygon]]&amp;#039;, &amp;#039;Poly&amp;#039;}, {&amp;#039;[[PlayStation: The Official Magazine|PlayStation杂志]]&amp;#039;, &amp;#039;PSM&amp;#039;}, {&amp;#039;[[PSM3|PlayStation 3杂志]]&amp;#039;, &amp;#039;PSM3&amp;#039;}, {&amp;#039;[[RPGamer]]&amp;#039;, &amp;#039;RPG&amp;#039;}, {&amp;#039;[[Sinclair User]]&amp;#039;, &amp;#039;SUser&amp;#039;}, {&amp;#039;[[TeamXbox]]&amp;#039;, &amp;#039;TX&amp;#039;}, {&amp;#039;[[VideoGamer.com]]&amp;#039;, &amp;#039;VG&amp;#039;}, {&amp;#039;[[X-Play]]&amp;#039;, &amp;#039;XPlay&amp;#039;}, {&amp;#039;[[游戏机实用技术]]&amp;#039;, &amp;#039;UCG&amp;#039;}, {&amp;#039;[[电子游戏软件 (杂志)|电子游戏软件]]&amp;#039;, &amp;#039;电软&amp;#039;}, {&amp;#039;[[大众软件]]&amp;#039;, &amp;#039;大软&amp;#039;}, {&amp;#039;[[家用电脑与游戏]]&amp;#039;, &amp;#039;家游&amp;#039;}, {&amp;#039;[[电脑游戏攻略]]&amp;#039;, &amp;#039;电攻&amp;#039;}, {&amp;#039;[[软件与光盘]]&amp;#039;, &amp;#039;软光&amp;#039;}}&lt;br /&gt;
&lt;br /&gt;
local aggregator = {{&amp;#039;[[GameRankings]]&amp;#039;,&amp;#039;GR&amp;#039;}, {&amp;#039;Game Ratio&amp;#039;,&amp;#039;GRO&amp;#039;}, {&amp;#039;[[IGN|GameStats]]&amp;#039;,&amp;#039;GMS&amp;#039;}, {&amp;#039;GameTab&amp;#039;,&amp;#039;GTab&amp;#039;}, {&amp;#039;[[Metacritic]]&amp;#039;,&amp;#039;MC&amp;#039;}}&lt;br /&gt;
&lt;br /&gt;
-- 2 arrays with the title and code of each predefined &amp;quot;system type&amp;quot; field to be used.&lt;br /&gt;
local system = {{&amp;#039;[[雅達利2600]]&amp;#039;,&amp;#039;A2600&amp;#039;}, {&amp;#039;[[ColecoVision]]&amp;#039;,&amp;#039;CV&amp;#039;}, {&amp;#039;[[任天堂DS|DS]]&amp;#039;,&amp;#039;DS&amp;#039;}, {&amp;#039;[[Game Boy]]&amp;#039;,&amp;#039;GB&amp;#039;}, {&amp;#039;[[Game Boy Advance|GBA]]&amp;#039;,&amp;#039;GBA&amp;#039;}, {&amp;#039;[[Game Boy Color|GBC]]&amp;#039;,&amp;#039;GBC&amp;#039;}, {&amp;#039;[[游戏机列表|General]]&amp;#039;, &amp;#039;GEN&amp;#039;}, {&amp;#039;[[iOS]]&amp;#039;,&amp;#039;iOS&amp;#039;}, {&amp;#039;[[N-Gage]]&amp;#039;,&amp;#039;N-G&amp;#039;}, {&amp;#039;[[任天堂64|N64]]&amp;#039;,&amp;#039;N64&amp;#039;}, {&amp;#039;[[FC游戏机|FC]]&amp;#039;,&amp;#039;NES&amp;#039;}, {&amp;#039;[[FC游戏机|FC]]&amp;#039;,&amp;#039;FC&amp;#039;}, {&amp;#039;[[任天堂GameCube|NGC]]&amp;#039;,&amp;#039;NGC&amp;#039;}, {&amp;#039;[[NVIDIA SHIELD|Shield]]&amp;#039;,&amp;#039;NSHI&amp;#039;}, {&amp;#039;[[个人电脑|PC]]&amp;#039;,&amp;#039;PC&amp;#039;}, {&amp;#039;[[PlayStation|PS]]&amp;#039;,&amp;#039;PS&amp;#039;}, {&amp;#039;[[PlayStation 2|PS2]]&amp;#039;,&amp;#039;PS2&amp;#039;}, {&amp;#039;[[PlayStation 3|PS3]]&amp;#039;,&amp;#039;PS3&amp;#039;}, {&amp;#039;[[PlayStation 4|PS4]]&amp;#039;,&amp;#039;PS4&amp;#039;}, {&amp;#039;[[PlayStation Portable|PSP]]&amp;#039;,&amp;#039;PSP&amp;#039;}, {&amp;#039;[[Dreamcast]]&amp;#039;,&amp;#039;DC&amp;#039;}, {&amp;#039;[[Game Gear|GG]]&amp;#039;,&amp;#039;SGG&amp;#039;}, {&amp;#039;[[超級任天堂|SFC]]&amp;#039;,&amp;#039;SNES&amp;#039;}, {&amp;#039;[[Mega Drive|MD]]&amp;#039;,&amp;#039;SMD&amp;#039;}, {&amp;#039;[[世嘉Master System|SMS]]&amp;#039;,&amp;#039;SMS&amp;#039;}, {&amp;#039;[[SEGA Saturn|SS]]&amp;#039;,&amp;#039;SSAT&amp;#039;}, {&amp;#039;[[PC Engine|PCE]]&amp;#039;,&amp;#039;TG16&amp;#039;}, {&amp;#039;[[PlayStation Vita|PSV]]&amp;#039;,&amp;#039;VITA&amp;#039;}, {&amp;#039;[[Xbox]]&amp;#039;,&amp;#039;XBOX&amp;#039;}, {&amp;#039;[[Xbox 360|X360]]&amp;#039;,&amp;#039;X360&amp;#039;}, {&amp;#039;[[Xbox One|XOne]]&amp;#039;,&amp;#039;XONE&amp;#039;}, {&amp;#039;[[Wii]]&amp;#039;,&amp;#039;WII&amp;#039;}}&lt;br /&gt;
&lt;br /&gt;
-- Require necessary modules.&lt;br /&gt;
local HtmlBuilder = require(&amp;#039;Module:HtmlBuilder&amp;#039;)&lt;br /&gt;
local categoryHandler = require(&amp;#039;Module:Category handler&amp;#039;).main&lt;br /&gt;
&lt;br /&gt;
-- Set aliases for often-used functions to reduce table lookups.&lt;br /&gt;
local args&lt;br /&gt;
local frame&lt;br /&gt;
local keys&lt;br /&gt;
local halfkeysrev&lt;br /&gt;
local halfkeysagg&lt;br /&gt;
local platforms&lt;br /&gt;
local custome_agg&lt;br /&gt;
local custome_rev&lt;br /&gt;
local awardnums = {}&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
-- Splits a string on a delimiter n number of times.&lt;br /&gt;
--&lt;br /&gt;
function Split(str, delim, maxNb)&lt;br /&gt;
    if string.find(str, delim) == nil then&lt;br /&gt;
        return { str }&lt;br /&gt;
    end&lt;br /&gt;
    if maxNb == nil or maxNb &amp;lt; 1 then&lt;br /&gt;
        maxNb = 0 -- No limit&lt;br /&gt;
    end&lt;br /&gt;
    local result = {}&lt;br /&gt;
    local pat = &amp;quot;(.-)&amp;quot; .. delim .. &amp;quot;()&amp;quot;&lt;br /&gt;
    local nb = 0&lt;br /&gt;
    local lastPos&lt;br /&gt;
    for part, pos in string.gfind(str, pat) do&lt;br /&gt;
        nb = nb + 1&lt;br /&gt;
        result[nb] = part&lt;br /&gt;
        lastPos = pos&lt;br /&gt;
        if nb == maxNb then break end&lt;br /&gt;
    end&lt;br /&gt;
    if nb ~= maxNb then&lt;br /&gt;
        result[nb + 1] = string.sub(str, lastPos)&lt;br /&gt;
    end&lt;br /&gt;
    return result&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
-- Sorts keys by string.&lt;br /&gt;
--&lt;br /&gt;
function pairsByKeys (t, f)&lt;br /&gt;
    local a = {}&lt;br /&gt;
    for n in pairs(t) do&lt;br /&gt;
        if type(n) == &amp;#039;string&amp;#039; then&lt;br /&gt;
            table.insert(a, n)&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
    table.sort(a, f)&lt;br /&gt;
    local i = 0 -- iterator variable&lt;br /&gt;
    local iter = function () -- iterator function&lt;br /&gt;
        i = i + 1&lt;br /&gt;
        if a[i] == nil then&lt;br /&gt;
            return nil&lt;br /&gt;
        else&lt;br /&gt;
            return a[i]&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
    return iter&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
-- Return all the keys of an array&lt;br /&gt;
--&lt;br /&gt;
function array_keys(input)&lt;br /&gt;
    local key&lt;br /&gt;
    local keys = {}&lt;br /&gt;
&lt;br /&gt;
    for key in pairs(input) do&lt;br /&gt;
        table.insert(keys, key)&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    return keys&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
-- Returns the count of how many platforms are active.&lt;br /&gt;
--&lt;br /&gt;
function platforms()&lt;br /&gt;
    local count = 0&lt;br /&gt;
    for i = 1, #system do&lt;br /&gt;
        if args[tostring(system[i][2])] ~= nil then&lt;br /&gt;
            if string.lower(tostring(args[tostring(system[i][2])])) == &amp;#039;true&amp;#039; then&lt;br /&gt;
                count=count+1&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
    return count&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
-- Returns the count of how many custom aggregators are active.&lt;br /&gt;
--&lt;br /&gt;
function custome_agg()&lt;br /&gt;
    local cagg = 0&lt;br /&gt;
    for i = 1, 10 do&lt;br /&gt;
        if args[&amp;#039;agg&amp;#039; .. tostring(i)] ~= nil then&lt;br /&gt;
            cagg = cagg + 1&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
    return cagg&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
-- Returns the count of how many custom reviewers are active.&lt;br /&gt;
--&lt;br /&gt;
function custome_rev()&lt;br /&gt;
    local crev = 0&lt;br /&gt;
    for i = 1, 10 do&lt;br /&gt;
        if args[&amp;#039;rev&amp;#039; .. tostring(i)] ~= nil then&lt;br /&gt;
            crev = crev + 1&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
    return crev&lt;br /&gt;
end&lt;br /&gt;
--&lt;br /&gt;
-- Title row&lt;br /&gt;
--&lt;br /&gt;
function renderTitleRow(tbl)&lt;br /&gt;
    local titleCell = tbl.tag(&amp;#039;tr&amp;#039;).tag(&amp;#039;th&amp;#039;).css(&amp;#039;font-size&amp;#039;, &amp;#039;120%&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
    if args.state == &amp;#039;plain&amp;#039; then&lt;br /&gt;
        titleCell&lt;br /&gt;
            .tag(&amp;#039;span&amp;#039;)&lt;br /&gt;
            .css(&amp;#039;padding-left&amp;#039;, &amp;#039;5.7em&amp;#039;)&lt;br /&gt;
            .wikitext(&amp;#039;&amp;amp;nbsp;&amp;#039;)&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    if args.title then&lt;br /&gt;
        titleCell&lt;br /&gt;
            .wikitext(args.title)&lt;br /&gt;
            .done()&lt;br /&gt;
    else&lt;br /&gt;
        titleCell&lt;br /&gt;
            .addClass(&amp;#039;Reception&amp;#039;)&lt;br /&gt;
            .wikitext(&amp;#039;游戏评价&amp;#039;)&lt;br /&gt;
            .done()&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    if args.subtitle then&lt;br /&gt;
        tbl&lt;br /&gt;
            .tag(&amp;#039;tr&amp;#039;)&lt;br /&gt;
                .tag(&amp;#039;th&amp;#039;)&lt;br /&gt;
                    .css(&amp;#039;font-size&amp;#039;, &amp;#039;120%&amp;#039;)&lt;br /&gt;
                    .wikitext(args.subtitle)&lt;br /&gt;
                    .done()&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
-- Insert reviews&lt;br /&gt;
--&lt;br /&gt;
function reviews()&lt;br /&gt;
    local arg_system&lt;br /&gt;
    local tbl2&lt;br /&gt;
    if (#halfkeysrev &amp;gt; 0 or #halfkeysagg &amp;gt; 0) and platforms &amp;gt;= 1 then&lt;br /&gt;
	     tbl2 = HtmlBuilder.create(&amp;#039;table&amp;#039;)&lt;br /&gt;
            .addClass(&amp;#039;infobox wikitable&amp;#039;)&lt;br /&gt;
            .attr(&amp;#039;cellpadding&amp;#039;, 0)&lt;br /&gt;
            .attr(&amp;#039;cellspacing&amp;#039;, 0)&lt;br /&gt;
            .css(&amp;#039;width&amp;#039;, &amp;#039;100%&amp;#039;)&lt;br /&gt;
            .css(&amp;#039;border-bottom&amp;#039;, &amp;#039;none&amp;#039;)&lt;br /&gt;
            .css(&amp;#039;margin&amp;#039;, &amp;#039;0em&amp;#039;)&lt;br /&gt;
            .done()&lt;br /&gt;
    elseif (#halfkeysrev &amp;gt; 0 or #halfkeysagg &amp;gt; 0 or custome_agg &amp;gt; 0 or custome_rev &amp;gt; 0) and  platforms == 0 then&lt;br /&gt;
        tbl2 = HtmlBuilder.create(&amp;#039;table&amp;#039;)&lt;br /&gt;
            .addClass(&amp;#039;infobox wikitable&amp;#039;)&lt;br /&gt;
            .attr(&amp;#039;cellpadding&amp;#039;, 0)&lt;br /&gt;
            .attr(&amp;#039;cellspacing&amp;#039;, 0)&lt;br /&gt;
            .css(&amp;#039;width&amp;#039;, &amp;#039;100%&amp;#039;)&lt;br /&gt;
            .css(&amp;#039;font-size&amp;#039;, &amp;#039;100%&amp;#039;)&lt;br /&gt;
            .css(&amp;#039;border-bottom&amp;#039;, &amp;#039;none&amp;#039;)&lt;br /&gt;
            .css(&amp;#039;margin&amp;#039;, &amp;#039;0em&amp;#039;)&lt;br /&gt;
            .done()&lt;br /&gt;
    end&lt;br /&gt;
    if #halfkeysrev &amp;gt; 0 and (platforms &amp;gt; 1 or string.lower(tostring(args[&amp;#039;showplatforms&amp;#039;])) == &amp;#039;true&amp;#039;) then&lt;br /&gt;
        tbl2.tag(&amp;#039;tr&amp;#039;).tag(&amp;#039;th&amp;#039;)&lt;br /&gt;
            .attr(&amp;#039;colspan&amp;#039;, #system + 1)&lt;br /&gt;
            .css(&amp;#039;background&amp;#039;, &amp;#039;#d1dbdf&amp;#039;)&lt;br /&gt;
            .css(&amp;#039;font-size&amp;#039;, &amp;#039;120%&amp;#039;)&lt;br /&gt;
            .wikitext(&amp;#039;媒体评分&amp;#039;)&lt;br /&gt;
            .done()&lt;br /&gt;
&lt;br /&gt;
        tbl2&lt;br /&gt;
            .tag(&amp;#039;tr&amp;#039;)&lt;br /&gt;
                .tag(&amp;#039;th&amp;#039;)&lt;br /&gt;
                    .attr(&amp;#039;rowspan&amp;#039;, &amp;#039;2&amp;#039;)&lt;br /&gt;
                    .css(&amp;#039;background&amp;#039;, &amp;#039;#e8f4f8&amp;#039;)&lt;br /&gt;
                    .css(&amp;#039;text-align&amp;#039;, &amp;#039;center&amp;#039;)&lt;br /&gt;
                    .css(&amp;#039;vertical-align&amp;#039;, &amp;#039;middle&amp;#039;)&lt;br /&gt;
                    .wikitext(&amp;#039;媒体&amp;#039;)&lt;br /&gt;
                    .done()&lt;br /&gt;
                .tag(&amp;#039;th&amp;#039;)&lt;br /&gt;
                    .attr(&amp;#039;colspan&amp;#039;, #system)&lt;br /&gt;
                    .css(&amp;#039;background&amp;#039;, &amp;#039;#e8f4f8&amp;#039;)&lt;br /&gt;
                    .css(&amp;#039;vertical-align&amp;#039;, &amp;#039;middle&amp;#039;)&lt;br /&gt;
                    .wikitext(&amp;#039;得分&amp;#039;)&lt;br /&gt;
                    .done()&lt;br /&gt;
        local forloop = tbl2.tag(&amp;#039;tr&amp;#039;)&lt;br /&gt;
        for j = 1, #system do&lt;br /&gt;
            if string.lower(tostring(args[tostring(system[j][2])])) == &amp;#039;true&amp;#039; then&lt;br /&gt;
                forloop.tag(&amp;#039;th&amp;#039;).wikitext(tostring(system[j][1]))&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
    elseif #halfkeysrev &amp;gt; 0 and platforms == 1 and string.lower(tostring(args[&amp;#039;showplatforms&amp;#039;])) ~= &amp;#039;true&amp;#039; then&lt;br /&gt;
        tbl2.tag(&amp;#039;tr&amp;#039;).tag(&amp;#039;th&amp;#039;)&lt;br /&gt;
            .attr(&amp;#039;colspan&amp;#039;, &amp;#039;2&amp;#039;)&lt;br /&gt;
            .css(&amp;#039;background&amp;#039;, &amp;#039;#d1dbdf&amp;#039;)&lt;br /&gt;
            .css(&amp;#039;font-size&amp;#039;, &amp;#039;120%&amp;#039;)&lt;br /&gt;
            .wikitext(&amp;#039;媒体评分&amp;#039;)&lt;br /&gt;
            .done()&lt;br /&gt;
&lt;br /&gt;
	    tbl2&lt;br /&gt;
            .tag(&amp;#039;tr&amp;#039;)&lt;br /&gt;
                .tag(&amp;#039;th&amp;#039;)&lt;br /&gt;
                    .css(&amp;#039;background&amp;#039;, &amp;#039;#e8f4f8&amp;#039;)&lt;br /&gt;
                    .css(&amp;#039;text-align&amp;#039;, &amp;#039;center&amp;#039;)&lt;br /&gt;
                    .css(&amp;#039;vertical-align&amp;#039;, &amp;#039;middle&amp;#039;)&lt;br /&gt;
                    .wikitext(&amp;#039;媒体&amp;#039;)&lt;br /&gt;
                    .done()&lt;br /&gt;
                .tag(&amp;#039;th&amp;#039;)&lt;br /&gt;
                    .css(&amp;#039;background&amp;#039;, &amp;#039;#e8f4f8&amp;#039;)&lt;br /&gt;
                    .css(&amp;#039;vertical-align&amp;#039;, &amp;#039;middle&amp;#039;)&lt;br /&gt;
                    .wikitext(&amp;#039;得分&amp;#039;)&lt;br /&gt;
                    .done()&lt;br /&gt;
    end&lt;br /&gt;
    if platforms &amp;gt;= 1 then&lt;br /&gt;
        for i = 1, #reviewer do&lt;br /&gt;
            for k = 1, #halfkeysrev do&lt;br /&gt;
                if reviewer[i][2] == halfkeysrev[k] then&lt;br /&gt;
                    local forloop = tbl2.tag(&amp;#039;tr&amp;#039;)&lt;br /&gt;
                    forloop.tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
                        .css(&amp;#039;vertical-align&amp;#039;,&amp;#039;middle&amp;#039;)&lt;br /&gt;
                        .wikitext(reviewer[i][1])&lt;br /&gt;
                        .done()&lt;br /&gt;
&lt;br /&gt;
                    for j = 1, #system do&lt;br /&gt;
                        local temp = tostring(reviewer[i][2]) .. &amp;#039;_&amp;#039; .. tostring(system[j][2])&lt;br /&gt;
                        if string.lower(tostring(args[tostring(system[j][2])])) == &amp;#039;true&amp;#039; and args[temp] ~= nil then&lt;br /&gt;
                            forloop.tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
                                .css(&amp;#039;vertical-align&amp;#039;, &amp;#039;middle&amp;#039;)&lt;br /&gt;
                                .wikitext(tostring(args[temp]))&lt;br /&gt;
                        elseif string.lower(tostring(args[tostring(system[j][2])])) == &amp;#039;true&amp;#039; and string.lower(tostring(args[&amp;#039;na&amp;#039;])) == &amp;#039;true&amp;#039; then&lt;br /&gt;
                            forloop.tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
                                .css(&amp;#039;color&amp;#039;, &amp;#039;lightgray&amp;#039;)&lt;br /&gt;
                                .css(&amp;#039;vertical-align&amp;#039;,&amp;#039;middle&amp;#039;)&lt;br /&gt;
                                .css(&amp;#039;text-align&amp;#039;, &amp;#039;center&amp;#039;)&lt;br /&gt;
                                .addClass(&amp;#039;table-na&amp;#039;)&lt;br /&gt;
                                .wikitext(&amp;#039;不适用&amp;#039;)&lt;br /&gt;
                                .done()&lt;br /&gt;
                        elseif string.lower(tostring(args[tostring(system[j][2])])) == &amp;#039;true&amp;#039; then&lt;br /&gt;
                            forloop.tag(&amp;#039;td&amp;#039;).done()&lt;br /&gt;
                        end&lt;br /&gt;
                    end&lt;br /&gt;
                end&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
        for i = 1, 10 do&lt;br /&gt;
            if args[&amp;#039;rev&amp;#039; .. tostring(i)] ~= nil then&lt;br /&gt;
                local forloop = tbl2.tag(&amp;#039;tr&amp;#039;)&lt;br /&gt;
                forloop.tag(&amp;#039;td&amp;#039;).wikitext(tostring(args[&amp;#039;rev&amp;#039; .. tostring(i)]))&lt;br /&gt;
                for j = 1, #system do&lt;br /&gt;
				    local temp = &amp;#039;rev&amp;#039;.. tostring(i) .. &amp;#039;_&amp;#039; .. tostring(system[j][2])&lt;br /&gt;
                    if string.lower(tostring(args[tostring(system[j][2])])) == &amp;#039;true&amp;#039; and args[temp] ~= nil then&lt;br /&gt;
	                    forloop.tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
                            .css(&amp;#039;vertical-align&amp;#039;,&amp;#039;middle&amp;#039;)&lt;br /&gt;
                            .wikitext(tostring(args[temp]))&lt;br /&gt;
                            .done()&lt;br /&gt;
                    elseif string.lower(tostring(args[tostring(system[j][2])])) == &amp;#039;true&amp;#039; and string.lower(tostring(args[&amp;#039;na&amp;#039;])) == &amp;#039;true&amp;#039; then&lt;br /&gt;
                        forloop.tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
                            .css(&amp;#039;color&amp;#039;, &amp;#039;lightgray&amp;#039;)&lt;br /&gt;
                            .css(&amp;#039;vertical-align&amp;#039;,&amp;#039;middle&amp;#039;)&lt;br /&gt;
                            .css(&amp;#039;text-align&amp;#039;, &amp;#039;center&amp;#039;)&lt;br /&gt;
                            .addClass(&amp;#039;table-na&amp;#039;)&lt;br /&gt;
                            .wikitext(&amp;#039;不适用&amp;#039;)&lt;br /&gt;
                            .done()&lt;br /&gt;
                    elseif string.lower(tostring(args[tostring(system[j][2])])) == &amp;#039;true&amp;#039; then&lt;br /&gt;
                        forloop.tag(&amp;#039;td&amp;#039;).done()&lt;br /&gt;
                    end&lt;br /&gt;
                end&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
        if (#halfkeysagg &amp;gt; 0 and platforms &amp;gt; 1) and #halfkeysrev == 0 then&lt;br /&gt;
            tbl2&lt;br /&gt;
                .tag(&amp;#039;tr&amp;#039;)&lt;br /&gt;
                    .tag(&amp;#039;th&amp;#039;)&lt;br /&gt;
                        .attr(&amp;#039;colspan&amp;#039;, #system+1)&lt;br /&gt;
                        .css(&amp;#039;background&amp;#039;, &amp;#039;#d1dbdf&amp;#039;)&lt;br /&gt;
                        .css(&amp;#039;font-size&amp;#039;, &amp;#039;120%&amp;#039;)&lt;br /&gt;
                        .wikitext(&amp;#039;汇总得分&amp;#039;)&lt;br /&gt;
                        .done()&lt;br /&gt;
            tbl2&lt;br /&gt;
                .tag(&amp;#039;tr&amp;#039;)&lt;br /&gt;
                    .tag(&amp;#039;th&amp;#039;)&lt;br /&gt;
                        .attr(&amp;#039;rowspan&amp;#039;, &amp;#039;2&amp;#039;)&lt;br /&gt;
                        .css(&amp;#039;background&amp;#039;, &amp;#039;#e8f4f8&amp;#039;)&lt;br /&gt;
                        .css(&amp;#039;text-align&amp;#039;, &amp;#039;center&amp;#039;)&lt;br /&gt;
                        .css(&amp;#039;vertical-align&amp;#039;, &amp;#039;middle&amp;#039;)&lt;br /&gt;
                        .wikitext(&amp;#039;媒体&amp;#039;)&lt;br /&gt;
                        .done()&lt;br /&gt;
                    .tag(&amp;#039;th&amp;#039;)&lt;br /&gt;
                        .attr(&amp;#039;colspan&amp;#039;, #system+1)&lt;br /&gt;
                        .css(&amp;#039;background&amp;#039;, &amp;#039;#e8f4f8&amp;#039;)&lt;br /&gt;
                        .css(&amp;#039;vertical-align&amp;#039;, &amp;#039;middle&amp;#039;)&lt;br /&gt;
                        .wikitext(&amp;#039;得分&amp;#039;)&lt;br /&gt;
                        .done()&lt;br /&gt;
            local forloop = tbl2.tag(&amp;#039;tr&amp;#039;)&lt;br /&gt;
            for j = 1, #system do&lt;br /&gt;
                if string.lower(tostring(args[tostring(system[j][2])])) == &amp;#039;true&amp;#039; then&lt;br /&gt;
                    forloop.tag(&amp;#039;th&amp;#039;).wikitext(tostring(system[j][1]))&lt;br /&gt;
                end&lt;br /&gt;
            end&lt;br /&gt;
        elseif (#halfkeysagg &amp;gt; 0 and #halfkeysrev &amp;gt; 0) or (#halfkeysagg &amp;gt; 0 and platforms == 1)then&lt;br /&gt;
            tbl2&lt;br /&gt;
                .tag(&amp;#039;tr&amp;#039;)&lt;br /&gt;
                    .tag(&amp;#039;th&amp;#039;)&lt;br /&gt;
                        .attr(&amp;#039;colspan&amp;#039;, #system+1)&lt;br /&gt;
                        .css(&amp;#039;background&amp;#039;, &amp;#039;#d1dbdf&amp;#039;)&lt;br /&gt;
                        .css(&amp;#039;font-size&amp;#039;, &amp;#039;120%&amp;#039;)&lt;br /&gt;
                        .wikitext(&amp;#039;汇总得分&amp;#039;)&lt;br /&gt;
                        .done()&lt;br /&gt;
        end&lt;br /&gt;
        for i = 1, #aggregator do&lt;br /&gt;
            for k = 1, #halfkeysagg do&lt;br /&gt;
                if aggregator[i][2] == halfkeysagg[k] then&lt;br /&gt;
                    local forloop = tbl2.tag(&amp;#039;tr&amp;#039;)&lt;br /&gt;
                    forloop.tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
                        .css(&amp;#039;vertical-align&amp;#039;,&amp;#039;middle&amp;#039;)&lt;br /&gt;
                        .wikitext(aggregator[i][1])&lt;br /&gt;
                        .done()&lt;br /&gt;
&lt;br /&gt;
                    for j = 1, #system do&lt;br /&gt;
                        local temp = tostring(aggregator[i][2]) .. &amp;#039;_&amp;#039; .. tostring(system[j][2])&lt;br /&gt;
                        if string.lower(tostring(args[tostring(system[j][2])])) == &amp;#039;true&amp;#039; and args[temp] ~= nil then&lt;br /&gt;
                            forloop.tag(&amp;#039;td&amp;#039;).wikitext(tostring(args[temp]))&lt;br /&gt;
                        elseif string.lower(tostring(args[tostring(system[j][2])])) == &amp;#039;true&amp;#039; and string.lower(tostring(args[&amp;#039;na&amp;#039;])) == &amp;#039;true&amp;#039; then&lt;br /&gt;
                            forloop.tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
                                .css(&amp;#039;color&amp;#039;, &amp;#039;lightgray&amp;#039;)&lt;br /&gt;
                                .css(&amp;#039;vertical-align&amp;#039;,&amp;#039;middle&amp;#039;)&lt;br /&gt;
                                .css(&amp;#039;text-align&amp;#039;, &amp;#039;center&amp;#039;)&lt;br /&gt;
                                .addClass(&amp;#039;table-na&amp;#039;)&lt;br /&gt;
                                .wikitext(&amp;#039;不适用&amp;#039;)&lt;br /&gt;
                                .done()&lt;br /&gt;
                        elseif string.lower(tostring(args[tostring(system[j][2])])) == &amp;#039;true&amp;#039; then&lt;br /&gt;
                            forloop.tag(&amp;#039;td&amp;#039;).done()&lt;br /&gt;
                        end&lt;br /&gt;
                    end&lt;br /&gt;
                end&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
	elseif platforms == 0 then&lt;br /&gt;
        if #halfkeysagg &amp;gt; 0 or custome_agg &amp;gt; 0 then&lt;br /&gt;
            tbl2&lt;br /&gt;
                .tag(&amp;#039;tr&amp;#039;)&lt;br /&gt;
                    .tag(&amp;#039;th&amp;#039;)&lt;br /&gt;
                        .attr(&amp;#039;colspan&amp;#039;, 2)&lt;br /&gt;
                        .css(&amp;#039;background&amp;#039;, &amp;#039;#d1dbdf&amp;#039;)&lt;br /&gt;
                        .css(&amp;#039;font-size&amp;#039;, &amp;#039;120%&amp;#039;)&lt;br /&gt;
                        .wikitext(&amp;#039;汇总得分&amp;#039;)&lt;br /&gt;
                        .done()&lt;br /&gt;
                .tag(&amp;#039;tr&amp;#039;)&lt;br /&gt;
                    .tag(&amp;#039;th&amp;#039;)&lt;br /&gt;
                        .css(&amp;#039;background&amp;#039;, &amp;#039;#e8f4f8&amp;#039;)&lt;br /&gt;
                        .css(&amp;#039;text-align&amp;#039;, &amp;#039;center&amp;#039;)&lt;br /&gt;
                        .wikitext(&amp;#039;媒体&amp;#039;)&lt;br /&gt;
                        .done()&lt;br /&gt;
                    .tag(&amp;#039;th&amp;#039;)&lt;br /&gt;
                        .css(&amp;#039;background&amp;#039;, &amp;#039;#e8f4f8&amp;#039;)&lt;br /&gt;
                        .wikitext(&amp;#039;得分&amp;#039;)&lt;br /&gt;
                        .done()&lt;br /&gt;
        end&lt;br /&gt;
        for i = 1, #aggregator do&lt;br /&gt;
            for k = 1, #halfkeysagg do&lt;br /&gt;
                if aggregator[i][2] == halfkeysagg[k] then&lt;br /&gt;
                    tbl2&lt;br /&gt;
                        .tag(&amp;#039;tr&amp;#039;)&lt;br /&gt;
                            .tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
                                .css(&amp;#039;text-align&amp;#039;, &amp;#039;center&amp;#039;)&lt;br /&gt;
                                .css(&amp;#039;vertical-align&amp;#039;, &amp;#039;middle&amp;#039;)&lt;br /&gt;
                                .wikitext(aggregator[i][1])&lt;br /&gt;
                                .done()&lt;br /&gt;
                            .tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
                                .css(&amp;#039;text-align&amp;#039;, &amp;#039;center&amp;#039;)&lt;br /&gt;
                                .css(&amp;#039;font-size&amp;#039;, &amp;#039;110%&amp;#039;)&lt;br /&gt;
                                .wikitext(tostring(args[tostring(aggregator[i][2])]))&lt;br /&gt;
                                .done()&lt;br /&gt;
                end&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
        for i = 1, 10 do&lt;br /&gt;
            if args[&amp;#039;agg&amp;#039; .. tostring(i)] ~= nil then&lt;br /&gt;
                tbl2&lt;br /&gt;
                    .tag(&amp;#039;tr&amp;#039;)&lt;br /&gt;
                        .tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
                            .css(&amp;#039;text-align&amp;#039;, &amp;#039;center&amp;#039;)&lt;br /&gt;
                            .css(&amp;#039;vertical-align&amp;#039;, &amp;#039;middle&amp;#039;)&lt;br /&gt;
                            .wikitext(tostring(args[&amp;#039;agg&amp;#039; .. tostring(i)]))&lt;br /&gt;
                            .done()&lt;br /&gt;
                        .tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
                            .css(&amp;#039;text-align&amp;#039;, &amp;#039;center&amp;#039;)&lt;br /&gt;
                            .css(&amp;#039;font-size&amp;#039;, &amp;#039;110%&amp;#039;)&lt;br /&gt;
                            .wikitext(tostring(args[&amp;#039;agg&amp;#039;.. tostring(i) .. &amp;#039;Score&amp;#039;]))&lt;br /&gt;
                            .done()&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
        if #halfkeysrev &amp;gt; 0 or custome_rev &amp;gt; 0 then&lt;br /&gt;
            tbl2.tag(&amp;#039;tr&amp;#039;).tag(&amp;#039;th&amp;#039;)&lt;br /&gt;
                .attr(&amp;#039;colspan&amp;#039;, #system + 1)&lt;br /&gt;
                .css(&amp;#039;background&amp;#039;, &amp;#039;#d1dbdf&amp;#039;)&lt;br /&gt;
                .css(&amp;#039;font-size&amp;#039;, &amp;#039;120%&amp;#039;)&lt;br /&gt;
                .wikitext(&amp;#039;评论得分&amp;#039;)&lt;br /&gt;
                .done()&lt;br /&gt;
            tbl2&lt;br /&gt;
                .tag(&amp;#039;tr&amp;#039;)&lt;br /&gt;
                    .tag(&amp;#039;th&amp;#039;)&lt;br /&gt;
                        .css(&amp;#039;background&amp;#039;, &amp;#039;#e8f4f8&amp;#039;)&lt;br /&gt;
                        .css(&amp;#039;text-align&amp;#039;, &amp;#039;center&amp;#039;)&lt;br /&gt;
                        .wikitext(&amp;#039;媒体&amp;#039;)&lt;br /&gt;
                        .done()&lt;br /&gt;
                    .tag(&amp;#039;th&amp;#039;)&lt;br /&gt;
                        .attr(&amp;#039;colspan&amp;#039;, &amp;#039;25&amp;#039;)&lt;br /&gt;
                        .css(&amp;#039;background&amp;#039;, &amp;#039;#e8f4f8&amp;#039;)&lt;br /&gt;
                        .wikitext(&amp;#039;得分&amp;#039;)&lt;br /&gt;
                        .done()&lt;br /&gt;
&lt;br /&gt;
            for i = 1, #reviewer do&lt;br /&gt;
                for k = 1, #halfkeysrev do&lt;br /&gt;
                    if reviewer[i][2] == halfkeysrev[k] then&lt;br /&gt;
                        tbl2&lt;br /&gt;
                            .tag(&amp;#039;tr&amp;#039;)&lt;br /&gt;
                                .tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
                                    .css(&amp;#039;text-align&amp;#039;, &amp;#039;center&amp;#039;)&lt;br /&gt;
                                    .css(&amp;#039;vertical-align&amp;#039;, &amp;#039;middle&amp;#039;)&lt;br /&gt;
                                    .wikitext(reviewer[i][1])&lt;br /&gt;
                                    .done()&lt;br /&gt;
                                .tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
                                    .css(&amp;#039;text-align&amp;#039;, &amp;#039;center&amp;#039;)&lt;br /&gt;
                                    .css(&amp;#039;font-size&amp;#039;, &amp;#039;110%&amp;#039;)&lt;br /&gt;
                                    .wikitext(tostring(args[tostring(reviewer[i][2])]))&lt;br /&gt;
                                    .done()&lt;br /&gt;
                    end&lt;br /&gt;
                end&lt;br /&gt;
            end&lt;br /&gt;
            for i = 1, 10 do&lt;br /&gt;
                if args[&amp;#039;rev&amp;#039; .. tostring(i)] ~= nil then&lt;br /&gt;
                    tbl2&lt;br /&gt;
                        .tag(&amp;#039;tr&amp;#039;)&lt;br /&gt;
                            .tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
                                .css(&amp;#039;text-align&amp;#039;, &amp;#039;center&amp;#039;)&lt;br /&gt;
                                .css(&amp;#039;vertical-align&amp;#039;, &amp;#039;middle&amp;#039;)&lt;br /&gt;
                                .wikitext(tostring(args[&amp;#039;rev&amp;#039; .. tostring(i)]))&lt;br /&gt;
                                .done()&lt;br /&gt;
                            .tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
                                .css(&amp;#039;text-align&amp;#039;, &amp;#039;center&amp;#039;)&lt;br /&gt;
                                .css(&amp;#039;font-size&amp;#039;, &amp;#039;110%&amp;#039;)&lt;br /&gt;
                                .wikitext(tostring(args[&amp;#039;rev&amp;#039;.. tostring(i) .. &amp;#039;Score&amp;#039;]))&lt;br /&gt;
                                .done()&lt;br /&gt;
                end&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
	end&lt;br /&gt;
    return tbl2&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
-- Inserts a award into the table output.&lt;br /&gt;
--&lt;br /&gt;
function award(tbl, awardnum)&lt;br /&gt;
    local temp = tbl.tag(&amp;#039;tr&amp;#039;)&lt;br /&gt;
        .tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
            .css(&amp;#039;font-weight&amp;#039;,&amp;#039;bold&amp;#039;)&lt;br /&gt;
            .css(&amp;#039;background-color&amp;#039;,&amp;#039;#f2f2f2&amp;#039;)&lt;br /&gt;
            .wikitext(args[&amp;#039;award&amp;#039; .. awardnum .. &amp;#039;Pub&amp;#039;])&lt;br /&gt;
            .done()&lt;br /&gt;
        .tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
            .css(&amp;#039;background-color&amp;#039;,&amp;#039;#f2f2f2&amp;#039;)&lt;br /&gt;
            .wikitext(args[&amp;#039;award&amp;#039; .. awardnum])&lt;br /&gt;
            .done()&lt;br /&gt;
    return temp&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
-- Insert awards header and calls award row creation.&lt;br /&gt;
--&lt;br /&gt;
function awards()&lt;br /&gt;
    if args[&amp;#039;award1&amp;#039;] then&lt;br /&gt;
        local Cell = HtmlBuilder.create(&amp;#039;table&amp;#039;)&lt;br /&gt;
            .addClass(&amp;#039;infobox wikitable&amp;#039;)&lt;br /&gt;
            .css(&amp;#039;width&amp;#039;, &amp;#039;100%&amp;#039;)&lt;br /&gt;
            .css(&amp;#039;margin&amp;#039;, &amp;#039;0em&amp;#039;)&lt;br /&gt;
            .css(&amp;#039;border-top&amp;#039;, &amp;#039;none&amp;#039;)&lt;br /&gt;
            .attr(&amp;#039;cellpadding&amp;#039;, 3)&lt;br /&gt;
            .attr(&amp;#039;cellspacing&amp;#039;, 0)&lt;br /&gt;
        Cell&lt;br /&gt;
            .tag(&amp;#039;tr&amp;#039;)&lt;br /&gt;
                .tag(&amp;#039;th&amp;#039;)&lt;br /&gt;
                    .attr(&amp;#039;colspan&amp;#039;, 2)&lt;br /&gt;
                    .css(&amp;#039;background&amp;#039;, &amp;#039;#d1dbdf&amp;#039;)&lt;br /&gt;
                    .css(&amp;#039;font-size&amp;#039;, &amp;#039;120%&amp;#039;)&lt;br /&gt;
                    .css(&amp;#039;border-top&amp;#039;, &amp;#039;none&amp;#039;)&lt;br /&gt;
                    .wikitext(&amp;#039;所获奖项&amp;#039;)&lt;br /&gt;
                    .done()&lt;br /&gt;
        Cell&lt;br /&gt;
            .tag(&amp;#039;tr&amp;#039;)&lt;br /&gt;
                .tag(&amp;#039;th&amp;#039;).wikitext(&amp;#039;媒体&amp;#039;)&lt;br /&gt;
                .tag(&amp;#039;th&amp;#039;).wikitext(&amp;#039;奖项&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
        for i, awardnum in ipairs(awardnums) do&lt;br /&gt;
            local awardRow = award(Cell, awardnum)&lt;br /&gt;
            awardRow&lt;br /&gt;
                .done()&lt;br /&gt;
        end&lt;br /&gt;
        return Cell&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
-- Main tables&lt;br /&gt;
--&lt;br /&gt;
&lt;br /&gt;
function renderMainTable()&lt;br /&gt;
    local tbl&lt;br /&gt;
&lt;br /&gt;
    if args[&amp;#039;award1&amp;#039;] or ((#halfkeysagg &amp;gt; 0 or #halfkeysrev &amp;gt; 0 or custome_agg &amp;gt; 0 or custome_rev &amp;gt; 0) and platforms &amp;gt;= 0) then&lt;br /&gt;
        if platforms == 0 then&lt;br /&gt;
            -- Width: 20% Seems better since it scales with the article size.&lt;br /&gt;
            tbl = HtmlBuilder.create(&amp;#039;table&amp;#039;)&lt;br /&gt;
                .attr(&amp;#039;cellpadding&amp;#039;, 0)&lt;br /&gt;
                .attr(&amp;#039;cellspacing&amp;#039;, 0)&lt;br /&gt;
                .css(&amp;#039;background&amp;#039;, &amp;#039;transparent&amp;#039;)&lt;br /&gt;
                .css(&amp;#039;padding&amp;#039;, &amp;#039;0em&amp;#039;)&lt;br /&gt;
                .css(&amp;#039;margin&amp;#039;, &amp;#039;0em 1em 1em 1em&amp;#039;)&lt;br /&gt;
                .css(&amp;#039;text-align&amp;#039;, &amp;#039;center&amp;#039;)&lt;br /&gt;
                .css(&amp;#039;font-size&amp;#039;, &amp;#039;80%&amp;#039;)&lt;br /&gt;
            if args.width then&lt;br /&gt;
                tbl&lt;br /&gt;
                    .css(&amp;#039;width&amp;#039;,args.width)&lt;br /&gt;
            else&lt;br /&gt;
                tbl&lt;br /&gt;
                    .css(&amp;#039;width&amp;#039;, &amp;#039;23em&amp;#039;)&lt;br /&gt;
            end&lt;br /&gt;
        else&lt;br /&gt;
            tbl = HtmlBuilder.create(&amp;#039;table&amp;#039;)&lt;br /&gt;
                .attr(&amp;#039;cellpadding&amp;#039;, 0)&lt;br /&gt;
                .attr(&amp;#039;cellspacing&amp;#039;, 0)&lt;br /&gt;
                .css(&amp;#039;background&amp;#039;, &amp;#039;transparent&amp;#039;)&lt;br /&gt;
                .css(&amp;#039;padding&amp;#039;, &amp;#039;0em&amp;#039;)&lt;br /&gt;
                .css(&amp;#039;margin&amp;#039;, &amp;#039;0em 1em 1em 1em&amp;#039;)&lt;br /&gt;
                .css(&amp;#039;text-align&amp;#039;, &amp;#039;center&amp;#039;)&lt;br /&gt;
                .css(&amp;#039;font-size&amp;#039;, &amp;#039;80%&amp;#039;)&lt;br /&gt;
        end&lt;br /&gt;
        if args.state then&lt;br /&gt;
            tbl&lt;br /&gt;
                .addClass(args.state)&lt;br /&gt;
        else&lt;br /&gt;
            tbl&lt;br /&gt;
                .addClass(&amp;#039;collapsible&amp;#039;)&lt;br /&gt;
        end&lt;br /&gt;
&lt;br /&gt;
        if args.title and (args.state ~= &amp;#039;plain&amp;#039; and args.state ~= &amp;#039;off&amp;#039;) then&lt;br /&gt;
            tbl&lt;br /&gt;
                .addClass(&amp;#039;collapsible&amp;#039;)&lt;br /&gt;
                .addClass(args.state)&lt;br /&gt;
        end&lt;br /&gt;
&lt;br /&gt;
        if args.align and args.align ~= &amp;#039;right&amp;#039; then&lt;br /&gt;
            tbl&lt;br /&gt;
                .css(&amp;#039;float&amp;#039;, args.align)&lt;br /&gt;
        else&lt;br /&gt;
            tbl&lt;br /&gt;
                .css(&amp;#039;float&amp;#039;, &amp;#039;right&amp;#039;)&lt;br /&gt;
        end&lt;br /&gt;
&lt;br /&gt;
        renderTitleRow(tbl)&lt;br /&gt;
&lt;br /&gt;
        tbl&lt;br /&gt;
            .tag(&amp;#039;tr&amp;#039;)&lt;br /&gt;
                .tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
                    .node(reviews())&lt;br /&gt;
                    .done()&lt;br /&gt;
&lt;br /&gt;
        tbl&lt;br /&gt;
            .tag(&amp;#039;tr&amp;#039;)&lt;br /&gt;
                .tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
                    .node(awards())&lt;br /&gt;
                    .done()&lt;br /&gt;
    else&lt;br /&gt;
        category = categoryHandler{&lt;br /&gt;
            main = &amp;#039;[[Category:Empty templates on articles]]&amp;#039;&lt;br /&gt;
        }&lt;br /&gt;
        category = category or &amp;#039;&amp;#039; -- Check that we don&amp;#039;t have a nil value for the category variable.&lt;br /&gt;
        tbl = HtmlBuilder.create()&lt;br /&gt;
		tbl.wikitext(category)&lt;br /&gt;
    end&lt;br /&gt;
    return tbl&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
-- Creates the table and calls functions that create the reviews and awards tables/columns/rows.&lt;br /&gt;
--&lt;br /&gt;
function p._reviewbox(reviewBoxArgs)&lt;br /&gt;
    local t = {}&lt;br /&gt;
    local flags = {}&lt;br /&gt;
    local nitem = {}&lt;br /&gt;
    local halfargs = {}&lt;br /&gt;
    local j = 1&lt;br /&gt;
    -- calls for the args.&lt;br /&gt;
    args = reviewBoxArgs&lt;br /&gt;
    platforms = platforms()&lt;br /&gt;
    custome_rev = custome_rev()&lt;br /&gt;
    custome_agg = custome_agg()&lt;br /&gt;
&lt;br /&gt;
    -- sorts args by string.&lt;br /&gt;
    for k in pairsByKeys(args) do&lt;br /&gt;
        table.insert(t, k)&lt;br /&gt;
    end&lt;br /&gt;
    keys = t&lt;br /&gt;
&lt;br /&gt;
    -- creates a table of all unique reviewers.&lt;br /&gt;
    for i=1,#keys do&lt;br /&gt;
        if string.find(tostring(keys[i]), &amp;#039;_&amp;#039;) ~= nil and platforms &amp;gt;= 1 then&lt;br /&gt;
            halfargs = Split(tostring(keys[i]),&amp;#039;_&amp;#039;)&lt;br /&gt;
            for k=1, #reviewer do&lt;br /&gt;
                if reviewer[k][2] == halfargs[1] then&lt;br /&gt;
                    if not flags[halfargs[1]] then&lt;br /&gt;
                        flags[halfargs[1]] = true&lt;br /&gt;
                        nitem[j] = halfargs[1]&lt;br /&gt;
                        j = j + 1&lt;br /&gt;
                    end&lt;br /&gt;
                end&lt;br /&gt;
            end&lt;br /&gt;
        elseif string.find(tostring(keys[i]), &amp;#039;_&amp;#039;) == nil and platforms == 0 then&lt;br /&gt;
            for k=1, #reviewer do&lt;br /&gt;
                if reviewer[k][2] == keys[i] then&lt;br /&gt;
                    nitem[j] = keys[i]&lt;br /&gt;
                    j = j + 1&lt;br /&gt;
                end&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
    halfkeysrev = nitem&lt;br /&gt;
&lt;br /&gt;
    local flags = {}&lt;br /&gt;
    local nitem = {}&lt;br /&gt;
    local halfargs = {}&lt;br /&gt;
    local j = 1&lt;br /&gt;
    -- creates a table of all unique aggregators.&lt;br /&gt;
    for i=1,#keys do&lt;br /&gt;
        if string.find(tostring(keys[i]), &amp;#039;_&amp;#039;) ~= nil and platforms &amp;gt;= 1 then&lt;br /&gt;
            halfargs = Split(tostring(keys[i]),&amp;#039;_&amp;#039;)&lt;br /&gt;
            for k=1, #aggregator do&lt;br /&gt;
                if aggregator[k][2] == halfargs[1] then&lt;br /&gt;
                    if not flags[halfargs[1]] then&lt;br /&gt;
                        flags[halfargs[1]] = true&lt;br /&gt;
                        nitem[j] = halfargs[1]&lt;br /&gt;
                        j = j + 1&lt;br /&gt;
                    end&lt;br /&gt;
                end&lt;br /&gt;
            end&lt;br /&gt;
        elseif string.find(tostring(keys[i]), &amp;#039;_&amp;#039;) == nil and platforms == 0 then&lt;br /&gt;
            for k=1, #aggregator do&lt;br /&gt;
                if aggregator[k][2] == keys[i] then&lt;br /&gt;
                    nitem[j] = keys[i]&lt;br /&gt;
                    j = j + 1&lt;br /&gt;
                end&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
    halfkeysagg = nitem&lt;br /&gt;
&lt;br /&gt;
    -- sorts awards by number from args.&lt;br /&gt;
    for k, v in pairs(args) do&lt;br /&gt;
        local awardnum = (&amp;#039;&amp;#039; .. k):match(&amp;#039;^award(%d+)$&amp;#039;)&lt;br /&gt;
        if awardnum then table.insert(awardnums, tonumber(awardnum)) end&lt;br /&gt;
    end&lt;br /&gt;
    if awardnums then table.sort(awardnums) end&lt;br /&gt;
&lt;br /&gt;
    -- render the main body of the Review Box&lt;br /&gt;
    local tbl = renderMainTable()&lt;br /&gt;
&lt;br /&gt;
    -- render the appropriate wrapper around the Review Box, depending on the border param&lt;br /&gt;
    local res = HtmlBuilder.create()&lt;br /&gt;
&lt;br /&gt;
    res.node(tbl)&lt;br /&gt;
&lt;br /&gt;
    return tostring(res)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
-- Main: frame function.&lt;br /&gt;
--&lt;br /&gt;
function p.reviewbox(frame)&lt;br /&gt;
    -- ParserFunctions considers the empty string to be false, so to preserve the previous&lt;br /&gt;
    -- behavior of {{Video game multiple console reviews}}, change any empty arguments to nil, so Lua will consider&lt;br /&gt;
    -- them false too.&lt;br /&gt;
    local args = {}&lt;br /&gt;
    local parent_args = frame:getParent().args;&lt;br /&gt;
    for k, v in pairs(parent_args) do&lt;br /&gt;
        if v ~= &amp;#039;&amp;#039; then&lt;br /&gt;
            args[k] = v&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    return p._reviewbox(args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>imported&gt;Wangxuan8331800</name></author>
	</entry>
</feed>