4,599
edits
imported>GKFX (Link to https://linkcount.toolforge.org/ which is more detailed and mobile-friendly) |
(Created page with "local p = {} -- _fetch looks at the "demo" argument. local _fetch = require('Module:Transclusion_count').fetch local yesno = require('Module:Yesno') function p.num(frame, count) if count == nil then if yesno(frame.args['fetch']) == false then if (frame.args[1] or '') ~= '' then count = tonumber(frame.args[1]) end else count = _fetch(frame) end end -- Build output string local return_value = "" if count == nil then if frame.args[1] == "risk" then...") |
||
Line 102: | Line 102: | ||
(mw.title.getCurrentTitle().namespace == 828 and "module" or "template"), | (mw.title.getCurrentTitle().namespace == 828 and "module" or "template"), | ||
title.fullText, title.fullText, | title.fullText, title.fullText, | ||
mw.title.getCurrentTitle().namespace == 828 and "Module:Sandbox|module sandbox" or " | mw.title.getCurrentTitle().namespace == 828 and "Module:Sandbox|module sandbox" or "Wikipedia:User pages#SUB|user subpage" | ||
) | ) | ||
local infoArg = frame.args["info"] ~= "" and frame.args["info"] | local infoArg = frame.args["info"] ~= "" and frame.args["info"] | ||
if (systemMessages or frame.args[1] == "risk" or (count and count >= 100000) ) then | if (systemMessages or frame.args[1] == "risk" or (count and count >= 100000) ) then | ||
local info = systemMessages and '.<br/>Changes to it can cause immediate changes to the | local info = systemMessages and '.<br/>Changes to it can cause immediate changes to the Wikipedia user interface.' or '.' | ||
if infoArg then | if infoArg then | ||
info = info .. "<br />" .. infoArg | info = info .. "<br />" .. infoArg |