Module:DependencyList: Difference between revisionsGive feedback
osrsw>Habblet import from rsw:Module:DependencyList |
osrsw>Habblet mNo edit summary |
||
| Line 234: | Line 234: | ||
html:tag( 'td' ) | html:tag( 'td' ) | ||
:attr( 'width', '40xp' ) | :attr( 'width', '40xp' ) | ||
:wikitext( '[[File: | :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 | -- 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 | ( 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 | nottitlematch = '%/doc|%sandbox%|Exchange/%|Exchange historical/%|' .. currentPageName:gsub( 'Module:', '' ), | ||
distinct = 'strict', | distinct = 'strict', | ||
ignorecase = true, | ignorecase = true, | ||