跳转到内容

维基百科:徵求意見/模板样式

维基百科,自由的百科全书

導言

以下征求意见页面是MediaWiki:Common.css和相关CSS中需要转换为模板样式的列表,这些样式由于多种原因需要转换为模板样式,可参考en:MediaWiki talk:Common.css/to do

设立这个征求意见的目的,一是需要管理员和用户协助找出需要转换为模板样式的列表并需要管理员协助处理;二是一些手动调用CSS类的页面上的样式在迁移后将会丢失,需要用户在此反馈并寻求共识,这会是一个很漫长的过程。

--Dabao qian 2024年8月13日 (二) 16:59 (UTC)[回复]

@Dabao qian恕我吐槽,建議您再讀一次您的文本,例如所有管理員,甚至絕大多數模板都只是受到模板保護而不是全保護,管理員要怎麼被保護?想問一下您覺得哪些內容應該要被拆出去,拆出去後應該拆給什麼模板?--SunAfterRain 2024年8月13日 (二) 17:07 (UTC)[回复]
hlist、plainlist、navbox、navbar、infobox、hatnote、mbox等--Dabao qian 2024年8月13日 (二) 17:24 (UTC)[回复]
下面那个样式抖动的问题,可以把css转移到小工具(gadget)里并开启style模式,这样css就直接写入<head>而不是跟随js的加载而加载。--屠麟傲血留言2024年9月13日 (五) 15:33 (UTC)[回复]

为什么要迁移

  1. 允许普通用户和管理员更改全站的样式。自2018年以来,只有界面管理员(即没有多少人)可以编辑Common.css,而CSS表中的大多数样式都相当无害。所以,将样式移至模板样式并移出Common.css以允许更多用户(所有管理员,甚至模板编辑员)能够对广泛使用的样式进行更改。
  2. 提升所有页面的加载速度。Common.css中的每个样式规则,无论在特定页面上使用与否,都会加载到所有页面上。例如,如果您创建了一个小作品并且它没有导航框,它仍会获取导航框、信息框、水平列表等元素的样式,直到样式集列表为空,这意味着对每个人而言所有页面的加载速度都会略微降低。
    这在移动设备上影响最大,目前移动设备的浏览量约占所有浏览量的2/3。
  3. 将移动端样式设计的权力交还给本地编辑者。目前,由于以下几个原因,Common.css中的许多样式尚未移植到移动端。
    1. 主要原因是MediaWiki:Mobile.css是在特定页面的其余部分之后加载而不是在它们之前加载。所以,向其中添加样式可能会导致FOUC(加载时页面抖动),这通常对用户体验和现今的搜索引擎优化都不利(如果您没有兴趣,您实际上不需要关心第二条)。
    2. 第二个原因是基金会或多或少地弥补了我们的页面在移动设备上的显示效果所造成的缺陷。
    现在,无论您是否喜欢移动版样式,编辑者都应该决定维基内容在移动设备上的显示方式。

如何迁移

迁移需要三个主要步骤(不一定按此顺序或连续进行):

  1. 迁移与Common.css中的每个CSS类最相关的模板和模块以使用或允许使用模板样式。
    或者对于某些模板/模块,从全站CSS中完全移除样式,并使用内联样式而不是模板样式,这在需要替换引用的模板中最为常见,而模板样式并不适用。
  2. 迁移大量使用Common.css中的CSS类的非模板和模块,以使用模板和模块而不是CSS类(有时需要完全删除而不是迁移)。进行迁移是因为在第三步中将:
  3. 从Common.css中删除样式。

第一步中的编辑主要在后台进行,因为模板编辑员基本上是唯一需要对这些内容感兴趣的人。

但是第二步中的编辑发生在模板和模块空间之外。第三步的结果是,如果没有合适的模板来提供样式,则手动调用CSS类的页面上的样式将会丢失。

执行此类编辑的用户会尽可能用适当的模板替换CSS类的使用。他们并不总是能做到正确,所以如果您发现他们替换错误或者没有以您预期的方式进行替换,请尝试纠正编辑(如果您知道如何替换的话),或者询问编辑者如何做出更好的更改,而不是尽可能地恢复原状。

Hlist

待整理

Plainlist

待整理

Infobox

待整理

Hatnote

待整理

Plainrowheaders

待整理

messagebox

待整理

