Module:Sandbox/Galobtter
Appearance
local p = {}
function p.main(frame)
local content = mw.title.getCurrentTitle():getContent();
hasCategory = string.find(content, "[Cc]ategory:%s+X1");
if hasCategory then
return frame:expandTemplate{ title = 'Notice', args = { 'This page has the category X1' } };
else
return content;
end
end
return p