簡歷
- 2019年12月開始學習JavaScript(無關LL的GitHub項目)。
- 2020年4月開始學習Wikitext(萌娘百科)。
- 2020年6月開始學習CSS(萌娘百科)。
- 2020年7月(本站建站以後)開始學習jQuery。
- 2020年9月開始學習Lua(一個不再使用的模塊)。
待辦事項
項目
- CSS
- JavaScript(全局和Gadgets)
- 濫用過濾器
- 模板和Widgets
- 模塊
- 幫助頁面
待改進頁面
記錄主要內容框架尚未完成、或桌面版/移動版顯示有明顯不足的頁面。
當前檢查至762。
經驗總結
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 | 自動 + 手動 | wgUserVariant 或 wgUserLanguage
|
Gadgets | 轉換方式 | 參數 |
---|---|---|
exlinks | 手動 | wgUserLanguage
|
sharelink | 手動 | wgUserLanguage
|
toc-custom | 自動 + 手動 | wgUserVariant
|
UTCLiveClock | ||
hideConversionTab | ||
mobile-Backtotop | ||
code-prettify | ||
ReferenceTooltips | 自動 + 手動 | wgUserVariant 或 wgUserLanguage
|
copyLyrics | ||
noteTA | 自動 + 手動 | wgUserVariant 或 wgUserLanguage
|
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 | 自動 + 手動 | wgUserVariant 或 wgUserLanguage
|
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
|
Widget:遊戲主界面 |