common.css上定义的messagebox样式会影响到图像位于c区的本地图像描述页,因为c区部分图像描述页上的模板会使用messagebox。我不太确定本地和C区图像描述页上的css优先级到底如何,删除common.css上的messagebox是否会造成图像描述页上的样式失效?之前改common.css主要就是为了解决这个问题--百無一用是書生 () 2024年8月14日 (三) 03:45 (UTC)[回复]

可以提供具体案例,然后在URL后附加参数?safemode=1进行调试--Dabao qian 2024年8月14日 (三) 10:06 (UTC)[回复]

Infobox模板的排版错误

Chembox等模板

近期发现了template:Chembox的图片、IUPAC名、系统名等处由居中显示变成了左对齐(如硫化氢条目)。Nucleus hydro elemon也发现了钔的同位素的表格“能量(MeV)”一列也变为了左对齐。出现该问题的原因不明。--Leiem留言·签名·维基调查 2024年8月27日 (二) 16:03 (UTC)[回复]

{{中國古代人物信息框}}的{{{姓名}}}也变成了左对齐,估计是某处CSS的问题。--Kcx36留言2024年8月28日 (三) 10:15 (UTC)[回复]
怀疑是MediaWiki:Common.css#L-260Special:Diff/83942242MediaWiki_talk:Common.css#允许信息框模板使用模板样式)。--Kcx36留言2024年8月28日 (三) 10:28 (UTC)[回复]
同位素表格是因为语法不对(Special:Diff/83995596)。--Kcx36留言2024年8月28日 (三) 10:59 (UTC)[回复]

@LeiemKcx36在下已找到问题的解决方法align="center"不知道什么时候报废了,需要全部改成text-align:center;。很多模板都需要做这种改动。--氢氰酸留言区 2024年8月28日 (三) 10:31 (UTC)[回复]

@ShizhaoDabao qianMediaWiki:Common.css设置.infobox th, .infobox td {text-align: left;}后,导致大量class=infobox表格中单元格由居中变为左对齐,如{{Chembox}}、{{中國古代人物信息框}}、{{Climate chart}}、{{大陆法系刑法}}、{{挪威历史}}、{{Infobox Digicam}}、{{MolFormNav}}。--Kcx36留言2024年8月28日 (三) 11:13 (UTC)[回复]
临时抑制是手动找到所有出现问题的模板然后在<th>...</th><td>...</td>块添加style="text-align:center;",但是最终解决方法是这些模板都应该转为使用标准的{{Infobox}}系列模板({{Chembox}}作为特例可能需要单独引入模板样式),否则后续下放至模板样式之后这些使用表格语法的模板就会丢失样式,而且.infobox .bordered.infobox .geography也应该从Common.css删除。--Dabao qian 2024年8月28日 (三) 16:21 (UTC)[回复]
.infobox .bordered我以为只有{{Infobox animanga}}在用,怎么连{{中國古代人物信息框}}也在用。.infobox.geography按照说明是给一些地理类型的infobox用的,但不知道哪些infobox用这一套。——Sakamotosan路过围观 | 避免做作,免敬 2024年8月29日 (四) 00:50 (UTC)[回复]
可能所有属于“infobox”属性的模板都需要检查一下,因为有一些rawcode写成的(不是用{{infobox}}写成的),不保证一定有引用模板样式,而且还有一些没使用默认样式(带.bordered.geography等),所以MediaWiki:Common.css的样式才一直没完全迁移到模板样式上。——Sakamotosan路过围观 | 避免做作,免敬 2024年8月29日 (四) 00:55 (UTC)[回复]
用高级搜索,选模板,关键词:insource:"class=\"infobox" insource:"bordered"。——Sakamotosan路过围观 | 避免做作,免敬 2024年8月29日 (四) 01:01 (UTC)[回复]
@Dabao qian.geography且rawcode的,暂时搜索找到:{{九章群礁}}、{{Geobox}}、{{Geobox River}}、{{Geobox Region}}、{{Geobox Settlement}}、{{水生层}}。排除掉sandbox后缀的,部分以上模板的sandbox也有。——Sakamotosan路过围观 | 避免做作,免敬 2024年8月29日 (四) 01:09 (UTC)[回复]
除{{Geobox}}、{{Geobox River}}外已整理代码或清除链入。--Kcx36留言2024年8月30日 (五) 00:52 (UTC)[回复]
@Dabao qian.bordered、rawcode的,排除sandbox,暂时找到54个(通过API数)。——Sakamotosan路过围观 | 避免做作,免敬 2024年8月29日 (四) 01:16 (UTC)[回复]
还有一部分使用.sisterproject的,不过是div,或者{{side box}}在注入到class参数中,可能也需要清理。——Sakamotosan路过围观 | 避免做作,免敬 2024年8月29日 (四) 01:25 (UTC)[回复]
使用HTML4align标签的也应该全部替换为text-alignCSS标签。--Dabao qian 2024年8月29日 (四) 03:33 (UTC)[回复]
@Dabao qian,同意应该将表格的字符排版样式迁移到内联css样式中。PS.,.bordered.sisterproject.geography所需要的样式,如果一股脑往模板样式迁移,计划怎样处理?——Sakamotosan路过围观 | 避免做作,免敬 2024年8月29日 (四) 07:21 (UTC)[回复]
.sisterproject的改用{{Sister project}}模板。剩下的尽量转为以{{Infobox}}或其变体{{Infobox3cols}}为基础,指定参数|bodyclass=ib-XXX,并将顶栏、标签和数据行的内联样式和.bordered.geography的CSS样式全部并入模板样式。--Dabao qian 2024年8月31日 (六) 04:36 (UTC)[回复]
旧有参数 CSS类
|bodystyle= .ib-XXX
|titlestyle=
.infobox caption
.ib-XXX .infobox-title
|abovestyle= .ib-XXX .infobox-above
|subheaderstyle= .ib-XXX .infobox-subheader
|imagestyle= .ib-XXX .infobox-image
|captionstyle= .ib-XXX .infobox-caption
|headerstyle=
.infobox th:not[scope=row]
.ib-XXX .infobox-header
|labelstyle=
.infobox th:[scope=row]
.ib-XXX .infobox-label
|datastyle=
.infobox td
.ib-XXX .infobox(-full)-data
|belowstyle= .ib-XXX .infobox-below

