Module:WikiProject banner/sandbox: Difference between revisions

Content deleted Content added
not on template page if category=no
m Include ']' in special_chars{} to prevent unmatched close-bracket error (Talk:1993 in Lithuanian football)
Line 281:
local article_class = p.readarticleclass({ignore_subtemplates=true}, title.prefixedText)
if article_class then -- banner shell exists
local special_chars = {'%', '(', ')', '.', '+', '-', '*', '?', '[', ']', '^', '$'}
local banner_name_escaped = banner_name.text
local page_content = title:getContent() -- get content of current page