4,599
edits
(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...") |
No edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 99: | Line 99: | ||
local sandbox_text = ("%s' | local sandbox_text = ("%s's /sandbox or /testcases subpages, or in your own [[%s]]. "):format( | ||
(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 "Stiles.casa Wiki: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 Stiles.casa Wiki user interface.' or '.' | ||
if infoArg then | if infoArg then | ||
info = info .. "<br />" .. infoArg | info = info .. "<br />" .. infoArg | ||
| Line 125: | Line 125: | ||
discussion_text = string.format("%sat [[%s]]", discussion_text, frame.args["2"]) | discussion_text = string.format("%sat [[%s]]", discussion_text, frame.args["2"]) | ||
else | else | ||
discussion_text = string.format("%son the | discussion_text = string.format("%son the talk page", discussion_text, title.talkPageTitle.fullText ) | ||
end | end | ||