--Dabao qian 2024年8月31日 (六) 04:44 (UTC)[回复]

对于{{Geobox}}的处理,它不是一个现代的信息框且已基本放弃维护,应该逐步废弃并转换为特定类型的标准信息框:
--Dabao qian 2024年8月31日 (六) 04:58 (UTC)[回复]
@Dabao qian,需要记录下来并且着手处理,谁去弄?——Sakamotosan路过围观 | 避免做作,免敬 2024年9月2日 (一) 00:38 (UTC)[回复]
geography系列的:{{九章群礁}}已经改了、{{Geobox}}引用1285、{{Geobox River}}引用11、{{水生层}}引用7(已经改过),{{Geobox Region}}、{{Geobox Settlement}}没被使用。——Sakamotosan路过围观 | 避免做作,免敬 2024年9月2日 (一) 00:54 (UTC)[回复]
建议{{Geobox}}取消模板保护,并添加隐藏分类“使用Geobox的条目”,排序字为{{{1}}}(第一个匿名参数),方便按类别进行替换。--Kcx36留言2024年9月2日 (一) 07:14 (UTC)[回复]
@Kcx36,已经加了,要等页面刷新入分类。可以用特殊:链入页面/T:Geobox选择仅嵌入来查看现在嵌入的页面。——Sakamotosan路过围观 | 避免做作,免敬 2024年9月2日 (一) 12:25 (UTC)[回复]
@Cwek我已将所有河流条目中的Geobox半自动转为{{Infobox river}},Geobox的链入减至462。--Kcx36留言2024年9月4日 (三) 14:44 (UTC)[回复]
@CwekGeobox已清理完毕。--Kcx36留言2024年9月5日 (四) 17:22 (UTC)[回复]
Category:Geobox_includeCategory:Geobox2等可以删除。--Kcx36留言2024年9月5日 (四) 17:30 (UTC)[回复]
{{世大運獎牌記錄}}虽然前期已转为{{Infobox3cols}},但后续也应该被废除。--Dabao qian 2024年9月7日 (六) 10:27 (UTC)[回复]

bordered的infobox在模板空间调整相关

