Fix subpage matching
starcitizen>Alistair3149 Немає опису редагування |
starcitizen>Alistair3149 (Fix subpage matching) |
||
| Рядок 120: | Рядок 120: | ||
if title.namespace == 828 then | if title.namespace == 828 then | ||
-- Has localization | -- Has localization | ||
if mw.title.new( title. | if mw.title.new( title.fullText .. '/i18n.json', 'Module' ).exists then | ||
table.insert( ret3, | table.insert( ret3, | ||
mbox( | mbox( | ||
| Рядок 170: | Рядок 170: | ||
-- Unit tests | -- Unit tests | ||
local testcaseTitle = title. | local testcaseTitle = title.fullText .. '/testcases' | ||
if mw.title.new( testcaseTitle, 'Module' ).exists then | if mw.title.new( testcaseTitle, 'Module' ).exists then | ||
-- There is probably a better way :P | -- There is probably a better way :P | ||