“File:36020180820193041762.jpg”与“MediaWiki:Gadget-ShowAvatar.js”:页面之间的差异
(页面间差异)
跳到导航
跳到搜索
(Maintenance script上传File:36020180820193041762.jpg) 标签:服务器端上传 |
无编辑摘要 |
||
第1行: | 第1行: | ||
$(function() { | |||
var img = $('<img>').attr('src', '/extensions/Avatar/avatar.php?user=' + mw.config.get('wgUserName')).on('error', function() {img.attr('src','https://www.hmoegirl.com/images/2/28/Moehime.jpg') }); | |||
var link = $('<a>').attr('href', '/Special: 上传 头像').append(img); | |||
$('#pt-userpage').before($('<li id="pt-avatar"></li>').append(link)); | |||
if (mw.config.get("wgNamespaceNumber") === 2 && !mw.config.get("wgPageName").includes("/")) { | |||
$('.ns-2 #firstHeading').prepend( | |||
$('<a>').attr({ | |||
href: '/Special:Viewavatar?user=' + mw.config.get("wgPageName").replace(/^user:/i, ''), | |||
title: '查看头像' | |||
}).prepend( | |||
$('<img>') | |||
.attr('src', '/extensions/Avatar/avatar.php?user=' + mw.config.get("wgPageName").replace(/^user:/i, '')) | |||
.css({ | |||
width: '1.2em', | |||
height: '1.2em', | |||
'border-radius': '10px', | |||
padding: '4px' | |||
}) | |||
) | |||
); | |||
} | |||
}); |
2022年11月20日 (日) 10:30的版本
$(function() {
var img = $('<img>').attr('src', '/extensions/Avatar/avatar.php?user=' + mw.config.get('wgUserName')).on('error', function() {img.attr('src','https://www.hmoegirl.com/images/2/28/Moehime.jpg') });
var link = $('<a>').attr('href', '/Special:上传头像').append(img);
$('#pt-userpage').before($('<li id="pt-avatar"></li>').append(link));
if (mw.config.get("wgNamespaceNumber") === 2 && !mw.config.get("wgPageName").includes("/")) {
$('.ns-2 #firstHeading').prepend(
$('<a>').attr({
href: '/Special:Viewavatar?user=' + mw.config.get("wgPageName").replace(/^user:/i, ''),
title: '查看头像'
}).prepend(
$('<img>')
.attr('src', '/extensions/Avatar/avatar.php?user=' + mw.config.get("wgPageName").replace(/^user:/i, ''))
.css({
width: '1.2em',
height: '1.2em',
'border-radius': '10px',
padding: '4px'
})
)
);
}
});
文件历史
点击某个日期/时间查看对应时刻的文件。
日期/时间 | 缩略图 | 大小 | 用户 | 备注 | |
---|---|---|---|---|---|
当前 | 2022年11月20日 (日) 16:18 | 518 × 572(79 KB) | Maintenance script(讨论 | 贡献) | == 摘要 == Importing file | |
2022年11月20日 (日) 09:14 | 518 × 572(110 KB) | Maintenance script(讨论 | 贡献) | == 摘要 == Importing file |
您不可以覆盖此文件。
文件用途
以下页面使用本文件: