Module:Listing: Difference between revisions

Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
strip {{{params|}}}
(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( '^{{:(.-)|(.-)}}$' )

Navigation menu