|
|
第117行: |
第117行: |
| end | | end |
| return tmp; | | return tmp; |
| | end |
| | |
| | local tagCount = 1; |
| | local function summonTag(color,name,argname) |
| | local tag = |
| | box:tag("tr") |
| | :tag("td"):wikitext(name):css("color", color):done() |
| | |
| | if isDefault[tagCount] |
| | then if not isDefault[tagCount-1] then |
| | tag = tag:tag("td"):wikitext(DefaultValue):attr("rowspan",getDefValue(tagCount)); |
| | end |
| | else tag = tag:tag("td"):wikitext(args[argname]) |
| | end |
| | tag:done() |
| | tagCount = tagCount + 1; |
| end | | end |
|
| |
|
第126行: |
第142行: |
| :done(); | | :done(); |
|
| |
|
| -- 第二行:难度I | | summonTag("#43a047","难度Ⅰ","难度I解禁方法") |
| tag =
| | summonTag("#1565c0","难度Ⅱ","难度II解禁方法") |
| box:tag("tr")
| | summonTag("#e65100","难度Ⅲ","难度III解禁方法") |
| :tag("td"):wikitext("难度Ⅰ"):css("color", "#43a047"):done()
| | summonTag("#ab47bc","难度Ⅳ","难度IV解禁方法") |
|
| |
| if isDefault[1]
| |
| then tag = tag:tag("td"):wikitext(DefaultValue):attr("rowspan",getDefValue(1));
| |
| else tag = tag:tag("td"):wikitext(args["难度I解禁方法"])
| |
| end | |
| tag:done()
| |
| | |
| -- 第三行:难度II
| |
| tag =
| |
| box:tag("tr")
| |
| :tag("td"):wikitext("难度Ⅱ"):css("color", "#1565c0"):done()
| |
|
| |
| if isDefault[2]
| |
| then if not isDefault[1] then
| |
| tag = tag:tag("td"):wikitext(DefaultValue):attr("rowspan",getDefValue(2));
| |
| end
| |
| else tag = tag:tag("td"):wikitext(args["难度II解禁方法"])
| |
| end | |
| tag:done()
| |
| | |
| -- 第四行:难度III
| |
| tag =
| |
| box:tag("tr")
| |
| :tag("td"):wikitext("难度Ⅲ"):css("color", "#e65100"):done()
| |
|
| |
| if isDefault[3]
| |
| then if not isDefault[2] then
| |
| tag = tag:tag("td"):wikitext(DefaultValue):attr("rowspan",getDefValue(3));
| |
| end
| |
| else tag = tag:tag("td"):wikitext(args["难度III解禁方法"])
| |
| end | |
| tag:done()
| |
| | |
| -- 第五行:难度IV
| |
| | |
| tag =
| |
| box:tag("tr")
| |
| :tag("td"):wikitext("难度Ⅳ"):css("color", "#ab47bc"):done()
| |
|
| |
| if isDefault[4]
| |
| then if not isDefault[3] then
| |
| tag = tag:tag("td"):wikitext(DefaultValue);
| |
| end
| |
| else tag = tag:tag("td"):wikitext(args["难度IV解禁方法"])
| |
| end
| |
| tag:done()
| |
| | | |
| return tostring(box) | | return tostring(box) |