bordered的infobox的API搜索结果
"search": [
            {
                "ns": 10,
                "title": "Template:英格蘭歷史",
                "pageid": 700390,
                "snippet": "&lt;noinclude&gt;{{NoteTA\n|1=zh-cn:兰开斯特;zh-hk:蘭加斯特;zh-tw:蘭卡斯特\n}}&lt;/noinclude&gt;\n{| <span class=\"searchmatch\">class=&quot;infobox</span> bordered&quot;\n! style=&quot;padding-center:.2em; text-align:center&quot;"
            },
            {
                "ns": 10,
                "title": "Template:约旦河西岸",
                "pageid": 1685928,
                "snippet": "{| <span class=\"searchmatch\">class=&quot;infobox</span> bordered&quot;\n|\n{| style=&quot;border: none; width:100%; background:#FAFAFA;&quot;\n| align=&quot;left&quot; style=&quot;border: none;&quot;| [[Image:Flag of Palestine"
            },
            {
                "ns": 10,
                "title": "Template:中國古代人物信息框",
                "pageid": 1135471,
                "snippet": "{| <span class=\"searchmatch\">class=&quot;infobox</span> bordered vcard&quot; style=&quot;width: 21em; font-size: 89%;&quot;\n!colspan=&quot;3&quot; class=&quot;fn&quot; style=&quot;color: #000; background-color: #FFFFDD; font-size:"
            },
            {
                "ns": 10,
                "title": "Template:NGCInfoBox",
                "pageid": 320420,
                "snippet": "&lt;noinclude&gt;{{pp-protected|small=yes}}&lt;/noinclude&gt;\n{| <span class=\"searchmatch\">class=&quot;infobox</span> bordered&quot; style=&quot;background-color: #ffffff; border: 1px solid #999; width:300px&quot;\n|-"
            },
            {
                "ns": 10,
                "title": "Template:機動兵器",
                "pageid": 1223005,
                "snippet": "{| <span class=\"searchmatch\">class=&quot;infobox</span> bordered&quot; style=&quot;width:auto;clear:both; font-size:12px;&quot;\n|+ 規格\n|- style=&quot;text-align:center&quot;\n! colspan=&quot;2&quot; |{{{名称}}}{{#if:{{{正式名称|}}}|&lt;br"
            },
            {
                "ns": 10,
                "title": "Template:中国地名",
                "pageid": 796654,
                "snippet": "{|<span class=\"searchmatch\">class=&quot;infobox</span> bordered&quot; style=&quot;float: right; font-size:90%; width=300px&quot;\n| style=&quot;background: #ccf; border-bottom: 1px solid; border-top:1px solid&quot;"
            },
            {
                "ns": 10,
                "title": "Template:Lewchewan/old",
                "pageid": 956415,
                "snippet": "&lt;table <span class=\"searchmatch\">class=&quot;infobox</span> bordered&quot; style=&quot;margin: 0 0 1em 1em; width:{{#if: {{{tablewidth|}}}|{{{tablewidth}}}px|270px}}; background: {{#if:"
            },
            {
                "ns": 10,
                "title": "Template:浙江历史",
                "pageid": 871829,
                "snippet": "{| <span class=\"searchmatch\">class=&quot;infobox</span> bordered collapsible collapsed&quot; \n! style=&quot;padding:.2em&quot; | &lt;br&gt;\n'''[[浙江歷史]]'''&lt;br&gt;{{navbar|浙江历史|mini=1}}\n|- \n| style=&quot;padding:.2em .8em;"
            },
            {
                "ns": 10,
                "title": "Template:SOUL EATER人物",
                "pageid": 889483,
                "snippet": "{| <span class=\"searchmatch\">class=&quot;infobox</span> bordered vcard&quot; style=&quot;width: 20em; text-align: left; font-size: 90%&quot; \n! style=&quot;background: #E6E6FA; font-size: 120%; text-align: center;&quot;"
            },
            {
                "ns": 10,
                "title": "Template:DummyHideH/testcases",
                "pageid": 5206424,
                "snippet": "with Grand Cordon ribbon.png|50px]][[國光勳章]]\n}}\n&lt;!-- 學經歷信息開始 --&gt;\n{| <span class=\"searchmatch\">class=&quot;infobox</span> bordered&quot; style=&quot;width: 22em; font-size: 90%; text-align: left; float:right;&quot;"
            },
            {
                "ns": 10,
                "title": "Template:Infobox prisoner",
                "pageid": 1220114,
                "snippet": "{| <span class=\"searchmatch\">class=&quot;infobox</span> bordered&quot; style=&quot;width: 21em; font-size: 89%; text-align: left;&quot; cellpadding=&quot;3&quot;\n|-\n{{#if: {{{date of arrestment|}}}|\n! style=&quot;white-space:"
            },
            {
                "ns": 10,
                "title": "Template:2014年夏季青年奥林匹克运动会女子篮球B组积分榜",
                "pageid": 4130964,
                "snippet": "{| <span class=\"searchmatch\">class=&quot;infobox</span> bordered&quot;\n|-\n|width=10px bgcolor=&quot;#ccffcc&quot;| ||晋级至16强\n|}\n{| class=&quot;wikitable&quot; style=&quot;text-align:center;font-size:95%&quot;\n|-\n!width=150|队伍"
            },
            {
                "ns": 10,
                "title": "Template:Reactionbox",
                "pageid": 1578057,
                "snippet": "that template, and remove the old template data, thank you!  --&gt;{| <span class=\"searchmatch\">class=&quot;infobox</span> bordered&quot; border=&quot;1&quot; width=&quot;{{{BoxWidth|250px}}}&quot; style=&quot;float: right;"
            },
            {
                "ns": 10,
                "title": "Template:中国死刑犯",
                "pageid": 2893353,
                "snippet": "|{{{place}}}\n|{{{method}}}\n|{{{charge}}}\n|-\n|colspan=10 | &lt;table <span class=\"searchmatch\">class=&quot;infobox</span> bordered collapsible collapsed&quot; style=&quot;width: 100%; margin: 0; padding:"
            },
            {
                "ns": 10,
                "title": "Template:NFPA 704 diamond/doc",
                "pageid": 6798458,
                "snippet": "behavior in this situation.\n===Basic 0&amp;ndash;4 and - (hyphen)===\n{| <span class=\"searchmatch\">class=&quot;infobox</span> bordered&quot; cellspacing=0 cellpadding=0 style=&quot;padding:0; background:lemonchiffon&quot;"
            },
            {
                "ns": 10,
                "title": "Template:2014年夏季青年奥林匹克运动会男子篮球B组积分榜",
                "pageid": 4427478,
                "snippet": "{| <span class=\"searchmatch\">class=&quot;infobox</span> bordered&quot;\n|-\n|width=10px bgcolor=&quot;#ccffcc&quot;| ||晋级至16强\n|}\n{| class=&quot;wikitable&quot; style=&quot;text-align:center;font-size:95%&quot;\n|-\n!width=150|队伍"
            },
            {
                "ns": 10,
                "title": "Template:Eng",
                "pageid": 769649,
                "snippet": "&lt;includeonly&gt;{| <span class=\"searchmatch\">class=&quot;infobox</span> bordered&quot; bgcolor=&quot;#f7f8ff&quot; style=&quot;margin:0 0 1em 1em; font-size:90%&quot; width=&quot;280px&quot;\n! style=&quot;background: #ccf; border-bottom:"
            },
            {
                "ns": 10,
                "title": "Template:Sib",
                "pageid": 1042092,
                "snippet": "{| <span class=\"searchmatch\">class=&quot;infobox</span> bordered&quot; bgcolor=&quot;#f7f8ff&quot; style=&quot;margin:0 0 1em 1em; font-size:90%&quot; width=&quot;270px&quot;\n|-\n! style=&quot;background: #ccf; border-bottom: 1px"
            },
            {
                "ns": 10,
                "title": "Template:美国国家政府机构",
                "pageid": 893758,
                "snippet": "{| <span class=\"searchmatch\">class=&quot;infobox</span> bordered&quot; cellpadding=&quot;4&quot; style=&quot;width: 21em; font-size: 90%;&quot;\n|-\n| colspan=&quot;2&quot; align=&quot;center&quot; bgcolor=&quot;#e3e3e3&quot;|&lt;span style=&quot;font-size:"
            },
            {
                "ns": 10,
                "title": "Template:2014年夏季青年奥林匹克运动会女子篮球A组积分榜",
                "pageid": 4203617,
                "snippet": "{| <span class=\"searchmatch\">class=&quot;infobox</span> bordered&quot;\n|-\n|width=10px bgcolor=&quot;#ccffcc&quot;| ||晋级至16强\n|}\n{| class=&quot;wikitable&quot; style=&quot;text-align:center;font-size:95%&quot;\n|-\n!width=150|队伍"
            },
            {
                "ns": 10,
                "title": "Template:Infobox NBADL team",
                "pageid": 449411,
                "snippet": "{| <span class=\"searchmatch\">class=&quot;infobox</span> bordered&quot; cellpadding=&quot;4&quot; width=&quot;300&quot; style=&quot;font-size: 95%;&quot;\n|- align=&quot;center&quot; style=&quot;font-size: medium; color:{{{color1}}};"
            },
            {
                "ns": 10,
                "title": "Template:東亞男性歷史人物/親屬",
                "pageid": 1458714,
                "snippet": "&lt;includeonly&gt;{|<span class=\"searchmatch\">class=&quot;infobox</span> bordered collapsible collapsed&quot; style=&quot;width: 100%; margin: 0; padding: 0; border: none;&quot;\n!colspan=&quot;2&quot; style=&quot;background:"
            },
            {
                "ns": 10,
                "title": "Template:2014年夏季青年奥林匹克运动会男子篮球A组积分榜",
                "pageid": 4203603,
                "snippet": "{| <span class=\"searchmatch\">class=&quot;infobox</span> bordered&quot;\n|-\n|width=10px bgcolor=&quot;#ccffcc&quot;| ||晋级至16强\n|}\n{| class=&quot;wikitable&quot; style=&quot;text-align:center;font-size:95%&quot;\n|-\n!width=150|队伍"
            },
            {
                "ns": 10,
                "title": "Template:Infobox Paralympic",
                "pageid": 885317,
                "snippet": "&lt;includeonly&gt;{| <span class=\"searchmatch\">class=&quot;infobox</span> bordered&quot; style=&quot;width:{{{width|250px}}}; font-size:small; text-align:center;&quot;\n|-\n! colspan=&quot;3&quot; style=&quot;background-color"
            },
            {
                "ns": 10,
                "title": "Template:Hortibox",
                "pageid": 1374292,
                "snippet": "&lt;includeonly&gt;{| <span class=\"searchmatch\">class=&quot;infobox</span> bordered&quot; style=&quot;width: 200px; text-align: left; font-size: 95%;&quot;\n|+ style=&quot;font-size: larger;&quot; | '''栽培特点'''\n|-\n{{#if: {{{type|}}}|"
            },
            {
                "ns": 10,
                "title": "Template:Infobox Performing Act",
                "pageid": 699648,
                "snippet": "{| <span class=\"searchmatch\">class=&quot;infobox</span> bordered&quot; width=&quot;280&quot; style=&quot;font-size: 90%;&quot; \n|-\n! colspan=&quot;2&quot; style=&quot;background-color: #e9e9e9; text-align: center; font-size: larger;width:4%&quot;"
            },
            {
                "ns": 10,
                "title": "Template:民系",
                "pageid": 206929,
                "snippet": "{|<span class=\"searchmatch\">class=&quot;infobox</span> bordered&quot; style=&quot;width: 22em; font-size: 95%; text-align: left;&quot; cellpadding=&quot;3&quot;\n! colspan=&quot;2&quot; style=&quot;text-align: center; font-size: 14pt;;"
            },
            {
                "ns": 10,
                "title": "Template:Probability distribution two",
                "pageid": 2893175,
                "snippet": "{| <span class=\"searchmatch\">class=&quot;infobox</span> bordered wikitable&quot; style=&quot;width: 325px; font-size: 95%; margin-left: 1em; margin-bottom: 0.5em;&quot;\n|+ {{{name}}}\n|- style=&quot;text-align:"
            },
            {
                "ns": 10,
                "title": "Template:Worldwide Internet users",
                "pageid": 5058367,
                "snippet": "{| <span class=\"searchmatch\">class=&quot;infobox</span> bordered;&quot; style=&quot;font-size:90%&quot;\n|+'''[[各國網際網路使用者數目列表|全球網際網路使用者]]'''\n|-\n| style=&quot;text-align:center;&quot; | &amp;nbsp; || '''2005年''' || '''2010年'''"
            },
            {
                "ns": 10,
                "title": "Template:清朝皇帝信息框/子女",
                "pageid": 4014272,
                "snippet": "&lt;includeonly&gt;{|<span class=\"searchmatch\">class=&quot;infobox</span> bordered collapsible collapsed&quot; style=&quot;width: 100%; margin: 0; padding: 0; border: none;&quot;\n!colspan=&quot;2&quot; style=&quot;background:"
            },
            {
                "ns": 10,
                "title": "Template:Main Page toolbox",
                "pageid": 6922244,
                "snippet": "&lt;div style=&quot;width: 300px; float: right;&quot;&gt;\n{| <span class=\"searchmatch\">class=&quot;infobox</span> bordered&quot; style=&quot;width: 100%; font-size: 90%; text-align:center;&quot;\n! colspan=&quot;3&quot; style=&quot;font-size:"
            },
            {
                "ns": 10,
                "title": "Template:東亞宦官/親屬",
                "pageid": 1826550,
                "snippet": "&lt;includeonly&gt;{|<span class=\"searchmatch\">class=&quot;infobox</span> bordered collapsible collapsed&quot; style=&quot;width: 100%; margin: 0; padding: 0; border: none;&quot;\n!colspan=&quot;2&quot; style=&quot;background:"
            },
            {
                "ns": 10,
                "title": "Template:日本棒球隊",
                "pageid": 1006936,
                "snippet": "{|<span class=\"searchmatch\">class=&quot;infobox</span> bordered&quot; cellpadding=&quot;4&quot; width=&quot;275&quot; style=&quot;font-size: 95%;&quot;\n|+ style=&quot;margin-left: inherit; font-size: medium;&quot; |\n'''{{{name}}}'''\n|-"
            },
            {
                "ns": 10,
                "title": "Template:混血民系",
                "pageid": 1132202,
                "snippet": "{|<span class=\"searchmatch\">class=&quot;infobox</span> bordered&quot; style=&quot;width: 22em; font-size: 95%; text-align: left;&quot; cellpadding=&quot;3&quot;\n! colspan=&quot;2&quot; style=&quot;text-align: center; font-size: 14pt;;"
            },
            {
                "ns": 10,
                "title": "Template:WSBL球隊",
                "pageid": 1498515,
                "snippet": "{| <span class=\"searchmatch\">class=&quot;infobox</span> bordered&quot; cellpadding=&quot;4&quot; style=&quot;font-size: 90%; width: 20em;&quot;\n|- align=&quot;center&quot; style=&quot;font-size: medium; color:{{{color1}}};"
            },
            {
                "ns": 10,
                "title": "Template:皇室",
                "pageid": 1065436,
                "snippet": "{| <span class=\"searchmatch\">class=&quot;infobox</span> bordered&quot; width=300 style=&quot;float: right; font-size: 90%; margin: 0 0 3em 1em; border: 1px solid #aaa; border-collapse: collapse;&quot;\n!style=&quot;color:"
            },
            {
                "ns": 10,
                "title": "Template:清朝皇帝信息框/后宫",
                "pageid": 4014269,
                "snippet": "&lt;includeonly&gt;{|<span class=\"searchmatch\">class=&quot;infobox</span> bordered collapsible collapsed&quot; style=&quot;width: 100%; margin: 0; padding: 0; border: none;&quot;\n!colspan=&quot;2&quot; style=&quot;background:"
            },
            {
                "ns": 10,
                "title": "Template:Trilateral",
                "pageid": 1630038,
                "snippet": "{| align=right <span class=\"searchmatch\">class=&quot;infobox</span> bordered&quot; style=&quot;clear:right;&quot;\n|+ '''{{{1}}}關係'''\n|-\n| width=300 colspan=3 align=center | {{flagicon|{{{2}}}|size=100x50"
            },
            {
                "ns": 10,
                "title": "Template:Ancient monuments in Rome",
                "pageid": 1633247,
                "snippet": "{| <span class=\"searchmatch\">class=&quot;infobox</span> bordered&quot; align=&quot;right&quot; style=&quot;width: 250px; font-size: 85%;&quot; cellpadding=&quot;4&quot;\n|-\n! colspan=&quot;2&quot; align=&quot;center&quot; style=&quot;background-color:"
            },
            {
                "ns": 10,
                "title": "Template:Infobox Lewchewan name/Nametable",
                "pageid": 2815667,
                "snippet": "&lt;includeonly&gt;&lt;table <span class=\"searchmatch\">class=&quot;infobox</span> bordered&quot; style=&quot;margin: 0; border-color: {{#if: {{{background|}}}|{{{background}}}|#f7f8ff}}; background: {{#if:"
            },
            {
                "ns": 10,
                "title": "Template:Internet users by region",
                "pageid": 5058369,
                "snippet": "{| <span class=\"searchmatch\">class=&quot;infobox</span> bordered;&quot; style=&quot;font-size:90%&quot;\n|+'''各區域之網際網路使用者'''\n|-\n| style=&quot;text-align:right;&quot; | &amp;nbsp; \n| style=&quot;text-align:center;&quot; | '''2005年'''"
            },
            {
                "ns": 10,
                "title": "Template:Infobox Mobile JP",
                "pageid": 6255721,
                "snippet": "{| <span class=\"searchmatch\">class=&quot;infobox</span> bordered&quot; style=&quot;width:260px; font-size:small; border:0px none white;&quot; cellpadding=&quot;2&quot;\n|+ '''{{ #ifeq: {{{キャプション中のキャリア表示|}}} | 无 | |"
            },
            {
                "ns": 10,
                "title": "Template:Worldwide broadband subscriptions",
                "pageid": 5058374,
                "snippet": "{| <span class=\"searchmatch\">class=&quot;infobox</span> bordered;&quot; style=&quot;font-size:90%&quot;\n|+'''[[各國寬頻網際網路使用者數目列表|全球寬頻用戶]]'''\n|-\n| &amp;nbsp; \n| '''2007年''' \n| '''2010年'''\n| '''2014年'''&lt;sup&gt;a&lt;/sup&gt;"
            },
            {
                "ns": 10,
                "title": "Template:Broadband subscriptions",
                "pageid": 5058375,
                "snippet": "{| <span class=\"searchmatch\">class=&quot;infobox</span> bordered;&quot; style=&quot;font-size:90%&quot;\n|+'''各區域之寬頻用戶'''\n|-\n| style=&quot;text-align:left;&quot; | '''&amp;nbsp;&amp;nbsp;固定寬頻:&amp;nbsp;&amp;nbsp;&amp;nbsp;''' \n|"
            }
        ]
