Module:Excerpt: Difference between revisions

Content deleted Content added
Remove {{cite-web}} etc. If a wanted template has unwanted nested templates, purge them too. Example: {{efn-lr... within {{nihongo... in Matcha.
fix altText pattern, to avoid bogus file options lint errors
Line 146:
-- find all alt text
local altTexts = {}
for position, altText in mw.ustring.gmatch(text, "|%s*[Aa][Ll][Tt]*%s*=%s*()([^\n]*)") do
if altText then
altText = mw.text.trim(altText)