Module:Excerpt: Difference between revisions

Content deleted Content added
add aliases
make sure hatnotes aren't mistaken for the start of the lead
Line 419:
token = token .. mw.ustring.match(text, "\n%s*\n", blankpos)
end
leadstartlocal isHatnote = not(leadstart) orand mw.ustring.lensub(t) +token, 1 -- we got a paragraph, so1) mark the start of the lead== section':'
parasif =not parasisHatnote + 1then
leadstart = leadstart or mw.ustring.len(t) + 1 -- we got a paragraph, so mark the start of the lead section
if allparas or (options.paraflags and options.paraflags[paras]) then t = t .. token end -- add if this paragraph wanted
paras = paras + 1
if allparas or (options.paraflags and options.paraflags[paras]) then t = t .. token end -- add if this paragraph wanted
end
end -- of "else got a paragraph"
end -- of "else not a template"