Module:High-use: Difference between revisions
Please be careful not to overwrite local changes when importing
(added bot comment sandbox changes based on talk page discussion) |
(Please be careful not to overwrite local changes when importing) |
||
Line 1:
local p = {}
function p.num(frame, count)
-- Build output string
local return_value = ""
Line 55 ⟶ 51:
function p.text(frame, count)
local return_value = {}
Line 68 ⟶ 58:
end
▲ local used_on_text = string.format("'''This %s is used on [%s %s pages]'''",
(mw.title.getCurrentTitle().namespace == 828 and "Lua module" or "template"),
p.num(frame, count)
)
Line 79 ⟶ 66:
(mw.title.getCurrentTitle().namespace == 828 and "module" or "template"),
title.fullText, title.fullText,
(mw.title.getCurrentTitle().namespace == 828 and "." or ", or in your own
)
Line 103 ⟶ 90:
end
return table.concat({used_on_text, sandbox_text, discussion_text, " before implementing them."
end
function p.main(frame)
local
local count = tonumber(frame:callParserFunction('formatnum', arg1, 'R'))
local return_value = ""
local image = "[[File:Ambox warning yellow.svg|40px|alt=Warning|link=]]"
|