нема опису редагування
starcitizen>Alistair3149 Немає опису редагування |
starcitizen>Alistair3149 Немає опису редагування |
||
| Рядок 103: | Рядок 103: | ||
mbox( | mbox( | ||
string.format( | string.format( | ||
' | '%s is imported from [https://en.wikipedia.org/wiki/%s %s] on Wikipedia.', | ||
title.fullText, | |||
page, | page, | ||
page | page | ||
| Рядок 120: | Рядок 120: | ||
if title.namespace == 828 then | if title.namespace == 828 then | ||
-- Has localization | |||
if mw.title.new( title.baseText .. '/i18n.json', 'Module' ).exists then | |||
table.insert( ret3, | |||
hatnote( | |||
string.format( | |||
'%s uses translatable message from [[%s/i18n.json]].', | |||
title.fullText, | |||
title.fullText | |||
), | |||
{ icon='WikimediaUI-LabFlask.svg' } | |||
) | |||
) | |||
end | |||
-- Testcase page | -- Testcase page | ||
if title.subpageText == 'testcases' then | if title.subpageText == 'testcases' then | ||
| Рядок 136: | Рядок 150: | ||
-- Unit tests | -- Unit tests | ||
if mw.title.new( title.baseText .. '/testcases', 'Module' ).exists then | |||
-- There is probably a better way :P | -- There is probably a better way :P | ||
table.insert( ret3, frame:preprocess( '{{#invoke:' .. testcaseTitle .. '|run}}' ) ) | table.insert( ret3, frame:preprocess( '{{#invoke:' .. testcaseTitle .. '|run}}' ) ) | ||