Content deleted Content added
Extend caption to include a nested template flowed over multiple lines. (Function parsecaption() strips the template out later.) |
remove DIY hatnote indented with a colon |
||
Line 412:
text = mw.ustring.gsub(text, "%s*{{[^{|}]*%-[Ss]tub%s*}}", "") -- remove most stub templates
text = mw.ustring.gsub(text, "%s*%[%[%s*:?[Cc]ategory:.-%]%]", "") -- remove categories
text = mw.ustring.gsub(text, "^:[^\n]+\n","") -- remove DIY hatnote indented with a colon
return text
end
|