旧站的内容可能已过时。您可以前往“真魂”分站查看本页面,那里的内容将会定期同步。
“帮助:沙盒”的版本间的差异
(→Animated {{tl|Hidebox}}?) |
小 (→recentchanges) |
||
(未显示1个用户的19个中间版本) | |||
第7行: | 第7行: | ||
}} | }} | ||
− | == | + | == Cite == |
− | {{ | + | colcount=3 Aaaaa{{ref|11111}} Aaaaa{{ref|11111}} Aaaaa{{ref|11111}} Aaaaa{{ref|11111}} Aaaaa{{ref|11111}} Aaaaa{{ref|11111}} Aaaaa{{ref|11111}} Aaaaa{{ref|11111}} Aaaaa{{ref|11111}} Aaaaa{{ref|11111}} Aaaaa{{ref|11111}} Aaaaa{{ref|11111}} Aaaaa{{ref|11111}} Aaaaa{{ref|11111}} Aaaaa{{ref|11111}} Aaaaa{{ref|11111}} Aaaaa{{ref|11111}} Aaaaa{{ref|11111}} Aaaaa{{ref|11111}} Aaaaa{{ref|11111}} Aaaaa{{ref|11111}} Aaaaa{{ref|11111}} Aaaaa{{ref|11111}} Aaaaa{{ref|11111}} Aaaaa{{ref|11111}} Aaaaa{{ref|11111}} Aaaaa{{ref|11111}} Aaaaa{{ref|11111}} Aaaaa{{ref|11111}} Aaaaa{{ref|11111}} Aaaaa{{ref|11111}} Aaaaa{{ref|11111}} |
− | + | ||
− | + | {{reflist|colcount=3}} | |
− | }} | + | |
− | {{ | + | colwidth=18rem Aaaaa{{note|11111}} Aaaaa{{note|11111}} Aaaaa{{note|11111}} Aaaaa{{note|11111}} Aaaaa{{note|11111}} Aaaaa{{note|11111}} Aaaaa{{note|11111}} Aaaaa{{note|11111}} Aaaaa{{note|11111}} Aaaaa{{note|11111}} Aaaaa{{note|11111}} Aaaaa{{note|11111}} Aaaaa{{note|11111}} Aaaaa{{note|11111}} Aaaaa{{note|11111}} Aaaaa{{note|11111}} Aaaaa{{note|11111}} Aaaaa{{note|11111}} Aaaaa{{note|11111}} Aaaaa{{note|11111}} Aaaaa{{note|11111}} Aaaaa{{note|11111}} Aaaaa{{note|11111}} Aaaaa{{note|11111}} Aaaaa{{note|11111}} Aaaaa{{note|11111}} Aaaaa{{note|11111}} Aaaaa{{note|11111}} Aaaaa{{note|11111}} Aaaaa{{note|11111}} Aaaaa{{note|11111}} |
− | .lnnblog- | + | |
− | + | {{notelist|colwidth=18rem}} | |
+ | |||
+ | == Img == | ||
+ | |||
+ | <pre> | ||
+ | {{img|https://cdn.staticaly.com/gh/DGCK81LNN/dgck81lnn.github.io_old/13df0ab352ba990e2cb7e6ffff4ab7b9b44aaf85/site_icon.png}} | ||
+ | </pre> | ||
+ | {{img|https://cdn.staticaly.com/gh/DGCK81LNN/dgck81lnn.github.io_old/13df0ab352ba990e2cb7e6ffff4ab7b9b44aaf85/site_icon.png}} | ||
+ | |||
+ | == recentchanges == | ||
+ | |||
+ | {{MywikiParaHack|<html> | ||
+ | <table class="wikitable lnnblog-helper-recentchanges"><tr><td>Ajax加载...</td></tr></table> | ||
+ | <script> | ||
+ | $(window).on( "load", function () { | ||
+ | |||
+ | function getTimeDesc( ts ) { | ||
+ | var date = new Date( ts ) | ||
+ | var delta = Date.now() - date | ||
+ | if ( delta >= 0 ) { | ||
+ | if ( delta < 6e+4 ) return "刚刚" | ||
+ | if ( delta < 3.6e+6 ) return ( 0 | (delta / 6e+4 ) ) + " 分钟前" | ||
+ | if ( delta < 8.64e+7 ) return ( 0 | (delta / 3.6e+6 ) ) + " 小时前" | ||
+ | } | ||
+ | // 手动 UTC+8( | ||
+ | return new Date( date.valueOf() + 2.88e+7 ).toISOString().slice( 0, 10 ) | ||
} | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | new mw.Api() | |
− | + | .get( { | |
− | + | action: "query", | |
− | + | list: "recentchanges", | |
+ | rctype: "new|edit|log", | ||
+ | rcnamespace: "0|4|6|10|14", | ||
+ | rclimit: 200, | ||
+ | rcprop: "title|timestamp|loginfo|redirect" | ||
+ | } ) | ||
+ | .done( function ( data ) { | ||
+ | var container = $( ".lnnblog-helper-recentchanges" ) | ||
+ | |||
+ | try { | ||
+ | if ( !data ) throw "请求失败" | ||
+ | |||
+ | var rc = data.query.recentchanges | ||
+ | if ( !rc.length ) { | ||
+ | container.text( "咕咕咕,最近没有更改记录" ) | ||
+ | return | ||
+ | } | ||
+ | |||
+ | container.html( "" ) | ||
+ | var map = {} | ||
− | + | for ( var i = 0; i < rc.length; ++i ) { | |
− | + | var title = rc[ i ].title | |
+ | if ( rc[ i ].type === "log" ) { | ||
+ | if ( rc[ i ].logtype !== "move" ) continue | ||
+ | map[ title ] = true | ||
+ | title = rc[ i ].move.new_title | ||
+ | } | ||
+ | if ( map.hasOwnProperty( title ) ) continue | ||
+ | map[ title ] = true | ||
− | + | if ( rc[ i ].type !== "log" ) | |
− | + | if ( "redirect" in rc[ i ] ) continue | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | var ts = rc[ i ].timestamp | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | var li = $( "<tr><td data-1></td><td data-2></td></li>" ) | |
− | + | $( "td[data-1]", li ).text( title ) | |
− | + | $( "td[data-2]", li ).text( getTimeDesc( ts ) ) | |
− | + | container.append( li ) | |
− | + | } | |
− | + | } catch (e) { | |
− | + | container.text( "加载失败:" + e ) | |
− | + | throw e | |
− | + | } | |
− | + | } ) | |
− | + | } ) | |
− | + | </script> | |
− | + | </html>}} | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | }) | + | |
− | </script></html>}} | + |
2023年3月16日 (四) 09:27的最后版本
目录 |
lnncrypt
. . , ,“”!!(
Cite
colcount=3 Aaaaa[1] Aaaaa[2] Aaaaa[3] Aaaaa[4] Aaaaa[5] Aaaaa[6] Aaaaa[7] Aaaaa[8] Aaaaa[9] Aaaaa[10] Aaaaa[11] Aaaaa[12] Aaaaa[13] Aaaaa[14] Aaaaa[15] Aaaaa[16] Aaaaa[17] Aaaaa[18] Aaaaa[19] Aaaaa[20] Aaaaa[21] Aaaaa[22] Aaaaa[23] Aaaaa[24] Aaaaa[25] Aaaaa[26] Aaaaa[27] Aaaaa[28] Aaaaa[29] Aaaaa[30] Aaaaa[31] Aaaaa[32]
colwidth=18rem Aaaaa[注 1] Aaaaa[注 2] Aaaaa[注 3] Aaaaa[注 4] Aaaaa[注 5] Aaaaa[注 6] Aaaaa[注 7] Aaaaa[注 8] Aaaaa[注 9] Aaaaa[注 10] Aaaaa[注 11] Aaaaa[注 12] Aaaaa[注 13] Aaaaa[注 14] Aaaaa[注 15] Aaaaa[注 16] Aaaaa[注 17] Aaaaa[注 18] Aaaaa[注 19] Aaaaa[注 20] Aaaaa[注 21] Aaaaa[注 22] Aaaaa[注 23] Aaaaa[注 24] Aaaaa[注 25] Aaaaa[注 26] Aaaaa[注 27] Aaaaa[注 28] Aaaaa[注 29] Aaaaa[注 30] Aaaaa[注 31]
Img
{{img|https://cdn.staticaly.com/gh/DGCK81LNN/dgck81lnn.github.io_old/13df0ab352ba990e2cb7e6ffff4ab7b9b44aaf85/site_icon.png}}
recentchanges
Ajax加载... |