跳至內容

模板討論:Collapsed infobox section begin

頁面內容不支援其他語言。
新增話題
維基百科,自由的百科全書

深色模式

[編輯]

此模板似乎不能正確的顯示所有的內部連結,可能是內部連結過長導致,同時還不能顯示其他語言的wiki

石破茂張升民

--Luoniya留言2025年10月24日 (五) 12:23 (UTC)回覆

Collapsed infobox section begin模板的深色模式顯示問題

[編輯]

我發現Collapsed infobox section begin模板會在深色模式下出現以下問題:

1跨語言鏈接的字體顏色會呈現黑色,即不可視狀態

例子:高市早苗石破茂

2過長的內部連結的字體顏色也會呈現黑色,即不可視狀態

例子:張升民--Luoniya留言2025年10月24日 (五) 13:06 (UTC)回覆

其實我猜測主要是第二點導致的,因為短的跨語言鏈接也是可以顯示的--Luoniya留言2025年10月24日 (五) 13:07 (UTC)回覆
@Shizhao或許會懂?—— Eric Liu 創造は生命(留言留名學生會 2025年10月28日 (二) 06:04 (UTC)回覆
沒看出來,也許是我眼瞎...--百無一用是書生 () 2025年10月28日 (二) 09:46 (UTC)回覆
如,高市早苗頁面中「第十任內閣府特命擔當大臣<br>(酷日本戰略)日語内閣府特命担当大臣(クールジャパン戦略担当)」只能顯示「第十任」--Luoniya留言2025年10月28日 (二) 09:56 (UTC)回覆
以及我在命名空間user和wikipedia中均無法復現此問題--Luoniya留言2025年10月28日 (二) 11:26 (UTC)回覆
這是因為WikimediaMessages提供的這些樣式只在條目命名空間生效(mw:Recommendations for night mode compatibility on Wikimedia wikis#Why are links black in colored tables?)。--Srapoj留言2025年11月8日 (六) 20:18 (UTC)回覆
這要修改Template:Infobox_officeholder/office,跟Template:Collapsed_infobox_section_begin沒關係,除非加上class=infobox ,預設裡有
html.skin-theme-clientpref-night body.ns-0:not(.page-Main_Page) .mw-parser-output table:not(.infobox):not(.navbox-inner):not(.navbox) [bgcolor] a:not(.mw-selflink), html.skin-theme-clientpref-night body.ns-0:not(.page-Main_Page) .mw-parser-output table:not(.infobox):not(.navbox-inner):not(.navbox)[style*="background"]:not([style*="transparent"]):not([style*="inherit"]) a:not(.mw-selflink), html.skin-theme-clientpref-night body.ns-0:not(.page-Main_Page) .mw-parser-output table:not(.infobox):not(.navbox-inner):not(.navbox) th[style*="background"]:not([style*="transparent"]):not([style*="inherit"]) a:not(.mw-selflink), html.skin-theme-clientpref-night body.ns-0:not(.page-Main_Page) .mw-parser-output table:not(.infobox):not(.navbox-inner):not(.navbox) td[style*="background"]:not([style*="transparent"]):not([style*="inherit"]) a:not(.mw-selflink), html.skin-theme-clientpref-night body.ns-0:not(.page-Main_Page) .mw-parser-output table:not(.infobox):not(.navbox-inner):not(.navbox) tr[style*="background"]:not([style*="transparent"]):not([style*="inherit"]) td a:not(.mw-selflink) {
    color: var(--color-base-fixed,#202122);
    text-decoration: underline;
}
連結會變黑色--Qqkuro66541留言2025年10月28日 (二) 14:49 (UTC)回覆
那其實可以說是它沒有考慮到這種嵌套infobox的情況;或者因為沒有與.navbox-inner對應的.infobox-inner,導致它不便於排除這種情況的樣式覆蓋。--Srapoj留言2025年11月8日 (六) 20:18 (UTC)回覆