17,273
edits
(handle transclusion (yikes). limitation: this expands templates in the transcluded page, which makes looking for things like {{Main}} harder.) |
(strip {{{params|}}}) |
||
Line 25: | Line 25: | ||
function handleLine( line, currentSection ) | function handleLine( line, currentSection ) | ||
line = line:gsub( '{{{.-|}}}', '' ) -- can appear on listings that are transcluded into other listings, but are only relevant to those other listings | |||
-- recurse on transclusion | -- recurse on transclusion | ||
local transcludedTitle, args = line:match( '^{{:(.-)|(.-)}}$' ) | local transcludedTitle, args = line:match( '^{{:(.-)|(.-)}}$' ) |