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

A2569875在话题“MOS namespace transition”中的最新留言:4小时前

本頁用作讨论在编辑时遇到的技术问题;發表問題或討論前,請先參閱常見問題解答帮助信息MediaWiki基本問題及搜索舊討論記錄。另請注意:

請注重礼仪、遵守方針與指引,一般問題請至互助客棧其他區知识问答提出,留言后请务必签名(点击 )。


發表前請先搜索存档,參考舊討論中的内容可節省您的時間。
公告欄
# 💭 話題 💬 👥 🙋 最新發言 🕒 (UTC+8)
1 Infobox模板的排版错误 39 6 Kcx36 2024-09-14 17:44
2 Module:PJBSClass/main非条目级页面分类错误 1 1 阿南之人 2024-09-03 21:25
3 Toolsredirect外语重定向 8 2 微肿头龙 2024-09-16 13:08
4 關於Template:主題首頁數掛零的討論 2 2 Sheminghui.WU 2024-09-10 06:54
5 2024年第37期技術新聞 7 4 SunAfterRain 2024-09-10 16:32
6 MOS namespace transition 7 4 A2569875 2024-09-16 22:57
7 在手动字词转换规则中检测到错误 7 2 Cwek 2024-09-12 17:40
8 关于字体的大小 3 2 魔琴 2024-09-16 17:02
發言更新圖例
  • 最近一小時內
  • 最近一日內
  • 一週內
  • 一個月內
  • 逾一個月
特殊狀態
已移動至其他頁面
或完成討論之議題
手動設定
當列表出現異常時,
請先檢查設定是否有誤

正在廣泛徵求意見的議題

以下討論需要社群廣泛關注:重新整理

維基百科技術議題與模板

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)

Template talk:Douban people § 編輯請求 2024-09-07

见上方讨论,豆瓣电影、豆瓣音乐、豆瓣读书的人物介绍页面已经整合到新的豆瓣人物页面,原链接变为重定向。新的豆瓣人物标识符已在维基数据填写(d:Property:P12836),现修改模板为优先从维基数据读取豆瓣人物标识符。--Kcx36留言) 2024年9月7日 (六) 16:15 (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)回复

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

编辑

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

  本討論章節會維持開放,暫時不按最後意見發表時間存檔。欲讓機器人存檔,請移除本模板。留言請置於本模板上方。

Toolsredirect外语重定向

编辑

Toolsredirect可以识别生物学名,并且在建立重定向时可以加入{{学名重定向}},比如Pomacentrus polyspinus,是否可以识别其他外语名称,并通过类似{{非中文重定向|fr}}或{{法语重定向}}进行标记。--Kethyga留言2024年9月7日 (六) 01:03 (UTC)回复

强烈支持新增此功能。另外借个楼,能否为学名部分加一个识别{{sn}}模板的?使用{{lang-xm}}的话可以被工具正确识别。--微肿头龙留言2024年9月10日 (二) 00:48 (UTC)回复
@Kethyga我用ChatGPT写了一个脚本User:微肿头龙/外文重定向.js,测试效果似乎还行,见Lancaster Township。先声明本人不会Java Script,所以这个写法是不是最好的我不知道,有bug我也只能问ChatGPT了。  囧rz……--微肿头龙留言2024年9月10日 (二) 16:31 (UTC)回复
  ,至少能满足自己的基本需求。--Kethyga留言2024年9月10日 (二) 16:37 (UTC)回复
这个重定向应该通常需要限制在第一段的内容(“<p>”)中的外语专有名词,不限制的话有时会列出过多的选项。--Kethyga留言2024年9月16日 (一) 00:46 (UTC)回复
@Kethyga我看了html结构,每个段落都有<p>,好像没法限制在第一段?不过我觉得可以考虑过滤掉绿链接。--微肿头龙留言2024年9月16日 (一) 04:43 (UTC)回复
现在已经把绿链接都过滤掉了,但如何限制在首段落确实没有头绪。--微肿头龙留言2024年9月16日 (一) 05:08 (UTC)回复
繁简重定向会被放入别名重定向的问题还没解决,不知有无技术大佬愿意处理。--微肿头龙留言2024年9月11日 (三) 00:31 (UTC)回复

關於Template:主題首頁數掛零的討論

编辑

自從2023-04-07的版本76699641之後,就從原本直接寫好Portal頁面數,改成用程式自己算的狀態,但是貌似處理得不太順利? 現在我可以想到的解決方式有幾種:

  1. 回到舊版本,手動輸入目前的主題數
  2. 根據現版本修復,使用別的來源計算
  3. 參照英維,改成使用{{PAGESINCATEGORY:所有主题首页}}計算
