Module:DisplayTemplate: Difference between revisions

// via Wikitext Extension for VSCode
// via Wikitext Extension for VSCode
Line 11: Line 11:
      
      
     local templateContent = mw.getCurrentFrame():expandTemplate{title = templateName}
     local templateContent = mw.getCurrentFrame():expandTemplate{title = templateName}
    templateContent = templateContent:gsub("%[%[Category:[^]]+%]%]", "")
     return templateContent
     return templateContent
end
end


return p
return p