LLWiki正在建設中,歡迎加入我們!
用戶:Bhsd
簡歷
- 2019年12月開始學習JavaScript(無關LL的GitHub項目)。
- 2020年4月開始學習Wikitext(萌娘百科)。
- 2020年6月開始學習CSS(萌娘百科)。
- 2020年7月(本站建站以後)開始學習jQuery。
- 2020年9月開始學習Lua(一個不再使用的模塊)。
待辦事項
項目
- CSS
- JavaScript(全局和Gadgets)
- 濫用過濾器
- 模板和Widgets
- 模塊
- 幫助頁面
待改進頁面
記錄主要內容框架尚未完成、或桌面版/移動版顯示有明顯不足的頁面。
第一輪檢查(不含JS/CSS/Lua頁面,不涉及頁面分類)至1040。
第二輪檢查至52。
經驗總結
CSS
這裏整理全站用到的z-index,以正確處理壓蓋關係。
元素 | 源 | 描述 | z-index | 備註 |
---|---|---|---|---|
#inspector |
gadget-inspect.css | 文本編輯器 | 100 | 開啟狀態佔據頁面右半部,關閉狀態懸浮於頁面右下角 |
#pxrulerpoint |
gadget-pxruler.css | 測量螢幕像素間距 | 需要浮於一切元素上方 |
JavaScript
試着整理下本站各主要JS腳本(全局JS和Gadgets)的合理執行時機:[展開]
JS文件 | 桌面版 | 移動版 |
---|---|---|
common.js | wikipage.content 或 $.ready |
|
mobile.js | wikipage.content 或移動版菜單生成後
| |
CodeMirror | wikipage.content |
wikipage.content
|
code-prettify | wikipage.content |
wikipage.content
|
confirmLogout | $.ready |
|
copyLyrics | wikipage.content |
wikipage.content
|
exlinks | wikipage.content |
wikipage.content
|
hideConversionTab | 移動版語言選單生成後 | |
lyricsTip | ||
MobileDiff | ||
mobile-Backtotop | $.ready |
$.ready
|
noteTA | wikipage.content |
wikipage.content
|
ReferenceTooltips | wikipage.content |
|
sharelink | $.ready |
$.ready
|
toc-custom | $.ready |
|
translation | ||
UTCLiveClock | $.ready |
$.ready
|
CommentsInLocalTime | wikipage.content |
wikipage.content
|
TalkHelper | CommentsInLocalTime執行完後 | CommentsInLocalTime執行完後 |
stickyHeading | wikipage.content |
wikipage.content
|
autocomplete | 編輯區按下Tab鍵時 | |
charinsert | $.ready |
$.ready
|
contentBackup | $.ready |
$.ready
|
custommenu | $.ready |
移動版菜單生成後 |
editCount | $.ready |
移動版菜單生成後 |
mainpage | 無條件 | 無條件 |
mobileEdit | 移動版JS加載完成後,具體時間不好確定,暫定為$.ready 再延遲0.5秒
| |
notEditTopSection | $.ready
| |
PreviewWithVariant | TransclusionPreviews執行完後 | TransclusionPreviews執行完後 |
pxruler | $.ready |
|
TransclusionPreviews | $.ready |
$.ready
|
Wikiplus | $.ready |
|
Cat-a-lot | $.ready |
|
HotCat | $.ready |
|
mobile-HotCat | MobileCategories執行完後 | |
HotDefaultSort | $.ready |
|
MobileCategories | $.ready
| |
uploader | $.ready |
|
SearchNamespace | $.ready |
移動版搜索框生成後 |
CleanDeleteReasons | $.ready |
$.ready
|
mobileBlock | $.ready
| |
inspect | $.ready |
|
patrolPlus | $.ready |
|
patrolRevisions | $.ready |
$.ready
|
site-lib | 無條件 | 無條件 |
site-shared |
繁簡轉換
全局JS | 轉換方式 | 參數 |
---|---|---|
common.js | 自動 | wgUserVariant
|
mobile.js | 自動 + 手動 | wgUserVariant 或 wgUserLanguage
|
Gadgets | 轉換方式 | 參數 |
---|---|---|
CodeMirror | ||
code-prettify | ||
confirmLogout | 自動 + 手動 | wgUserLanguage
|
copyLyrics | ||
exlinks | 手動 | wgUserLanguage
|
hideConversionTab | ||
lyricsTip | ||
MobileDiff | ||
mobile-Backtotop | ||
noteTA | 自動 + 手動 | wgUserVariant 或 wgUserLanguage
|
ReferenceTooltips | 自動 + 手動 | wgUserVariant 或 wgUserLanguage
|
sharelink | 手動 | wgUserLanguage
|
toc-custom | 自動 + 手動 | wgUserVariant
|
translation | ||
UTCLiveClock | ||
CommentsInLocalTime | 手動 | wgUserVariant
|
TalkHelper | ||
stickyHeading | ||
autocomplete | 手動 | wgUserVariant
|
charinsert | 自動 + 手動 | wgUserVariant
|
contentBackup | 手動 | wgUserLanguage
|
custommenu | 自動 + 手動 | wgUserLanguage
|
editCount | ||
mainpage | ||
mobileEdit | 手動 | wgUserLanguage
|
notEditTopSection | ||
PreviewWithVariant | ||
pxruler | 手動 | wgUserLanguage
|
TransclusionPreviews | 手動 | wgUserLanguage
|
Wikiplus | 手動 | wgUserLanguage
|
Cat-a-lot | 手動 | wgUserLanguage
|
HotCat | 手動 | wgUserVariant
|
mobile-HotCat | ||
HotDefaultSort | ||
MobileCategories | 自動 + 手動 | wgUserVariant 或 wgUserLanguage
|
uploader | 手動 | wgUserLanguage
|
SearchNamespace | 手動 | wgUserLanguage
|
CleanDeleteReasons | ||
mobileBlock | 手動 | wgUserLanguage
|
inspect | 自動 + 手動 | wgUserLanguage 或wgUserVariant
|
patrolPlus | 手動 | wgUserLanguage
|
patrolRevisions | 手動 | wgUserLanguage
|
site-lib | ||
site-shared |
Widgets | 轉換方式 | 參數 |
---|---|---|
bilibili | 自動 | wgUserVariant
|
bgimage | ||
countdown | 自動 | wgUserVariant
|
lyrics | 自動 | wgUserVariant
|
年表標籤/篩選 | ||
songposition | 自動 | wgUserVariant
|
Widget:遊戲主界面 |