是不是可以让某位编辑申报下,统一加 Portal maintenance status?--Sheminghui.WU留言2024年9月9日 (一) 22:54 (UTC)回复

2024年第37期技術新聞

编辑

MediaWiki message delivery 2024年9月9日 (一) 18:50 (UTC)回复

MOS扶正了。——Sakamotosan路过围观 | 避免做作,免敬 2024年9月10日 (二) 01:13 (UTC)回复
變成史上第一個地位是偽命名空間但技術上是真的命名空間了--SunAfterRain 2024年9月10日 (二) 04:58 (UTC)回复
技术上可能需要检查有没影响,因为现在这些伪空间重定向页面技术上依然是属于主条目空间,可能需要触发一次移动。也可能让基金会开发去处理。——Sakamotosan路过围观 | 避免做作,免敬 2024年9月10日 (二) 05:52 (UTC)回复
[[MOS:]]会失效。 ——魔琴身份声明 留言 贡献 新手2023 2024年9月10日 (二) 06:06 (UTC)回复
只能放弃MOS:。另外根据工单来看,可能MOS的命名空间ID为126。——Sakamotosan路过围观 | 避免做作,免敬 2024年9月10日 (二) 07:16 (UTC)回复
@Cwek本地只需要適配NS126就好,命名空間修復的問題基金會會處理好--SunAfterRain 2024年9月10日 (二) 08:32 (UTC)回复

MOS namespace transition

编辑

Hello -- as part of phab:T363538 and as announced in Tech News this week, the MOS namespace was added to zh.wikipedia.org this morning. The output of the title migration script can be found at phab:T363538#10134245. The follow pages were moved:

You can find these with:

Please review these pages and fix any broken links.

CAnanian (WMF)留言2024年9月10日 (二) 17:33 (UTC)回复

  and seem good.--Sakamotosan路过围观 | 避免做作,免敬 2024年9月11日 (三) 01:23 (UTC)回复

在手动字词转换规则中检测到错误

编辑

字词转换中遇到的「在手动字词转换规则中检测到错误」,因为红色警告是在非编者中文变体的情况下出现的,是否需要和是否能能在技术上提示编者增加完整的转换。需要增加一个相关的维护分类。比如豕尊82891956)只加了-{zh-cn:Shǐ}-,在港澳台繁都会有警告。--Kethyga留言2024年9月12日 (四) 07:11 (UTC)回复

可以用{{Zy}}、{{Lang-pinyin}}等代替。——Sakamotosan路过围观 | 避免做作,免敬 2024年9月12日 (四) 07:24 (UTC)回复
那个红字本身就是说明了:字词转换写错了。——Sakamotosan路过围观 | 避免做作,免敬 2024年9月12日 (四) 07:26 (UTC)回复
可以用{{Zy}}、{{Lang-pinyin}}等代替。」,主要不是针对这一个条目的问题。
有些编者可能注意不到,比如编者用了zh-hans/zh-cn等模式,但是红字错误是出现在zh-hant及其zh-tw/zh-hk/zh-mo界面环境。--Kethyga留言2024年9月12日 (四) 07:30 (UTC)回复
经常,一些港澳编者配置字词转换时漏了简中的,这个错误就是给编辑的提醒,或者配置这个的时候,多检查其他变种显示的情况。错误提醒不是bug。——Sakamotosan路过围观 | 避免做作,免敬 2024年9月12日 (四) 07:54 (UTC)回复
如果只针对你这样的写法的话,就是简单一句:你配置错了。——Sakamotosan路过围观 | 避免做作,免敬 2024年9月12日 (四) 07:55 (UTC)回复
对于是否建立更好的跟踪提醒机制,例如建立分类来收集有这样的问题页面,可以考虑,但需要跟基金会开发反馈(开单)。另外偶然会见过故意这样使用的例子,例如Template:CGroup/Movie(多数是单转的情况)。——Sakamotosan路过围观 | 避免做作,免敬 2024年9月12日 (四) 09:40 (UTC)回复

关于字体的大小

编辑

最近我发现维基百科的字体似乎变小了,然而“外观”设置却没有问题,但我不慎地把电脑的字体调了。

问题:

1.字体有没有发生变化?

2.Windows 11的默认字体大小是什么?--HerrGutmannsWiki留言2024年9月15日 (日) 20:46 (UTC)回复

您说的「把电脑的字体调了」是指您改变了电脑默认的font-family(楷体、方正姚体、微软正黑体……)吗?还是说您是否调整了显示器分辨率、屏幕缩放(DPI)? ——魔琴身份声明 留言 贡献 新手2023 2024年9月15日 (日) 20:57 (UTC)回复
@HerrGutmannsWiki. ——魔琴身份声明 留言 贡献 新手2023 2024年9月16日 (一) 09:02 (UTC)回复