Modul:Transclusion count: Unterschied zwischen den Versionen
Modul:Transclusion count (Quelltext anzeigen)
Version vom 11. November 2022, 08:21 Uhr
, vor 3 JahrenTest stripping /sandbox from the end like with /doc to avoid all sandbox pages reporting no count
(Correction to tabulate function) |
(Test stripping /sandbox from the end like with /doc to avoid all sandbox pages reporting no count) |
||
| Zeile 20: | Zeile 20: | ||
if namespace == 10 or namespace == 828 then | if namespace == 10 or namespace == 828 then | ||
template = mw.ustring.gsub(template, "/doc$", "") -- strip /doc from end | template = mw.ustring.gsub(template, "/doc$", "") -- strip /doc from end | ||
template = mw.ustring.gsub(template, "/sandbox$", "") -- strip /sandbox from end | |||
local index = mw.ustring.sub(mw.title.new(template).text,1,1) | local index = mw.ustring.sub(mw.title.new(template).text,1,1) | ||
local status, data = pcall(function () | local status, data = pcall(function () | ||