部分没有被正式使用或者可以考虑删除掉。少量使用就手改,大量使用的调整或者改warpper。——Sakamotosan路过围观 | 避免做作,免敬 2024年9月2日 (一) 01:05 (UTC)[回复]
bordered的infobox调整相关

——Sakamotosan路过围观 | 避免做作,免敬 2024年9月2日 (一) 02:23 (UTC)[回复]

模板空间涉及bordered的基本全换了。——Sakamotosan路过围观 | 避免做作,免敬 2024年9月3日 (二) 11:30 (UTC)[回复]

Portal:新聞動態側邊欄

如題Portal:新聞動態側邊欄,可能要改用Template:Sidebar,不然要寫模板樣式來抵銷infobox的左側對齊,或是加入infobox-header,infobox-full-data來達到置中,等結論,謝謝--Qqkuro66541留言2024年9月2日 (一) 11:58 (UTC)[回复]

@Dabao qian,有没计划真的要将infobox在Commons.css的样式全迁移到模板样式中?可能存在部分非模板的野引用。——Sakamotosan路过围观 | 避免做作,免敬 2024年9月2日 (一) 14:41 (UTC)[回复]
搜索insource:"class=\"infobox" insource:"bordered"排除模板、模组、timedtext,估算数为1080。——Sakamotosan路过围观 | 避免做作,免敬 2024年9月2日 (一) 14:47 (UTC)[回复]
.infobox th,
.infobox td {
	/* @noflip */
	text-align: left;
}
主要是這兩個太限制了,應該有infobox-label類型、infobox-data類型,再向左對齊就好,Template:Taxobox,也是同樣問題--Qqkuro66541留言2024年9月2日 (一) 16:35 (UTC)[回复]
正解应该是.infobox th:[scope=row]只让标签行左对齐,但是一些没有使用信息框模板直接用表格语法写的信息框可能标签行没有添加scope="row"属性。--Dabao qian 2024年9月2日 (一) 17:49 (UTC)[回复]
同意,預設(沒定義)本身就向左對齊,所以只讓標籤行向左對齊,目前看來是不用大改動的辦法--Qqkuro66541留言2024年9月3日 (二) 07:43 (UTC)[回复]
主要原因是中维长期以来一直未全面定义信息框模板的默认样式,之前一直通过在Module:Infobox定义内联样式的方式来抵消。英维很早就已经改了,粤维2017年开始改的,中维近期全面修改,都是留下一堆之前的烂摊子。--Dabao qian 2024年9月3日 (二) 09:58 (UTC)[回复]
.infobox暂时保留(毕竟存在大量不使用{{Infobox}}模板而是使用表格语法的信息框,参见Module:Infobox#L-475,不过这里的统计数据是英维的),.infobox .bordered.infobox .geography下放,.infobox .sisterproject转为{{Sister project}}后删除。--Dabao qian 2024年9月2日 (一) 17:44 (UTC)[回复]
该话题是否需要{{不存档}}?--Kcx36留言2024年9月14日 (六) 09:44 (UTC)[回复]

已完成

更新清单
待处理

--Dabao qian 2024年8月25日 (日) 15:01 (UTC)[回复]