2023年政策修订增补工作正在进行中,欢迎参与!
  • Moegirl.ICU:萌娘百科流亡社群 581077156(QQ),欢迎对萌娘百科运营感到失望的编辑者加入
  • Moegirl.ICU:账号认领正在试运行,有意者请参照账号认领流程

Template talk:Infobox

萌娘百科,万物皆可萌的百科全书!转载请标注来源页面的网页链接,并声明引自萌娘百科。内容不可商用。
跳转到导航 跳转到搜索

编辑请求 - 850710247liu

由850710247liu提出的编辑请求:

状态:   完成

将以下内容:

[[File:{{{image}}}|250px]]

修改为:

[[File:{{{image}}}|280px]]

全站css改了后会有白边,图片大小应该同信息栏1.0和2.0一致——悠远的苍穹 (Talk with me!) 2020年5月25日 (一) 09:24 (CST)

Done.——From AnnAngela the Temporary Bureaucrat (Talk) 2020年5月25日 (一) 11:51 (CST)

编辑请求 - 红石小蝈 - 2020.08.30

由红石小蝈提出的编辑请求:

状态:   完成

将以下内容:

{{{text-align|text-align: center;}}};

修改为:

{{{text-align|text-align: center}}};

重复的分号From a patroller named RedstoneDave 2020年8月30日 (日) 17:59 (CST)

Done.——From AnnAngela the Temporary Bureaucrat (Talk) 2020年8月30日 (日) 22:46 (CST)

编辑请求 - Chko08022003 - 2021.06.03

由Chko08022003提出的对Template:Infobox的编辑请求:

状态:   撤回

将以下内容:

