跳转到内容

维基百科:互助客栈/技术

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

本页用作讨论在编辑时遇到的技术问题;发表问题或讨论前,请先参阅常见问题解答帮助信息MediaWiki基本问题及搜索旧讨论记录。另请注意:

请注重礼仪、遵守方针与指引,一般问题请至互助客栈其他区知识问答提出,留言后请务必签名(点击 )。


发表前请先搜索存档,参考旧讨论中的内容可节省您的时间。
公告栏
  • [协作] 现有130个页面需维基化336个条目需清理32个移动请求正在讨论
  • [奖励] 现有2名用户获提名维基奖励,欢迎投票。
# 💭 话题 💬 👥 🙋 最新发言 🕒 (UTC+8)
1 Infobox模板的排版错误 37 6 Kcx36 2024-09-06 01:30
2 cite系列模板的引用出现问题 8 5 SilverReaper 2024-08-30 21:13
3 {{cite interview}}中文参数 1 1 Kethyga 2024-08-29 10:54
4 关于深色模式的一些讨论 2 2 AnYiLin 2024-09-02 02:26
5 2024年第36期技术新闻 3 2 Shizhao 2024-09-03 09:50
6 Module:PJBSClass/main非条目级页面分类错误 1 1 阿南之人 2024-09-03 21:25
7 引用上传到维基共享资源书籍的模板 3 3 Kcx36 2024-09-05 16:22
8 Template:Infobox animanga/Headerofja 3 3 Dabao qian 2024-09-05 00:06
发言更新图例
  • 最近一小时内
  • 最近一日内
  • 一周内
  • 一个月内
  • 逾一个月
特殊状态
已移动至其他页面
或完成讨论之议题
手动设定
当列表出现异常时,
请先检查设定是否有误

正在广泛征求意见的议题

以下讨论需要社群广泛关注:重新整理

维基百科技术议题与模板

Wikipedia:征求意见/模板样式 § 导言

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

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

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

Template talk:Lang-ru § 编辑请求

参考{{lang-ar}},增加俄语罗马化的内部链接,原因中文大多数读者不懂俄语/斯拉夫字母/俄语拉丁字母转写。

效果测试用例

至于非使用拉丁字母的阿拉伯语和俄语是否需要恢复内部链接,可以需要重新讨论一下。--Kethyga留言) 2024年8月31日 (六) 11:11 (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)[回复]

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)[回复]

cite系列模板的引用出现问题

[编辑]

见条目每一次的第55号来源,以及离开的人是你的第55号来源,这些来源直接复制自英文版,但英文版是正常的。--Scarsnevergoaway留言2024年8月29日 (四) 01:28 (UTC)[回复]

