Home
Random
Log in
Settings
About test1-
Disclaimers
test1-
Search
Editing
Module:Requests dashboard
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
local p = {} local function mark(link, count) local div = mw.html.create( 'span' ) if tonumber(count) ~= 0 then div:css('background', '#fdd'):css('font-weight', 'bold') end div:wikitext(link) div:done() local sb = mw.html.create( 'sub' ) if tonumber(count) ~= 0 then sb:css('font-weight', 'bold') end sb:wikitext(tonumber(count)) sb:done() return tostring(div)..tostring(sb).."β" end function p.dashboard(frame) local checkuser = frame.args[1] local global = frame.args[2] local deletions = frame.args[3] local restricted = frame.args[4] local permissions = frame.args[5] local reports = frame.args[6] local closure = frame.args[7] local misc = frame.args[8] local reopen = frame.args[9] local an = frame.args[10] local total = checkuser + global + deletions + restricted + permissions + reports + closure + misc + reopen local congrats = '' if total == 0 then congrats = ' π Resolved all requests!' end local totaltext = frame:expandTemplate{ title = 'small', args = { 'Total: '..total..congrats } } local purge = frame:expandTemplate{ title = 'purge', args = {} } local navbox = frame:expandTemplate{ title = 'navbox', args = { title = 'Requests dashboard ['..purge..']', name = 'Requests dashboard', group1 = '[[Steward requests]]', list1 = mark('[[Steward_requests/CheckUser|CheckUser]]', checkuser)..'γ»'.. mark('[[Steward_requests/Global|Global]]', global)..'γ»'.. mark('[[Steward_requests/(Un)deletions|(Un)deletions]]', deletions)..'γ»'.. mark('[[Steward_requests/Restricted changes|Restricted]]', restricted)..'γ»'.. mark('[[Steward_requests/Permissions|Permissions]]', permissions)..'γ»'.. mark('[[Steward_requests/Wiki reports|Reports]]', reports)..'γ»'.. mark('[[Steward_requests/Discussion closure|Discuss closure]]', closure)..'γ»'.. mark('[[Steward_requests/Requests for reopening wikis|Reopen wikis]]', reopen)..'γ»'.. mark('[[Steward_requests/Miscellaneous|Miscellaneous]]', misc)..' '..totaltext, group2 = 'Tech requests actions', list2 = '[[Special:RequestImportQueue|Requested import dump]]γ»[[phab:|Phabricator]]', group3 = 'Other', list3 = mark('[[Meta:Administrators\' noticeboard|Admins\' noticeboard]]', an)..'γ»[[Special:RequestWikiQueue|Requested wikis]]γ»[[Special:GlobalRenameQueue|Global rename]]', state = 'uncollapsed', bodystyle = 'background-color:#fdfdfd; width:100%; vertical-align:middle; display:inherit;', titlestyle = 'background-color:#ccccff; padding-left:1em; padding-right:1em; text-align:center;', abovestyle = 'background-color:#ddddff; padding-left:1em; padding-right:1em; text-align:center;', belowstyle = 'background-color:#ddddff; padding-left:1em; padding-right:1em; text-align:center;', groupstyle = 'background-color:#ddddff; padding-left:1em; padding-right:1em; text-align:right;', liststyle = 'background:transparent; text-align:left/center;', oddstyle = 'background:transparent;', evenstyle = 'background-color:#f7f7f7;' } } return navbox end return p
Summary:
Please note that all contributions to test1- may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
test1-:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Template used on this page:
Module:Requests dashboard/doc
(
edit
)