維基百科:徵求意見/模板樣式

由Jimmy-bot在話題Infobox模板的排版錯誤上作出的最新留言:24 天前

導言

編輯

以下徵求意見頁面是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類的使用。他們並不總是能做到正確,所以如果您發現他們替換錯誤或者沒有以您預期的方式進行替換,請嘗試糾正編輯(如果您知道如何替換的話),或者詢問編輯者如何做出更好的更改,而不是儘可能地恢復原狀。

待整理

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)回覆