(题外话,既然来源已失效,且Wayback上没有存档,不如直接替换来源。--Tim Wu留言2024年8月29日 (四) 01:46 (UTC)[回复]
英文版进去也是死连结哪里正常了。 --窝法乙烷 儿法梦碎 2024年8月29日 (四) 02:23 (UTC)[回复]
应该是说显示效果,英维是正常的。但是点进去都是404。--Tim Wu留言2024年8月29日 (四) 02:25 (UTC)[回复]
有关《每一次》的第55号来源,已把url-status改为dead,现时显示wayback的存档。--银の死神走马灯剧场祝你在乱流下平安 2024年8月29日 (四) 11:42 (UTC)[回复]
Wayback存档也是404,所以我建议直接替换。不过这个技术问题值得讨论。--Tim Wu留言2024年8月29日 (四) 11:44 (UTC)[回复]
有点奇怪,因我按进wayback存档后并没有显示404[1]。--银の死神走马灯剧场祝你在乱流下平安 2024年8月30日 (五) 13:13 (UTC)[回复]
样本:<ref>{{cite web |title=Chart Search – Britney Spears, Digital Tracks |url=https://www.billboard.com/biz/search/charts?artist=Britney%20Spears&f[0]=ts_chart_artistname%3ABritney%20Spears&f[1]=itm_field_chart_id%3ADigital%20Tracks&f[2]=ss_bb_type%3Achart_item&type=2&solrsort=ds_peakdate%3Aasc }}</ref>。怀疑en:Module:Citation/CS1local function external_link的'%5b'逻辑需移植。--YFdyh000留言2024年8月30日 (五) 01:42 (UTC)[回复]

{{cite interview}}中文参数

[编辑]

Wikipedia:沙盒 (84003774)

现在的显示效果为:

Blackmun, Harry. An Interview with Harry Blackmun. Nightline. 访谈 with 艾伦·德杰尼勒斯 (New York: American Broadcasting Company). April 5, 1994.

其中“访谈 with ”需要更改为中文习惯的表达方式。类似的有{{cite book}}中的translator(译者)参数。--Kethyga留言2024年8月29日 (四) 02:54 (UTC)[回复]

关于深色模式的一些讨论

[编辑]

在使用深色模式的过程中,本人看见大部分用户框图片出现被强制反色的现象,且在部分条目中一些图示却因没被反色而导致图标展示效果不佳

故因此希望推出一个深色模式效果控制选项来控制部分图片的反色功能启用状态以求最佳条目/用户框展示效果


附录:

部分受影响的用户框(图片由 PostImage.org 托管)

条目“2024夏季残疾人奥林匹克运动会”体育赛事一栏中的图标 (图片由 PostImage.org 托管)

石汗颜留言2024年9月1日 (日) 12:38 (UTC)[回复]

可以加class=skin-invert参数。--安忆Talk 2024年9月1日 (日) 18:26 (UTC)[回复]

2024年第36期技术新闻

[编辑]

MediaWiki message delivery 2024年9月3日 (二) 01:05 (UTC)[回复]

Chart图表也可以在beta zhwiki测试[5]--百無一用是書生 () 2024年9月3日 (二) 01:49 (UTC)[回复]
目前看来,图表中的中文间距似乎太小了--百無一用是書生 () 2024年9月3日 (二) 01:50 (UTC)[回复]

Module:PJBSClass/main非条目级页面分类错误

[编辑]

Module:PJBSClass/main修改后,不知道为何{{class|非条目}}会显示 非条目级非条目 (链接为Category:非条目级条目),这导致了许多talk页面被加入了Category:非条目级XX条目这些错误分类。不知道是否跟Module:PJBSClass/main有关系?Пусть от победык победе ведёт! 2024年9月3日 (二) 13:25 (UTC)[回复]

引用上传到维基共享资源书籍的模板

[编辑]

维基共享资源目前已经有一些上传的(版权过期)书籍,但并没有引用此类书籍的模板。Wikitext只能指向该书的第一页(如粤海关志第44页),而不能指向该书所引的页面(如第44页)。若使用cite book模板,如粵海關志. : 44. ,则InternetArchiveBot会没有必要的备份维基共享资源。解决之道我建议是针对此类书籍,创建新的引用模板。 --欢颜展卷留言2024年9月3日 (二) 23:55 (UTC)[回复]

不如换个思路,让cite系列模板添加参数后可以不让机器人存档。我认为这样也可适用于:某网页在当前无法被存档,而Wayback上已有一份无效的存档快照,机器人会反复尝试添加这个错误的存档。--Tim Wu留言2024年9月4日 (三) 12:15 (UTC)[回复]
使用{{PDF page link}}可以链接至特定页。引用格式或需进一步讨论。--Kcx36留言2024年9月5日 (四) 08:22 (UTC)[回复]

Template:Infobox animanga/Headerofja似乎造成了嵌入条目顶部的一大片空白,见铁臂阿童木--百無一用是書生 () 2024年9月4日 (三) 14:41 (UTC)[回复]

@Cwek可能跟新建的模组有关。--夏冰 周防有希我牢破 2024年9月4日 (三) 14:46 (UTC)[回复]
调整源代码空行后解决,但使用Special:ExpandTemplates解析出的HTML源代码仍有大量不该出现的空行。--Dabao qian 2024年9月4日 (三) 16:06 (UTC)[回复]