Module:DependencyList: Difference between revisions

osrsw>Habblet
 
osrsw>Habblet
mNo edit summary
Line 234: Line 234:
     html:tag( 'td' )
     html:tag( 'td' )
         :attr( 'width', '40xp' )
         :attr( 'width', '40xp' )
         :wikitext( '[[File:Iron full helm detail old.png|center|30px|link=]]' )
         :wikitext( '[[File:Old boot detail.png|center|30px|link=]]' )
     :done()
     :done()
     :tag( 'td' )
     :tag( 'td' )
Line 507: Line 507:
     local title = mw.title.getCurrentTitle()
     local title = mw.title.getCurrentTitle()


     -- Leave early if not in module, template or calculator namespace or if module is part of exchange, sandbox or data groups
     -- Leave early if not in module, template or calculator namespace or if module is part of exchange or sandbox groups
     if param.is_empty( currentPageName ) and (
     if param.is_empty( currentPageName ) and (
         ( not enum.contains( {'Module', 'Template', 'Calculator'}, title.nsText ) ) or
         ( not enum.contains( {'Module', 'Template', 'Calculator'}, title.nsText ) ) or
         ( title.nsText == 'Module' and ( enum.contains( {'Exchange', 'Exchange historical', 'Sandbox', 'Data'}, title.text:match( '^(.-)/' ) ) ) )
         ( title.nsText == 'Module' and ( enum.contains( {'Exchange', 'Exchange historical', 'Sandbox'}, title.text:match( '^(.-)/' ) ) ) )
     ) then
     ) then
         return ''
         return ''
Line 537: Line 537:
         namespace = 'Module',
         namespace = 'Module',
         linksto = currentPageName,
         linksto = currentPageName,
         nottitlematch = '%/doc|%sandbox%|Exchange/%|Exchange historical/%|Data/%|' .. currentPageName:gsub( 'Module:', '' ),
         nottitlematch = '%/doc|%sandbox%|Exchange/%|Exchange historical/%|' .. currentPageName:gsub( 'Module:', '' ),
         distinct = 'strict',
         distinct = 'strict',
         ignorecase = true,
         ignorecase = true,