Content deleted Content added
Fred Gandt (talk | contribs) fixed test for non existent pages - this is how was was supposed to be working all along |
fix problem mentioned at User talk:Primefac#Pages with sections appearing in cat |
||
Line 20:
local haystack = ''
-- Separate page names from # delimited string into table
local
titles = titles:gsub("'", "'") -- workaround astonishing bug: {{FULLPAGENAME}} gives "'" for apostrophe!
local pages = mw.text.split(titles, '%s?#%s?')
-- Separate whitespace delimited section level numbers into table
local levels = mw.text.split(frame.args['level'], '%s*')
|