LLWiki正在建設中,歡迎加入我們

用戶:Bhsd

出自LLWiki
於 2020年10月5日 (一) 11:01 由 Bhsd留言 | 貢獻 所做的修訂
跳至導覽 跳至搜尋

簡歷

待辦事項

項目

  • CSS
  • JavaScript(全局和Gadgets)
  • 濫用過濾器
  • 模板和Widgets
  • 幫助頁面

待改進頁面

記錄主要內容框架尚未完成、或桌面版/移動版顯示有明顯不足的頁面。

當前檢查至386

經驗總結

CSS

移動版已知會自動添加以下樣式:

table, caption, tbody, tfoot, thead, tr, th, td {
	font-size: 100%;
}
table {
	border-collapse: collapse;
}
.content table {
	margin: 1em 0;
	overflow: auto;
	overflow-y: hidden;
	overflow-x: auto;
}
@media only screen and (max-width: 720px) {
	.content table {
		display: block;
		width: 100% !important;
	}
}

JavaScript

試着整理下本站各主要JS腳本(全局JS和Gadgets)的合理執行時機:

JS文件 桌面版 移動版
common.js mw.hook( 'wikipage.content' )$.ready
mobile.js mw.hook( 'wikipage.content' )或移動版菜單生成後
exlinks mw.hook( 'wikipage.content' ) mw.hook( 'wikipage.content' )
sharelink $.ready $.ready
toc-custom $.ready
UTCLiveClock $.ready $.ready
hideConversionTab 移動版語言選單生成後
mobile-Backtotop $.ready $.ready
code-prettify mw.hook( 'wikipage.content' ) mw.hook( 'wikipage.content' )
ReferenceTooltips mw.hook( 'wikipage.content' )
copyLyrics mw.hook( 'wikipage.content' ) mw.hook( 'wikipage.content' )
noteTA mw.hook( 'wikipage.content' ) mw.hook( 'wikipage.content' )
Highlight recently added text 具體時間不明,暫定為$.ready再延遲0.1秒
CommentsInLocalTime mw.hook( 'wikipage.content' ) mw.hook( 'wikipage.content' )
TalkHelper CommentsInLocalTime執行完後 CommentsInLocalTime執行完後
stickyHeading mw.hook( 'wikipage.content' ) mw.hook( 'wikipage.content' )
custommenu $.ready 移動版菜單生成後
contentBackup $.ready $.ready
editCount $.ready 移動版菜單生成後
Wikiplus $.ready
PreviewWithVariant TransclusionPreviews執行完後 TransclusionPreviews執行完後
autocomplete 編輯區按下Tab鍵時
charinsert $.ready $.ready
notEditTopSection $.ready
mobileEdit 移動版JS加載完成後,具體時間不好確定,暫定為$.ready再延遲0.5秒
pxruler $.ready
TransclusionPreviews $.ready $.ready
MobileCategories $.ready
HotCat $.ready
mobile-HotCat MobileCategories執行完後
Cat-a-lot $.ready
HotDefaultSort $.ready
SearchNamespace $.ready 移動版搜索框生成後
uploader $.ready
CleanDeleteReasons $.ready $.ready
patrolPlus $.ready
patrolRevisions $.ready $.ready
mobileBlock $.ready
site-lib 無條件 無條件

繁簡轉換

全局JS 轉換方式 參數
common.js 自動 wgUserVariant
mobile.js 自動 + 手動 wgUserVariantwgUserLanguage
Gadgets 轉換方式 參數
exlinks 手動 wgUserLanguage
sharelink 手動 wgUserLanguage
toc-custom 自動 + 手動 wgUserVariant
UTCLiveClock
hideConversionTab
mobile-Backtotop
code-prettify
ReferenceTooltips 自動 + 手動 wgUserVariantwgUserLanguage
copyLyrics
noteTA 自動 + 手動 wgUserVariantwgUserLanguage
Highlight recently added text 自動 wgUserVariant
CommentsInLocalTime 手動 wgUserVariant
TalkHelper
stickyHeading
custommenu 自動 + 手動 wgUserLanguage
contentBackup 手動 wgUserLanguage
editCount
Wikiplus 手動 wgUserLanguage
PreviewWithVariant 不轉換
autocomplete 不轉換 + 手動 wgUserVariant
charinsert 自動 + 手動 wgUserVariant
notEditTopSection
mobileEdit 手動 wgUserLanguage
pxruler 手動 wgUserLanguage
TransclusionPreviews 手動 wgUserLanguage
MobileCategories 自動 + 手動 wgUserVariantwgUserLanguage
HotCat 手動 wgUserVariant
mobile-HotCat
Cat-a-lot 手動 wgUserLanguage
HotDefaultSort
SearchNamespace 手動 wgUserLanguage
uploader 手動 wgUserLanguage
CleanDeleteReasons
patrolPlus 手動 wgUserLanguage
patrolRevisions 手動 wgUserLanguage
mobileBlock 手動 wgUserLanguage
site-lib
Widgets 轉換方式 參數
bilibili 自動 wgUserVariant
bgimage
countdown 自動 wgUserVariant
lyrics 自動 wgUserVariant
年表標籤/篩選
songposition 自動 wgUserVariant