yoohoo! hot sauce please
10:27, 7 September 2026 (UTC)
Module:Articlebox
From 2swagg wiki
Jump to navigationJump to search
| This module is rated as ready for general use. It is considered stable and may be used wherever appropriate. Improvements should be developed and tested in a sandbox before changing the live module. |
Fixes a bug in {{Articlebox}} (formerly Northbox) that caused category links to bleed to the transclusion page.
local p = {}
local cat = "%[%[%s*[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]%s*:[^%]]*%]%]"
function p.main(frame)
local text = frame:expandTemplate({
title = ":" .. (frame.args[1] or "Grass"),
args = {},
})
text = text:gsub("\n%s*" .. cat, "")
text = text:gsub(cat, "")
return text
end
return p