{{Infobox/brick|column1= {{{Row 30 title|}}}|column1 style= {{{Row 30 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" |column2= {{{Row 30 info|}}}|column2 style={{{Row 30 infostyle| {{{Row infostyle|}}} }}} }}

修改为:

{{Infobox/brick|column1= {{{Row 30 title|}}}|column1 style= {{{Row 30 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" |column2= {{{Row 30 info|}}}|column2 style={{{Row 30 infostyle| {{{Row infostyle|}}} }}} }} {{Infobox/brick|column1= {{{Row 31 title|}}}|column1 style= {{{Row 31 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" |column2= {{{Row 31 info|}}}|column2 style={{{Row 31 infostyle| {{{Row infostyle|}}} }}} }} {{Infobox/brick|column1= {{{Row 32 title|}}}|column1 style= {{{Row 32 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" |column2= {{{Row 32 info|}}}|column2 style={{{Row 32 infostyle| {{{Row infostyle|}}} }}} }} {{Infobox/brick|column1= {{{Row 33 title|}}}|column1 style= {{{Row 33 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" |column2= {{{Row 33 info|}}}|column2 style={{{Row 33 infostyle| {{{Row infostyle|}}} }}} }} {{Infobox/brick|column1= {{{Row 34 title|}}}|column1 style= {{{Row 34 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" |column2= {{{Row 34 info|}}}|column2 style={{{Row 34 infostyle| {{{Row infostyle|}}} }}} }} {{Infobox/brick|column1= {{{Row 35 title|}}}|column1 style= {{{Row 35 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" |column2= {{{Row 35 info|}}}|column2 style={{{Row 35 infostyle| {{{Row infostyle|}}} }}} }} {{Infobox/brick|column1= {{{Row 36 title|}}}|column1 style= {{{Row 36 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" |column2= {{{Row 36 info|}}}|column2 style={{{Row 36 infostyle| {{{Row infostyle|}}} }}} }} {{Infobox/brick|column1= {{{Row 37 title|}}}|column1 style= {{{Row 37 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" |column2= {{{Row 37 info|}}}|column2 style={{{Row 37 infostyle| {{{Row infostyle|}}} }}} }} {{Infobox/brick|column1= {{{Row 38 title|}}}|column1 style= {{{Row 38 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" |column2= {{{Row 38 info|}}}|column2 style={{{Row 38 infostyle| {{{Row infostyle|}}} }}} }} {{Infobox/brick|column1= {{{Row 39 title|}}}|column1 style= {{{Row 39 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" |column2= {{{Row 39 info|}}}|column2 style={{{Row 39 infostyle| {{{Row infostyle|}}} }}} }} {{Infobox/brick|column1= {{{Row 40 title|}}}|column1 style= {{{Row 40 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" |column2= {{{Row 40 info|}}}|column2 style={{{Row 40 infostyle| {{{Row infostyle|}}} }}} }}

新增Row31-40,實際應用於{{ProjectsekaiSongGai}};另外,可否考慮擴增至50行?--By patroller CHKO (Talk) @ 2021年6月3日 (四) 15:46 (CST)

我在想能不能forargs=。=——From AnnAngela the Temporary Bureaucrat (Talk) 2021年6月3日 (四) 17:09 (CST)
能肯定是能的,而且肯定是forargs更合理。之前Maya在FGO相关的一些模板(比如{{宝具}})里面做过类似的事情来着,AnnA不嫌弃的话可以看一下? --M.Me. J.Just a chat. H.Hard work.【剥】 2021年6月15日 (二) 09:51 (CST)
那麻烦你弄一下?——From AnnAngela the Bureaucrat (Talk) 2021年6月16日 (三) 11:32 (CST)
那今晚我开个用户页沙盒,明天之前给AnnA看一下吧 --M.Maya. J.Jot something down. H.History.【兑】 2021年6月16日 (三) 11:45 (CST)
啊,说起来,@AnnAngela 这个模板有没有轻量级要求?比如,有没有“不能用其他module”之类的要求?(不过既然解析器函数可以用,大概用其他module也是可以的吧?) --M.Main user page. J.Jot something down. H.History.【随】 2021年6月16日 (三) 11:52 (CST)
嗯,比想象中要容易一些。User:MJH/Infobox是趁着午饭点儿摸鱼摸出来的结果。 --M.More about this user. J.Jot something down. H.Heritage.【讼】 2021年6月16日 (三) 12:50 (CST)

用编辑请求的格式整理一下我做的东西,如果不放心的话也可以先用User:MJH/Infobox测试一下,再执行下面的编辑请求——

由MJH提出的对Template:Infobox的编辑请求:

状态:   完成

将以下内容:

{{Infobox/brick|column1= {{{Row 1 title|}}}|column1 style= {{{Row 1 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" 
|column2= {{{Row 1 info|}}}|column2 style={{{Row 1 infostyle| {{{Row infostyle|}}} }}} }}
{{Infobox/brick|column1= {{{Row 2 title|}}}|column1 style= {{{Row 2 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" 
|column2= {{{Row 2 info|}}}|column2 style={{{Row 2 infostyle| {{{Row infostyle|}}} }}} }}
{{Infobox/brick|column1= {{{Row 3 title|}}}|column1 style= {{{Row 3 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" 
|column2= {{{Row 3 info|}}}|column2 style={{{Row 3 infostyle| {{{Row infostyle|}}} }}} }}
{{Infobox/brick|column1= {{{Row 4 title|}}}|column1 style= {{{Row 4 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" 
|column2= {{{Row 4 info|}}}|column2 style={{{Row 4 infostyle| {{{Row infostyle|}}} }}} }}
{{Infobox/brick|column1= {{{Row 5 title|}}}|column1 style= {{{Row 5 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" 
|column2= {{{Row 5 info|}}}|column2 style={{{Row 5 infostyle| {{{Row infostyle|}}} }}} }}
{{Infobox/brick|column1= {{{Row 6 title|}}}|column1 style= {{{Row 6 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" 
|column2= {{{Row 6 info|}}}|column2 style={{{Row 6 infostyle| {{{Row infostyle|}}} }}} }}
{{Infobox/brick|column1= {{{Row 7 title|}}}|column1 style= {{{Row 7 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" 
|column2= {{{Row 7 info|}}}|column2 style={{{Row 7 infostyle| {{{Row infostyle|}}} }}} }}
{{Infobox/brick|column1= {{{Row 8 title|}}}|column1 style= {{{Row 8 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" 
|column2= {{{Row 8 info|}}}|column2 style={{{Row 8 infostyle| {{{Row infostyle|}}} }}} }}
{{Infobox/brick|column1= {{{Row 9 title|}}}|column1 style= {{{Row 9 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" 
|column2= {{{Row 9 info|}}}|column2 style={{{Row 9 infostyle| {{{Row infostyle|}}} }}} }}
{{Infobox/brick|column1= {{{Row 10 title|}}}|column1 style= {{{Row 10 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" 
|column2= {{{Row 10 info|}}}|column2 style={{{Row 10 infostyle| {{{Row infostyle|}}} }}} }}
{{Infobox/brick|column1= {{{Row 11 title|}}}|column1 style= {{{Row 11 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" 
|column2= {{{Row 11 info|}}}|column2 style={{{Row 11 infostyle| {{{Row infostyle|}}} }}} }}
{{Infobox/brick|column1= {{{Row 12 title|}}}|column1 style= {{{Row 12 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" 
|column2= {{{Row 12 info|}}}|column2 style={{{Row 12 infostyle| {{{Row infostyle|}}} }}} }}
{{Infobox/brick|column1= {{{Row 13 title|}}}|column1 style= {{{Row 13 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" 
|column2= {{{Row 13 info|}}}|column2 style={{{Row 13 infostyle| {{{Row infostyle|}}} }}} }}
{{Infobox/brick|column1= {{{Row 14 title|}}}|column1 style= {{{Row 14 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" 
|column2= {{{Row 14 info|}}}|column2 style={{{Row 14 infostyle| {{{Row infostyle|}}} }}} }}
{{Infobox/brick|column1= {{{Row 15 title|}}}|column1 style= {{{Row 15 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" 
|column2= {{{Row 15 info|}}}|column2 style={{{Row 15 infostyle| {{{Row infostyle|}}} }}} }}
{{Infobox/brick|column1= {{{Row 16 title|}}}|column1 style= {{{Row 16 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" 
|column2= {{{Row 16 info|}}}|column2 style={{{Row 16 infostyle| {{{Row infostyle|}}} }}} }}
{{Infobox/brick|column1= {{{Row 17 title|}}}|column1 style= {{{Row 17 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" 
|column2= {{{Row 17 info|}}}|column2 style={{{Row 17 infostyle| {{{Row infostyle|}}} }}} }}
{{Infobox/brick|column1= {{{Row 18 title|}}}|column1 style= {{{Row 18 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" 
|column2= {{{Row 18 info|}}}|column2 style={{{Row 18 infostyle| {{{Row infostyle|}}} }}} }}
{{Infobox/brick|column1= {{{Row 19 title|}}}|column1 style= {{{Row 19 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" 
|column2= {{{Row 19 info|}}}|column2 style={{{Row 19 infostyle| {{{Row infostyle|}}} }}} }}
{{Infobox/brick|column1= {{{Row 20 title|}}}|column1 style= {{{Row 20 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" 
|column2= {{{Row 20 info|}}}|column2 style={{{Row 20 infostyle| {{{Row infostyle|}}} }}} }}
{{Infobox/brick|column1= {{{Row 21 title|}}}|column1 style= {{{Row 21 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" 
|column2= {{{Row 21 info|}}}|column2 style={{{Row 21 infostyle| {{{Row infostyle|}}} }}} }}
{{Infobox/brick|column1= {{{Row 22 title|}}}|column1 style= {{{Row 22 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" 
|column2= {{{Row 22 info|}}}|column2 style={{{Row 22 infostyle| {{{Row infostyle|}}} }}} }}
{{Infobox/brick|column1= {{{Row 23 title|}}}|column1 style= {{{Row 23 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" 
|column2= {{{Row 23 info|}}}|column2 style={{{Row 23 infostyle| {{{Row infostyle|}}} }}} }}
{{Infobox/brick|column1= {{{Row 24 title|}}}|column1 style= {{{Row 24 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" 
|column2= {{{Row 24 info|}}}|column2 style={{{Row 24 infostyle| {{{Row infostyle|}}} }}} }}
{{Infobox/brick|column1= {{{Row 25 title|}}}|column1 style= {{{Row 25 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" 
|column2= {{{Row 25 info|}}}|column2 style={{{Row 25 infostyle| {{{Row infostyle|}}} }}} }}
{{Infobox/brick|column1= {{{Row 26 title|}}}|column1 style= {{{Row 26 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" 
|column2= {{{Row 26 info|}}}|column2 style={{{Row 26 infostyle| {{{Row infostyle|}}} }}} }}
{{Infobox/brick|column1= {{{Row 27 title|}}}|column1 style= {{{Row 27 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" 
|column2= {{{Row 27 info|}}}|column2 style={{{Row 27 infostyle| {{{Row infostyle|}}} }}} }}
{{Infobox/brick|column1= {{{Row 28 title|}}}|column1 style= {{{Row 28 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" 
|column2= {{{Row 28 info|}}}|column2 style={{{Row 28 infostyle| {{{Row infostyle|}}} }}} }}
{{Infobox/brick|column1= {{{Row 29 title|}}}|column1 style= {{{Row 29 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" 
|column2= {{{Row 29 info|}}}|column2 style={{{Row 29 infostyle| {{{Row infostyle|}}} }}} }}
{{Infobox/brick|column1= {{{Row 30 title|}}}|column1 style= {{{Row 30 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" 
|column2= {{{Row 30 info|}}}|column2 style={{{Row 30 infostyle| {{{Row infostyle|}}} }}} }}

修改为:

{{#vardefine:maxidx|0}}{{#forargs:Row |k|v|{{#if:{{#vardefineecho:idx|{{str_match|str={{#var:k}}|ptn=^(%d+) title$}}}}|
{{#ifexpr:{{#var:maxidx}}<{{#var:idx}}|{{#vardefine:maxidx|{{#var:idx}}}}}}
}}}}<!-- 这里先loop一遍记录maxidx是为了绕过#forargs依赖参数顺序的特性,保证row 1 title始终排在row 2 title前面。 -->
{{#invoke:loop|loop|time=1|{{#var:maxidx}}
|do=<nowiki>
{{Infobox/brick|column1= {{{Row {{#var:time}} title|}}}|column1 style= {{{Row {{#var:time}} titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" 
|column2= {{{Row {{#var:time}} info|}}}|column2 style={{{Row {{#var:time}} infostyle| {{{Row infostyle|}}} }}} }}
</nowiki>
}}

此外,关于对#forargs依赖参数顺序的特性的批判,参见User:MJH/evilforargs。——M.Me. J.Jot something down. H.History.【萃】 2021年6月16日 (三) 12:57 (CST)

@MJH使用后显示:表达式错误:无法识别的标点“[”,脚本错误:函数“loop”不存在。--悠远的苍穹 (Talk with me!) 2021年6月24日 (四) 09:33 (CST)
欸欸?!我可以看一下对应的沙盒页面固定链接吗…… --M.Me. J.Just a chat. H.Heritage.【观】{{#forargs:}} is evil! 2021年6月24日 (四) 09:35 (CST)
似乎{{#invoke:loop|loop|应该改为{{#invoke:loop|main|,还有我没在这里实验,不过我想你应该知道我会在哪里实验。。。--悠远的苍穹 (Talk with me!) 2021年6月24日 (四) 09:37 (CST)
@MJH你退群后,我失去了你的QQ,你可以加我的 QQ:850710247--悠远的苍穹 (Talk with me!) 2021年6月24日 (四) 09:42 (CST)
是不是那边的loop模块实现不一样?这边的loop模块里面loop和main是完全等价的,loop换成main没道理造成任何影响。 --M.Me. J.Jot something down. H.Hard work.【晋】{{#forargs:}} is evil! 2021年6月24日 (四) 09:44 (CST)
那里的模块没更新,刚才我更了就好了,现在只显示:表达式错误:无法识别的标点“[”。表达式错误:无法识别的标点“[”。表达式错误:无法识别的标点“[”。表达式错误:无法识别的标点“[”。表达式错误:无法识别的标点“[”。表达式错误:无法识别的标点“[”。表达式错误:无法识别的标点“[”。表达式错误:无法识别的标点“[”。
源代码
{| class="{{{class|infobox}}}" align={{{align|right}}} style="font-size:{{{font-size|89%}}}; {{{text-align|text-align:center}}}; width:{{{width|260px}}}; max-width:{{{max-width|100%}}}; float:{{{float|right}}}; background-color:{{{bg-color|#FFF}}};"
{{{title-main|{{!}} colspan="{{{colspan-site|2}}}" style="background-color:{{{title-color|#26ca9b}}}; color:{{{text-color|#FFFFFF}}}; font-size:100%; padding:1em;" {{!}} {{{Title|}}} }}}
|-
{{#if: {{{image|}}} |
{{!}} colspan= "{{{colspan-site|2}}}" {{!}} [[File:{{{image}}}|{{#if:{{{size|}}} | {{{size}}} | 280px}}]]<br/>{{{caption| }}}
|{{!}} colspan= "{{{colspan-site|2}}}" {{!}}{{{image-lostmessage|}}}
}} 
|-
{{#if: {{{tabs| }}}|
{{!}} colspan="{{{colspan-site|2}}}" {{!}} {{{tabs| }}}
|
}}
{{Infobox/brick|column1= {{{Row x1|}}} |column1 style= {{{Row x1 style|}}} colspan="{{{colspan-site|2}}}"  }}
{{Infobox/brick|column1= {{{Row x2|}}} |column1 style= {{{Row x2 style|}}} colspan="{{{colspan-site|2}}}"  }}
{{#vardefine:maxidx|0}}{{#forargs:Row |k|v|{{#if:{{#vardefineecho:idx|{{str_match|str={{#var:k}}|ptn=^(%d+) title$}}}}|
{{#ifexpr:{{#var:maxidx}}<{{#var:idx}}|{{#vardefine:maxidx|{{#var:idx}}}}}}
}}}}
{{#invoke:loop|main|time=1|{{#var:maxidx}}
|do=<nowiki>
{{Infobox/brick|column1= {{{Row {{#var:time}} title|}}}|column1 style= {{{Row {{#var:time}} titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" 
|column2= {{{Row {{#var:time}} info|}}}|column2 style={{{Row {{#var:time}} infostyle| {{{Row infostyle|}}} }}} }}

}}
{{Infobox/brick|column1= {{{Row h1 title|}}} |column1 style= {{{Row h1 titlestyle|}}} colspan="{{{colspan-site|2}}}" bgcolor="{{{under-column-color|#62bca9}}}" }}
{{Infobox/brick|column1= {{clear}}
{{{Row h1 info|}}} |column1 style= {{{Row h1 infostyle|}}} colspan="{{{colspan-site|2}}}" }}
{{Infobox/brick|column1= {{{Row h2 title|}}} |column1 style= {{{Row h2 titlestyle|}}} colspan="{{{colspan-site|2}}}" bgcolor="{{{under-column-color|#62bca9}}}" }}
{{Infobox/brick|column1= {{clear}}
{{{Row h2 info|}}} |column1 style= {{{Row h2 infostyle|}}} colspan="{{{colspan-site|2}}}" }}
|-
{{{Row b1| }}}
|-
{{{Row b2| }}}
|}</nowiki>
你在那边ping我一下我看看吧,有点怪…… --M.Me. J.Join the talk. H.Hard work.【艮】{{#forargs:}} is evil! 2021年6月24日 (四) 09:56 (CST)
问题已解决,是因为那边缺失了萌百这边的一个模板。模板同步过去之后就解决了。 --M.Main user page. J.Join the talk. H.Heritage.【家人】{{#forargs:}} is evil! 2021年6月24日 (四) 10:24 (CST)
Done.——From AnnAngela the Bureaucrat (Talk) 2021年7月3日 (六) 19:37 (CST)
现在部分多次调用Infobox页面出现表达式错误:未预料的<操作符。*n+为运行的脚本分配的时间已耗尽。问题,希望可以进一步处理。--夜刀神真香讨论) 2021年7月4日 (日) 20:08 (CST)
给自己的笔记:比如Roselia翻唱歌曲在第18个Infobox开始出问题。
有点难办,先把我的更改滚回吧,我有时间再测一下有没有什么优化空间。(虽然我估计应该没有什么优化空间了……主要我也确实不知道会有“第18个Infobox”这种情况,我的问题……) --M.Main user page. J.Jot something down. H.Hard work.【噬嗑】{{#forargs:}} is evil! 2021年7月5日 (一) 08:56 (CST)

编辑请求 - MJH - 2021.07.05

由MJH提出的对Template:Infobox的编辑请求:

状态:   完成

申请者未给出申请内容

由于包括Roselia翻唱歌曲在内的一些大量使用Infobox的页面现在会出现脚本超时的问题,请回滚我的上一个编辑请求。没有预期到会有18个Infobox在同一个页面是我的失误,我将在空余时间继续测试有没有可能继续优化,如果不能的话我将考虑在空余时间(立刻去学Lua然后)模块化本模板。——M.More about this user. J.Join the talk. H.How I contributed.【升】{{#forargs:}} is evil! 2021年7月5日 (一) 09:00 (CST)

Done.——From AnnAngela the Bureaucrat (Talk) 2021年7月5日 (一) 09:29 (CST)

编辑请求 - Func - 2021.07.31

由Func提出的对Template:Infobox的编辑请求:

状态:   完成

将以下内容:

style="font-size

修改为:

style="display:table; font-size

解决移动端适配问题。——Func讨论·贡献) 2021年7月31日 (六) 17:04 (CST)

Done.——From AnnAngela the Bureaucrat (Talk) 2021年8月2日 (一) 14:46 (CST)

编辑请求 - Chko08022003 - 2022.01.15

由Chko08022003提出的对Template:Infobox的编辑请求:

状态:   完成

将以下内容:

{{Infobox/brick|column1= {{{Row 30 title|}}}|column1 style= {{{Row 30 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" |column2= {{{Row 30 info|}}}|column2 style={{{Row 30 infostyle| {{{Row infostyle|}}} }}} }}

修改为:

{{Infobox/brick|column1= {{{Row 30 title|}}}|column1 style= {{{Row 30 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" |column2= {{{Row 30 info|}}}|column2 style={{{Row 30 infostyle| {{{Row infostyle|}}} }}} }} {{Infobox/brick|column1= {{{Row 31 title|}}}|column1 style= {{{Row 31 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" |column2= {{{Row 31 info|}}}|column2 style={{{Row 31 infostyle| {{{Row infostyle|}}} }}} }} {{Infobox/brick|column1= {{{Row 32 title|}}}|column1 style= {{{Row 32 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" |column2= {{{Row 32 info|}}}|column2 style={{{Row 32 infostyle| {{{Row infostyle|}}} }}} }} {{Infobox/brick|column1= {{{Row 33 title|}}}|column1 style= {{{Row 33 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" |column2= {{{Row 33 info|}}}|column2 style={{{Row 33 infostyle| {{{Row infostyle|}}} }}} }} {{Infobox/brick|column1= {{{Row 34 title|}}}|column1 style= {{{Row 34 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" |column2= {{{Row 34 info|}}}|column2 style={{{Row 34 infostyle| {{{Row infostyle|}}} }}} }} {{Infobox/brick|column1= {{{Row 35 title|}}}|column1 style= {{{Row 35 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" |column2= {{{Row 35 info|}}}|column2 style={{{Row 35 infostyle| {{{Row infostyle|}}} }}} }} {{Infobox/brick|column1= {{{Row 36 title|}}}|column1 style= {{{Row 36 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" |column2= {{{Row 36 info|}}}|column2 style={{{Row 36 infostyle| {{{Row infostyle|}}} }}} }} {{Infobox/brick|column1= {{{Row 37 title|}}}|column1 style= {{{Row 37 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" |column2= {{{Row 37 info|}}}|column2 style={{{Row 37 infostyle| {{{Row infostyle|}}} }}} }} {{Infobox/brick|column1= {{{Row 38 title|}}}|column1 style= {{{Row 38 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" |column2= {{{Row 38 info|}}}|column2 style={{{Row 38 infostyle| {{{Row infostyle|}}} }}} }} {{Infobox/brick|column1= {{{Row 39 title|}}}|column1 style= {{{Row 39 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" |column2= {{{Row 39 info|}}}|column2 style={{{Row 39 infostyle| {{{Row infostyle|}}} }}} }} {{Infobox/brick|column1= {{{Row 40 title|}}}|column1 style= {{{Row 40 titlestyle| {{{Row titlestyle|}}} }}} bgcolor="{{{left-column-color|#E0FFFF}}}" |column2= {{{Row 40 info|}}}|column2 style={{{Row 40 infostyle| {{{Row infostyle|}}} }}} }}

新增Row31-40,實際應用於{{ProjectsekaiSongGai}}。再想到其他方法前,也許可以先解決欄位不夠用的問題?--By CHKO (Talk) @ 2022年1月15日 (六) 15:05 (CST)

这玩意不能用var循环吗?——From AnnAngela the Bureaucrat (Talk) 2022年1月15日 (六) 16:19 (CST)
上面提及過了,如果用var進行循環的話,在大量使用的情況下就會就會出現 表達式錯誤:未預料的<操作符。*n+為運行的腳本分配的時間已耗盡。 這個問題。--By CHKO (Talk) @ 2022年1月15日 (六) 16:32 (CST)
Done.——From AnnAngela the Bureaucrat (Talk) 2022年1月16日 (日) 22:01 (CST)