Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7414202
infobox.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
infobox.js
View Options
function
addSpecialGlobalContributionsLink
(
$info
,
info
,
generateMarkup
,
target
,
pageName
)
{
if
(
(
pageName
===
'IPContributions'
&&
mw
.
util
.
isIPAddress
(
target
)
)
||
(
[
'Contributions'
,
'DeletedContributions'
].
includes
(
pageName
)
&&
mw
.
util
.
isTemporaryUser
(
target
)
)
)
{
const
globalContributionsCount
=
'ipinfo-source-checkuser'
in
info
.
data
?
info
.
data
[
'ipinfo-source-checkuser'
].
globalContributionsCount
:
0
;
const
$globalContributions
=
$
(
'<div>'
);
const
$globalContributionsCount
=
$
(
'<span>'
)
.
addClass
(
'ipinfo-widget-value-global-contributions'
)
.
text
(
mw
.
msg
(
'checkuser-ipinfo-global-contributions-value'
,
globalContributionsCount
)
);
$globalContributions
.
append
(
$globalContributionsCount
);
const
globalContributionsUrl
=
mw
.
util
.
getUrl
(
'Special:GlobalContributions'
,
{
target
}
);
const
$globalContributionsLink
=
$
(
'<div>'
)
.
addClass
(
'ext-ipinfo-global-contribution-link'
)
.
append
(
$
(
'<a>'
)
.
attr
(
'href'
,
globalContributionsUrl
)
.
text
(
mw
.
msg
(
'checkuser-ipinfo-global-contributions-url-text'
)
)
);
$globalContributions
.
append
(
$globalContributionsLink
);
const
$globalContributionsProperty
=
generateMarkup
(
'global-contributions'
,
$globalContributions
,
mw
.
msg
(
'checkuser-ipinfo-global-contributions-label'
),
mw
.
msg
(
'checkuser-ipinfo-global-contributions-tooltip'
)
);
$info
.
find
(
'[data-property="edits"]'
)
.
after
(
$globalContributionsProperty
);
}
}
module
.
exports
=
addSpecialGlobalContributionsLink
;
File Metadata
Details
Attached
Mime Type
text/x-asm
Expires
Sun, Nov 22, 01:26 (1 d, 15 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
d5/39/0e3e5763a48c25da6196bf8d0e94
Default Alt Text
infobox.js (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment